@coorpacademy/components 10.7.0 → 10.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (421) hide show
  1. package/es/atom/autocomplete/test/fixtures.js +0 -0
  2. package/es/atom/avatar/test/fixtures.js +0 -0
  3. package/es/atom/button/test/fixtures.js +0 -0
  4. package/es/atom/button-link/index.js +10 -3
  5. package/es/atom/button-link/index.js.map +1 -1
  6. package/es/atom/card-image-preview/test/fixtures.js +15 -0
  7. package/es/atom/card-image-preview/test/fixtures.js.map +1 -0
  8. package/es/atom/catalog-section/test/fixtures.js +0 -0
  9. package/es/atom/centered-text/test/fixtures.js +0 -0
  10. package/es/atom/checkbox/test/fixtures.js +0 -0
  11. package/es/atom/clue/test/fixtures.js +0 -0
  12. package/es/atom/cta/test/fixtures.js +0 -0
  13. package/es/atom/difficulty-level/test/fixtures.js +0 -0
  14. package/es/atom/drag-and-drop/test/fixtures.js +0 -0
  15. package/es/atom/image-upload/test/fixtures.js +0 -0
  16. package/es/atom/input-checkbox/test/fixtures.js +0 -0
  17. package/es/atom/input-color/test/fixtures.js +0 -0
  18. package/es/atom/input-doublestep/test/fixtures.js +0 -0
  19. package/es/atom/input-html/test/fixtures.js +0 -0
  20. package/es/atom/input-readonly/test/fixtures.js +0 -0
  21. package/es/atom/input-switch/test/fixtures.js +0 -0
  22. package/es/atom/input-text/test/fixtures.js +0 -0
  23. package/es/atom/input-textarea/test/fixtures.js +0 -0
  24. package/es/atom/label/test/fixtures.js +0 -0
  25. package/es/atom/life/test/fixtures.js +0 -0
  26. package/es/atom/link/test/fixtures.js +0 -0
  27. package/es/atom/loader/test/fixtures.js +0 -0
  28. package/es/atom/notification/test/fixtures.js +0 -0
  29. package/es/atom/picture/test/fixtures.js +0 -0
  30. package/es/atom/picture-background/test/fixtures.js +0 -0
  31. package/es/atom/promo-code/test/fixtures.js +0 -0
  32. package/es/atom/provider/test/fixtures.js +0 -0
  33. package/es/atom/radio-group/test/fixtures.js +0 -0
  34. package/es/atom/range/test/fixtures.js +0 -0
  35. package/es/atom/resource-miniature/test/fixtures.js +0 -0
  36. package/es/atom/select/test/fixtures.js +4 -0
  37. package/es/atom/select/test/fixtures.js.map +1 -1
  38. package/es/atom/slide/test/fixtures.js +0 -0
  39. package/es/atom/social-link/test/fixtures.js +0 -0
  40. package/es/atom/spinner/test/fixtures.js +0 -0
  41. package/es/atom/tab/test/fixtures.js +0 -0
  42. package/es/atom/tab-content/test/fixtures.js +0 -0
  43. package/es/atom/tag/index.js +1 -1
  44. package/es/atom/tag/index.js.map +1 -1
  45. package/es/atom/title/test/fixtures.js +0 -0
  46. package/es/atom/video-upload/test/fixtures.js +0 -0
  47. package/es/hoc/animation/test/fixtures.js +0 -0
  48. package/es/hoc/animation-scheduler/test/fixtures.js +0 -0
  49. package/es/hoc/swapper/test/fixtures.js +0 -0
  50. package/es/hoc/transition/test/fixtures.js +0 -0
  51. package/es/molecule/add-to-my-list/test/fixtures.js +0 -0
  52. package/es/molecule/answer/test/fixtures.js +0 -0
  53. package/es/molecule/audio/test/fixtures.js +0 -0
  54. package/es/molecule/battle-request/test/fixtures.js +0 -0
  55. package/es/molecule/brand-card/test/fixtures.js +0 -0
  56. package/es/molecule/brand-card-create/test/fixtures.js +0 -0
  57. package/es/molecule/brand-create-form/test/fixtures.js +0 -0
  58. package/es/molecule/brand-download-box/test/fixtures.js +0 -0
  59. package/es/molecule/brand-form-group/test/fixtures.js +0 -0
  60. package/es/molecule/brand-tabs/test/fixtures.js +0 -0
  61. package/es/molecule/brand-upload-box/test/fixtures.js +0 -0
  62. package/es/molecule/breadcrumbs/test/fixtures.js +0 -0
  63. package/es/molecule/card/test/fixtures.js +0 -0
  64. package/es/molecule/card-content/test/fixtures.js +0 -0
  65. package/es/molecule/card-with-button/test/fixtures.js +0 -0
  66. package/es/molecule/cockpit-popin/test/fixtures.js +0 -0
  67. package/es/molecule/cookie-banner/test/fixtures.js +0 -0
  68. package/es/molecule/course-section/test/fixtures.js +15 -0
  69. package/es/molecule/course-section/test/fixtures.js.map +1 -0
  70. package/es/molecule/course-sections/test/fixtures.js +15 -0
  71. package/es/molecule/course-sections/test/fixtures.js.map +1 -0
  72. package/es/molecule/dashboard/battle-request-list/test/fixtures.js +0 -0
  73. package/es/molecule/dashboard/cards-list/test/fixtures.js +0 -0
  74. package/es/molecule/dashboard/news-list/test/fixtures.js +0 -0
  75. package/es/molecule/dashboard/review-banner/index.js +79 -0
  76. package/es/molecule/dashboard/review-banner/index.js.map +1 -0
  77. package/es/molecule/dashboard/review-banner/style.css +186 -0
  78. package/es/molecule/dashboard/review-banner/test/fixtures/default.js +11 -0
  79. package/es/molecule/dashboard/review-banner/test/fixtures/default.js.map +1 -0
  80. package/es/molecule/dashboard/review-banner/test/fixtures.js +13 -0
  81. package/es/molecule/dashboard/review-banner/test/fixtures.js.map +1 -0
  82. package/es/molecule/dashboard/start-battle/test/fixtures.js +0 -0
  83. package/es/molecule/discipline-cta/test/fixtures.js +0 -0
  84. package/es/molecule/discipline-header/test/fixtures.js +0 -0
  85. package/es/molecule/discipline-partners/test/fixtures.js +0 -0
  86. package/es/molecule/discipline-scope/test/fixtures.js +0 -0
  87. package/es/molecule/drag-and-drop/test/fixtures.js +0 -0
  88. package/es/molecule/draggable/test/fixtures.js +13 -0
  89. package/es/molecule/draggable/test/fixtures.js.map +1 -0
  90. package/es/molecule/draggable-list/test/fixtures.js +15 -0
  91. package/es/molecule/draggable-list/test/fixtures.js.map +1 -0
  92. package/es/molecule/external-content-button/test/fixtures.js +0 -0
  93. package/es/molecule/external-content-viewer/test/fixtures.js +0 -0
  94. package/es/molecule/feedback/test/fixtures.js +0 -0
  95. package/es/molecule/filters/test/fixtures.js +0 -0
  96. package/es/molecule/forum/forum-comment/test/fixtures.js +0 -0
  97. package/es/molecule/forum/forum-post/test/fixtures.js +0 -0
  98. package/es/molecule/forum/forum-thread/test/fixtures.js +0 -0
  99. package/es/molecule/hero/test/fixtures.js +0 -0
  100. package/es/molecule/login-alert/test/fixtures.js +0 -0
  101. package/es/molecule/menu-list/test/fixtures.js +0 -0
  102. package/es/molecule/message-popin/test/fixtures.js +0 -0
  103. package/es/molecule/modal/test/fixtures.js +0 -0
  104. package/es/molecule/module-bubble/test/fixtures.js +0 -0
  105. package/es/molecule/module-card/test/fixtures.js +0 -0
  106. package/es/molecule/news/test/fixtures.js +0 -0
  107. package/es/molecule/notification-banner/test/fixtures.js +0 -0
  108. package/es/molecule/pagination/test/fixtures.js +0 -0
  109. package/es/molecule/payment-form/test/fixtures.js +0 -0
  110. package/es/molecule/pdf/test/fixtures.js +0 -0
  111. package/es/molecule/product-card/test/fixtures.js +0 -0
  112. package/es/molecule/progress-bar/test/fixtures.js +0 -0
  113. package/es/molecule/questions/drop-down/test/fixtures.js +0 -0
  114. package/es/molecule/questions/free-text/test/fixtures.js +4 -2
  115. package/es/molecule/questions/free-text/test/fixtures.js.map +1 -1
  116. package/es/molecule/questions/qcm/test/fixtures.js +0 -0
  117. package/es/molecule/questions/qcm-drag/test/fixtures.js +0 -0
  118. package/es/molecule/questions/qcm-graphic/test/fixtures.js +0 -0
  119. package/es/molecule/questions/question-range/test/fixtures.js +0 -0
  120. package/es/molecule/questions/template/test/fixtures.js +0 -0
  121. package/es/molecule/resource-player/test/fixtures.js +0 -0
  122. package/es/molecule/review-correction-popin/index.js +103 -0
  123. package/es/molecule/review-correction-popin/index.js.map +1 -0
  124. package/es/molecule/review-correction-popin/style.css +315 -0
  125. package/es/molecule/review-correction-popin/test/fixtures/right.js +17 -0
  126. package/es/molecule/review-correction-popin/test/fixtures/right.js.map +1 -0
  127. package/es/molecule/review-correction-popin/test/fixtures/wrong.js +19 -0
  128. package/es/molecule/review-correction-popin/test/fixtures/wrong.js.map +1 -0
  129. package/es/molecule/review-correction-popin/test/fixtures.js +15 -0
  130. package/es/molecule/review-correction-popin/test/fixtures.js.map +1 -0
  131. package/es/molecule/scope-content/test/fixtures.js +0 -0
  132. package/es/molecule/scope-tabs/test/fixtures.js +0 -0
  133. package/es/molecule/search/test/fixtures.js +0 -0
  134. package/es/molecule/search-form/test/fixtures.js +0 -0
  135. package/es/molecule/select-multiple/test/fixtures.js +0 -0
  136. package/es/molecule/setup-cohort-item/test/fixtures.js +0 -0
  137. package/es/molecule/setup-section/test/fixtures.js +0 -0
  138. package/es/molecule/setup-sections/test/fixtures.js +0 -0
  139. package/es/molecule/setup-slide/test/fixtures.js +0 -0
  140. package/es/molecule/setup-slider/test/fixtures.js +0 -0
  141. package/es/molecule/share/test/fixtures.js +0 -0
  142. package/es/molecule/ssmenu-list/test/fixtures.js +0 -0
  143. package/es/molecule/subscription-freemium/test/fixtures.js +0 -0
  144. package/es/molecule/subscription-premium/test/fixtures.js +0 -0
  145. package/es/molecule/table/test/fixtures.js +0 -0
  146. package/es/molecule/teams-popin/test/fixtures.js +0 -0
  147. package/es/molecule/theme-image/test/fixtures.js +0 -0
  148. package/es/molecule/titled-checkbox/test/fixtures.js +0 -0
  149. package/es/molecule/unsubscribe/test/fixtures.js +0 -0
  150. package/es/molecule/video-iframe/test/fixtures.js +0 -0
  151. package/es/molecule/video-player/test/fixtures.js +0 -0
  152. package/es/molecule/wizard-summary/test/fixtures.js +2 -0
  153. package/es/molecule/wizard-summary/test/fixtures.js.map +1 -1
  154. package/es/organism/accordion/container/test/fixtures.js +0 -0
  155. package/es/organism/accordion/part/test/fixtures.js +0 -0
  156. package/es/organism/accordion/toggler/test/fixtures.js +0 -0
  157. package/es/organism/brand-dashboard/test/fixtures.js +0 -0
  158. package/es/organism/brand-form/test/fixtures.js +0 -0
  159. package/es/organism/brand-table/test/fixtures.js +0 -0
  160. package/es/organism/brand-upload/test/fixtures.js +0 -0
  161. package/es/organism/cards-grid/test/fixtures.js +0 -0
  162. package/es/organism/cart/test/fixtures.js +0 -0
  163. package/es/organism/discussion/test/fixtures.js +0 -0
  164. package/es/organism/get-the-app/test/fixtures.js +0 -0
  165. package/es/organism/grid-list/test/fixtures.js +0 -0
  166. package/es/organism/header/test/fixtures.js +0 -0
  167. package/es/organism/hero/test/fixtures.js +0 -0
  168. package/es/organism/list-items/index.js +2 -2
  169. package/es/organism/list-items/index.js.map +1 -1
  170. package/es/organism/mooc/image-slider/test/fixtures.js +0 -0
  171. package/es/organism/mooc-footer/test/fixtures.js +0 -0
  172. package/es/organism/mooc-header/test/fixtures.js +0 -0
  173. package/es/organism/playlist-translation/test/fixtures.js +15 -0
  174. package/es/organism/playlist-translation/test/fixtures.js.map +1 -0
  175. package/es/organism/popin/test/fixtures.js +0 -0
  176. package/es/organism/resource-browser/test/fixtures.js +0 -0
  177. package/es/organism/settings/test/fixtures.js +0 -0
  178. package/es/organism/setup-header/test/fixtures.js +0 -0
  179. package/es/organism/sidebar/test/fixtures.js +0 -0
  180. package/es/organism/slider/test/fixtures.js +0 -0
  181. package/es/organism/user-preferences/test/fixtures.js +0 -0
  182. package/es/organism/wizard-contents/index.js +2 -2
  183. package/es/organism/wizard-contents/index.js.map +1 -1
  184. package/es/organism/wizard-contents/test/fixtures.js +2 -0
  185. package/es/organism/wizard-contents/test/fixtures.js.map +1 -1
  186. package/es/template/activity/test/fixtures.js +0 -0
  187. package/es/template/app-player/loading/test/fixtures.js +0 -0
  188. package/es/template/app-player/player/slides/footer/test/fixtures.js +0 -0
  189. package/es/template/app-player/player/slides/header/test/fixtures.js +0 -0
  190. package/es/template/app-player/player/slides/test/fixtures.js +0 -0
  191. package/es/template/app-player/player/test/fixtures.js +0 -0
  192. package/es/template/app-player/popin-correction/test/fixtures.js +0 -0
  193. package/es/template/app-player/popin-end/test/fixtures.js +0 -0
  194. package/es/template/app-player/popin-header/test/fixtures.js +0 -0
  195. package/es/template/back-office/brand-create/test/fixtures.js +0 -0
  196. package/es/template/back-office/brand-list/test/fixtures.js +0 -0
  197. package/es/template/back-office/brand-update/test/fixtures.js +2 -0
  198. package/es/template/back-office/brand-update/test/fixtures.js.map +1 -1
  199. package/es/template/back-office/dashboard-preview/test/fixtures.js +0 -0
  200. package/es/template/battle-requests/test/fixtures.js +0 -0
  201. package/es/template/cockpit/jw-uploader/test/fixtures.js +0 -0
  202. package/es/template/common/authors/test/fixtures.js +0 -0
  203. package/es/template/common/coorp-header/test/fixtures.js +0 -0
  204. package/es/template/common/dashboard/test/fixtures.js +0 -0
  205. package/es/template/common/discipline/test/fixtures.js +0 -0
  206. package/es/template/common/search-page/test/fixtures.js +0 -0
  207. package/es/template/external-course/test/fixtures.js +0 -0
  208. package/es/template/teams-dashboard/test/fixtures.js +0 -0
  209. package/es/util/button-icons.js +2 -1
  210. package/es/util/button-icons.js.map +1 -1
  211. package/lib/atom/autocomplete/test/fixtures.js +0 -0
  212. package/lib/atom/avatar/test/fixtures.js +0 -0
  213. package/lib/atom/button/test/fixtures.js +0 -0
  214. package/lib/atom/button-link/index.js +11 -3
  215. package/lib/atom/button-link/index.js.map +1 -1
  216. package/lib/atom/card-image-preview/test/fixtures.js +25 -0
  217. package/lib/atom/card-image-preview/test/fixtures.js.map +1 -0
  218. package/lib/atom/catalog-section/test/fixtures.js +0 -0
  219. package/lib/atom/centered-text/test/fixtures.js +0 -0
  220. package/lib/atom/checkbox/test/fixtures.js +0 -0
  221. package/lib/atom/clue/test/fixtures.js +0 -0
  222. package/lib/atom/cta/test/fixtures.js +0 -0
  223. package/lib/atom/difficulty-level/test/fixtures.js +0 -0
  224. package/lib/atom/drag-and-drop/test/fixtures.js +0 -0
  225. package/lib/atom/image-upload/test/fixtures.js +0 -0
  226. package/lib/atom/input-checkbox/test/fixtures.js +0 -0
  227. package/lib/atom/input-color/test/fixtures.js +0 -0
  228. package/lib/atom/input-doublestep/test/fixtures.js +0 -0
  229. package/lib/atom/input-html/test/fixtures.js +0 -0
  230. package/lib/atom/input-readonly/test/fixtures.js +0 -0
  231. package/lib/atom/input-switch/test/fixtures.js +0 -0
  232. package/lib/atom/input-text/test/fixtures.js +0 -0
  233. package/lib/atom/input-textarea/test/fixtures.js +0 -0
  234. package/lib/atom/label/test/fixtures.js +0 -0
  235. package/lib/atom/life/test/fixtures.js +0 -0
  236. package/lib/atom/link/test/fixtures.js +0 -0
  237. package/lib/atom/loader/test/fixtures.js +0 -0
  238. package/lib/atom/notification/test/fixtures.js +0 -0
  239. package/lib/atom/picture/test/fixtures.js +0 -0
  240. package/lib/atom/picture-background/test/fixtures.js +0 -0
  241. package/lib/atom/promo-code/test/fixtures.js +0 -0
  242. package/lib/atom/provider/test/fixtures.js +0 -0
  243. package/lib/atom/radio-group/test/fixtures.js +0 -0
  244. package/lib/atom/range/test/fixtures.js +0 -0
  245. package/lib/atom/resource-miniature/test/fixtures.js +0 -0
  246. package/lib/atom/select/test/fixtures.js +6 -0
  247. package/lib/atom/select/test/fixtures.js.map +1 -1
  248. package/lib/atom/slide/test/fixtures.js +0 -0
  249. package/lib/atom/social-link/test/fixtures.js +0 -0
  250. package/lib/atom/spinner/test/fixtures.js +0 -0
  251. package/lib/atom/tab/test/fixtures.js +0 -0
  252. package/lib/atom/tab-content/test/fixtures.js +0 -0
  253. package/lib/atom/tag/index.js +1 -1
  254. package/lib/atom/tag/index.js.map +1 -1
  255. package/lib/atom/title/test/fixtures.js +0 -0
  256. package/lib/atom/video-upload/test/fixtures.js +0 -0
  257. package/lib/hoc/animation/test/fixtures.js +0 -0
  258. package/lib/hoc/animation-scheduler/test/fixtures.js +0 -0
  259. package/lib/hoc/swapper/test/fixtures.js +0 -0
  260. package/lib/hoc/transition/test/fixtures.js +0 -0
  261. package/lib/molecule/add-to-my-list/test/fixtures.js +0 -0
  262. package/lib/molecule/answer/test/fixtures.js +0 -0
  263. package/lib/molecule/audio/test/fixtures.js +0 -0
  264. package/lib/molecule/battle-request/test/fixtures.js +0 -0
  265. package/lib/molecule/brand-card/test/fixtures.js +0 -0
  266. package/lib/molecule/brand-card-create/test/fixtures.js +0 -0
  267. package/lib/molecule/brand-create-form/test/fixtures.js +0 -0
  268. package/lib/molecule/brand-download-box/test/fixtures.js +0 -0
  269. package/lib/molecule/brand-form-group/test/fixtures.js +0 -0
  270. package/lib/molecule/brand-tabs/test/fixtures.js +0 -0
  271. package/lib/molecule/brand-upload-box/test/fixtures.js +0 -0
  272. package/lib/molecule/breadcrumbs/test/fixtures.js +0 -0
  273. package/lib/molecule/card/test/fixtures.js +0 -0
  274. package/lib/molecule/card-content/test/fixtures.js +0 -0
  275. package/lib/molecule/card-with-button/test/fixtures.js +0 -0
  276. package/lib/molecule/cockpit-popin/test/fixtures.js +0 -0
  277. package/lib/molecule/cookie-banner/test/fixtures.js +0 -0
  278. package/lib/molecule/course-section/test/fixtures.js +25 -0
  279. package/lib/molecule/course-section/test/fixtures.js.map +1 -0
  280. package/lib/molecule/course-sections/test/fixtures.js +25 -0
  281. package/lib/molecule/course-sections/test/fixtures.js.map +1 -0
  282. package/lib/molecule/dashboard/battle-request-list/test/fixtures.js +0 -0
  283. package/lib/molecule/dashboard/cards-list/test/fixtures.js +0 -0
  284. package/lib/molecule/dashboard/news-list/test/fixtures.js +0 -0
  285. package/lib/molecule/dashboard/review-banner/index.js +94 -0
  286. package/lib/molecule/dashboard/review-banner/index.js.map +1 -0
  287. package/lib/molecule/dashboard/review-banner/style.css +186 -0
  288. package/lib/molecule/dashboard/review-banner/test/fixtures/default.js +16 -0
  289. package/lib/molecule/dashboard/review-banner/test/fixtures/default.js.map +1 -0
  290. package/lib/molecule/dashboard/review-banner/test/fixtures.js +22 -0
  291. package/lib/molecule/dashboard/review-banner/test/fixtures.js.map +1 -0
  292. package/lib/molecule/dashboard/start-battle/test/fixtures.js +0 -0
  293. package/lib/molecule/discipline-cta/test/fixtures.js +0 -0
  294. package/lib/molecule/discipline-header/test/fixtures.js +0 -0
  295. package/lib/molecule/discipline-partners/test/fixtures.js +0 -0
  296. package/lib/molecule/discipline-scope/test/fixtures.js +0 -0
  297. package/lib/molecule/drag-and-drop/test/fixtures.js +0 -0
  298. package/lib/molecule/draggable/test/fixtures.js +22 -0
  299. package/lib/molecule/draggable/test/fixtures.js.map +1 -0
  300. package/lib/molecule/draggable-list/test/fixtures.js +25 -0
  301. package/lib/molecule/draggable-list/test/fixtures.js.map +1 -0
  302. package/lib/molecule/external-content-button/test/fixtures.js +0 -0
  303. package/lib/molecule/external-content-viewer/test/fixtures.js +0 -0
  304. package/lib/molecule/feedback/test/fixtures.js +0 -0
  305. package/lib/molecule/filters/test/fixtures.js +0 -0
  306. package/lib/molecule/forum/forum-comment/test/fixtures.js +0 -0
  307. package/lib/molecule/forum/forum-post/test/fixtures.js +0 -0
  308. package/lib/molecule/forum/forum-thread/test/fixtures.js +0 -0
  309. package/lib/molecule/hero/test/fixtures.js +0 -0
  310. package/lib/molecule/login-alert/test/fixtures.js +0 -0
  311. package/lib/molecule/menu-list/test/fixtures.js +0 -0
  312. package/lib/molecule/message-popin/test/fixtures.js +0 -0
  313. package/lib/molecule/modal/test/fixtures.js +0 -0
  314. package/lib/molecule/module-bubble/test/fixtures.js +0 -0
  315. package/lib/molecule/module-card/test/fixtures.js +0 -0
  316. package/lib/molecule/news/test/fixtures.js +0 -0
  317. package/lib/molecule/notification-banner/test/fixtures.js +0 -0
  318. package/lib/molecule/pagination/test/fixtures.js +0 -0
  319. package/lib/molecule/payment-form/test/fixtures.js +0 -0
  320. package/lib/molecule/pdf/test/fixtures.js +0 -0
  321. package/lib/molecule/product-card/test/fixtures.js +0 -0
  322. package/lib/molecule/progress-bar/test/fixtures.js +0 -0
  323. package/lib/molecule/questions/drop-down/test/fixtures.js +0 -0
  324. package/lib/molecule/questions/free-text/test/fixtures.js +5 -2
  325. package/lib/molecule/questions/free-text/test/fixtures.js.map +1 -1
  326. package/lib/molecule/questions/qcm/test/fixtures.js +0 -0
  327. package/lib/molecule/questions/qcm-drag/test/fixtures.js +0 -0
  328. package/lib/molecule/questions/qcm-graphic/test/fixtures.js +0 -0
  329. package/lib/molecule/questions/question-range/test/fixtures.js +0 -0
  330. package/lib/molecule/questions/template/test/fixtures.js +0 -0
  331. package/lib/molecule/resource-player/test/fixtures.js +0 -0
  332. package/lib/molecule/review-correction-popin/index.js +116 -0
  333. package/lib/molecule/review-correction-popin/index.js.map +1 -0
  334. package/lib/molecule/review-correction-popin/style.css +315 -0
  335. package/lib/molecule/review-correction-popin/test/fixtures/right.js +22 -0
  336. package/lib/molecule/review-correction-popin/test/fixtures/right.js.map +1 -0
  337. package/lib/molecule/review-correction-popin/test/fixtures/wrong.js +24 -0
  338. package/lib/molecule/review-correction-popin/test/fixtures/wrong.js.map +1 -0
  339. package/lib/molecule/review-correction-popin/test/fixtures.js +25 -0
  340. package/lib/molecule/review-correction-popin/test/fixtures.js.map +1 -0
  341. package/lib/molecule/scope-content/test/fixtures.js +0 -0
  342. package/lib/molecule/scope-tabs/test/fixtures.js +0 -0
  343. package/lib/molecule/search/test/fixtures.js +0 -0
  344. package/lib/molecule/search-form/test/fixtures.js +0 -0
  345. package/lib/molecule/select-multiple/test/fixtures.js +0 -0
  346. package/lib/molecule/setup-cohort-item/test/fixtures.js +0 -0
  347. package/lib/molecule/setup-section/test/fixtures.js +0 -0
  348. package/lib/molecule/setup-sections/test/fixtures.js +0 -0
  349. package/lib/molecule/setup-slide/test/fixtures.js +0 -0
  350. package/lib/molecule/setup-slider/test/fixtures.js +0 -0
  351. package/lib/molecule/share/test/fixtures.js +0 -0
  352. package/lib/molecule/ssmenu-list/test/fixtures.js +0 -0
  353. package/lib/molecule/subscription-freemium/test/fixtures.js +0 -0
  354. package/lib/molecule/subscription-premium/test/fixtures.js +0 -0
  355. package/lib/molecule/table/test/fixtures.js +0 -0
  356. package/lib/molecule/teams-popin/test/fixtures.js +0 -0
  357. package/lib/molecule/theme-image/test/fixtures.js +0 -0
  358. package/lib/molecule/titled-checkbox/test/fixtures.js +0 -0
  359. package/lib/molecule/unsubscribe/test/fixtures.js +0 -0
  360. package/lib/molecule/video-iframe/test/fixtures.js +0 -0
  361. package/lib/molecule/video-player/test/fixtures.js +0 -0
  362. package/lib/molecule/wizard-summary/test/fixtures.js +3 -0
  363. package/lib/molecule/wizard-summary/test/fixtures.js.map +1 -1
  364. package/lib/organism/accordion/container/test/fixtures.js +0 -0
  365. package/lib/organism/accordion/part/test/fixtures.js +0 -0
  366. package/lib/organism/accordion/toggler/test/fixtures.js +0 -0
  367. package/lib/organism/brand-dashboard/test/fixtures.js +0 -0
  368. package/lib/organism/brand-form/test/fixtures.js +0 -0
  369. package/lib/organism/brand-table/test/fixtures.js +0 -0
  370. package/lib/organism/brand-upload/test/fixtures.js +0 -0
  371. package/lib/organism/cards-grid/test/fixtures.js +0 -0
  372. package/lib/organism/cart/test/fixtures.js +0 -0
  373. package/lib/organism/discussion/test/fixtures.js +0 -0
  374. package/lib/organism/get-the-app/test/fixtures.js +0 -0
  375. package/lib/organism/grid-list/test/fixtures.js +0 -0
  376. package/lib/organism/header/test/fixtures.js +0 -0
  377. package/lib/organism/hero/test/fixtures.js +0 -0
  378. package/lib/organism/list-items/index.js +2 -2
  379. package/lib/organism/list-items/index.js.map +1 -1
  380. package/lib/organism/mooc/image-slider/test/fixtures.js +0 -0
  381. package/lib/organism/mooc-footer/test/fixtures.js +0 -0
  382. package/lib/organism/mooc-header/test/fixtures.js +0 -0
  383. package/lib/organism/playlist-translation/test/fixtures.js +25 -0
  384. package/lib/organism/playlist-translation/test/fixtures.js.map +1 -0
  385. package/lib/organism/popin/test/fixtures.js +0 -0
  386. package/lib/organism/resource-browser/test/fixtures.js +0 -0
  387. package/lib/organism/settings/test/fixtures.js +0 -0
  388. package/lib/organism/setup-header/test/fixtures.js +0 -0
  389. package/lib/organism/sidebar/test/fixtures.js +0 -0
  390. package/lib/organism/slider/test/fixtures.js +0 -0
  391. package/lib/organism/user-preferences/test/fixtures.js +0 -0
  392. package/lib/organism/wizard-contents/index.js +2 -2
  393. package/lib/organism/wizard-contents/index.js.map +1 -1
  394. package/lib/organism/wizard-contents/test/fixtures.js +3 -0
  395. package/lib/organism/wizard-contents/test/fixtures.js.map +1 -1
  396. package/lib/template/activity/test/fixtures.js +0 -0
  397. package/lib/template/app-player/loading/test/fixtures.js +0 -0
  398. package/lib/template/app-player/player/slides/footer/test/fixtures.js +0 -0
  399. package/lib/template/app-player/player/slides/header/test/fixtures.js +0 -0
  400. package/lib/template/app-player/player/slides/test/fixtures.js +0 -0
  401. package/lib/template/app-player/player/test/fixtures.js +0 -0
  402. package/lib/template/app-player/popin-correction/test/fixtures.js +0 -0
  403. package/lib/template/app-player/popin-end/test/fixtures.js +0 -0
  404. package/lib/template/app-player/popin-header/test/fixtures.js +0 -0
  405. package/lib/template/back-office/brand-create/test/fixtures.js +0 -0
  406. package/lib/template/back-office/brand-list/test/fixtures.js +0 -0
  407. package/lib/template/back-office/brand-update/test/fixtures.js +3 -0
  408. package/lib/template/back-office/brand-update/test/fixtures.js.map +1 -1
  409. package/lib/template/back-office/dashboard-preview/test/fixtures.js +0 -0
  410. package/lib/template/battle-requests/test/fixtures.js +0 -0
  411. package/lib/template/cockpit/jw-uploader/test/fixtures.js +0 -0
  412. package/lib/template/common/authors/test/fixtures.js +0 -0
  413. package/lib/template/common/coorp-header/test/fixtures.js +0 -0
  414. package/lib/template/common/dashboard/test/fixtures.js +0 -0
  415. package/lib/template/common/discipline/test/fixtures.js +0 -0
  416. package/lib/template/common/search-page/test/fixtures.js +0 -0
  417. package/lib/template/external-course/test/fixtures.js +0 -0
  418. package/lib/template/teams-dashboard/test/fixtures.js +0 -0
  419. package/lib/util/button-icons.js +1 -0
  420. package/lib/util/button-icons.js.map +1 -1
  421. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/organism/wizard-contents/index.js"],"names":["React","getOr","PropTypes","ButtonLink","ButtonLinkIconOnly","WizardSteps","WizardSummary","BrandForm","ContentTranslate","OrganismSearchAndChipsResults","CourseSelection","CourseSections","style","buildHeader","wizardHeader","steps","title","onClick","buttonCloseIcon","size","icon","header","headerTitle","buildForm","content","type","buildButton","step","side","ICONS","previous","position","next","publish","label","buttonProps","buildActionZone","previousStep","nextStep","previousButton","nextStepType","nextButton","actionZone","button","WizardContents","props","isLoading","summary","headerView","formView","rightActionView","footerActionView","container","leftSection","form","rightSection","stickySection","summaryZone","footer","summaryFooter","actionFooter","propTypes","bool","shape","string","func","isRequired","oneOfType","oneOf"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,KAAP,MAAkB,iBAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,UAAP,MAAuB,wBAAvB;AACA,OAAOC,kBAAP,MAA+B,kCAA/B;AACA,OAAOC,WAAP,MAAwB,yBAAxB;AACA,OAAOC,aAAP,MAA0B,+BAA1B;AACA,OAAOC,SAAP,MAAsB,eAAtB;AACA,OAAOC,gBAAP,MAA6B,wBAA7B;AACA,OAAOC,6BAAP,MAA0C,6BAA1C;AACA,OAAOC,eAAP,MAA4B,qBAA5B;AACA,OAAOC,cAAP,MAA2B,gCAA3B;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,WAAW,GAAG,CAACC,YAAD,EAAeC,KAAf,KAAyB;AAC3C,QAAM;AAACC,IAAAA,KAAD;AAAQC,IAAAA;AAAR,MAAmBH,YAAzB;AAEA,QAAMI,eAAe,GAAG;AACtBC,IAAAA,IAAI,EAAE,OADgB;AAEtB,iBAAa,cAFS;AAGtB,kBAAc,cAHQ;AAItBC,IAAAA,IAAI,EAAE,OAJgB;AAKtBH,IAAAA;AALsB,GAAxB;AAQA,sBACE,8CACE;AAAK,IAAA,SAAS,EAAEL,KAAK,CAACS;AAAtB,kBACE,oBAAC,kBAAD,EAAwBH,eAAxB,CADF,eAEE;AAAK,IAAA,SAAS,EAAEN,KAAK,CAACU,WAAtB;AAAmC,iBAAW;AAA9C,KACGN,KADH,CAFF,CADF,eAOE,oBAAC,WAAD;AAAa,IAAA,KAAK,EAAED;AAApB,IAPF,CADF;AAWD,CAtBD;;AAwBA,MAAMQ,SAAS,GAAGC,OAAO,IAAI;AAC3B,QAAM;AAACC,IAAAA;AAAD,MAASD,OAAf;;AACA,UAAQC,IAAR;A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,CAAC,MAAD,CAAhB;AAFR,KAD2B,EAK3BlE,SAAS,CAAC6D,KAAV,uBACKvD,gBAAgB,CAACqD,SADtB;AAEEpC,IAAAA,IAAI,EAAEvB,SAAS,CAACkE,KAAV,CAAgB,CAAC,WAAD,CAAhB;AAFR,KAL2B,EAS3BlE,SAAS,CAAC6D,KAAV,uBACKtD,6BAA6B,CAACoD,SADnC;AAEEpC,IAAAA,IAAI,EAAEvB,SAAS,CAACkE,KAAV,CAAgB,CAAC,aAAD,CAAhB;AAFR,KAT2B,EAa3BlE,SAAS,CAAC6D,KAAV,uBACKrD,eAAe,CAACmD,SADrB;AAEEpC,IAAAA,IAAI,EAAEvB,SAAS,CAACkE,KAAV,CAAgB,CAAC,SAAD,CAAhB;AAFR,KAb2B,EAiB3BlE,SAAS,CAAC6D,KAAV,uBACKpD,cAAc,CAACkD,SADpB;AAEEpC,IAAAA,IAAI,EAAEvB,SAAS,CAACkE,KAAV,CAAgB,CAAC,kBAAD,CAAhB;AAFR,KAjB2B,CAApB,CAVgB;AAgCzB/B,EAAAA,YAAY,EAAEnC,SAAS,CAAC6D,KAAV,CAAgB;AAC5B7B,IAAAA,KAAK,EAAEhC,SAAS,CAAC8D,MADW;AAE5B/C,IAAAA,OAAO,EAAEf,SAAS,CAAC+D;AAFS,GAAhB,CAhCW;AAoCzB3B,EAAAA,QAAQ,EAAEpC,SAAS,CAAC6D,KAAV,CAAgB;AACxBtC,IAAAA,IAAI,EAAEvB,SAAS,CAACkE,KAAV,CAAgB,CAAC,MAAD,EAAS,SAAT,CAAhB,CADkB;AAExBlC,IAAAA,KAAK,EAAEhC,SAAS,CAAC8D,MAFO;AAGxB/C,IAAAA,OAAO,EAAEf,SAAS,CAAC+D;AAHK,GAAhB;AApCe,CAA3B;AA2CA,eAAerB,cAAf","sourcesContent":["import React from 'react';\nimport getOr from 'lodash/fp/getOr';\nimport PropTypes from 'prop-types';\nimport ButtonLink from '../../atom/button-link';\nimport ButtonLinkIconOnly from '../../atom/button-link-icon-only';\nimport WizardSteps from '../../atom/wizard-steps';\nimport WizardSummary from '../../molecule/wizard-summary';\nimport BrandForm from '../brand-form';\nimport ContentTranslate from '../content-translation';\nimport OrganismSearchAndChipsResults from '../search-and-chips-results';\nimport CourseSelection from '../course-selection';\nimport CourseSections from '../../molecule/course-sections';\nimport style from './style.css';\n\nconst buildHeader = (wizardHeader, steps) => {\n const {title, onClick} = wizardHeader;\n\n const buttonCloseIcon = {\n size: 'small',\n 'data-name': 'close-button',\n 'aria-label': 'close button',\n icon: 'close',\n onClick\n };\n\n return (\n <div>\n <div className={style.header}>\n <ButtonLinkIconOnly {...buttonCloseIcon} />\n <div className={style.headerTitle} data-name={'custom-playlist-title'}>\n {title}\n </div>\n </div>\n <WizardSteps steps={steps} />\n </div>\n );\n};\n\nconst buildForm = content => {\n const {type} = content;\n switch (type) {\n case 'form':\n return <BrandForm {...content} />;\n case 'translate':\n return <ContentTranslate {...content} />;\n case 'populations':\n return <OrganismSearchAndChipsResults {...content} />;\n case 'courses':\n return <CourseSelection {...content} />;\n case 'organize-courses':\n return <CourseSections {...content} />;\n }\n};\n\nconst buildButton = (type, step, side) => {\n const ICONS = {\n previous: {\n position: 'left',\n type: 'chevron-left'\n },\n next: {\n position: 'right',\n type: 'chevron-right'\n },\n publish: {\n position: 'left',\n type: 'publish'\n }\n };\n\n const {label, onClick} = step;\n const buttonProps = {\n type: type === 'previous' ? 'secondary' : 'primary',\n 'aria-label': `${type} step button`,\n 'data-name': `${type}-step-button-${side}`,\n icon: ICONS[type],\n label,\n onClick\n };\n\n return <ButtonLink {...buttonProps} />;\n};\n\nconst buildActionZone = (previousStep, nextStep, side) => {\n const previousButton = previousStep ? buildButton('previous', previousStep, side) : null;\n const nextStepType = getOr('next', 'type', nextStep);\n const nextButton = nextStep ? buildButton(nextStepType, nextStep, side) : null;\n return (\n <div className={style.actionZone}>\n <div className={style.button}>{previousButton}</div>\n <div className={style.button}>{nextButton}</div>\n </div>\n );\n};\n\nconst WizardContents = props => {\n const {isLoading, wizardHeader, steps, summary, content, nextStep, previousStep} = props;\n const headerView = buildHeader(wizardHeader, steps);\n const formView = buildForm({...content, isLoading});\n const rightActionView = buildActionZone(previousStep, nextStep, 'right');\n const footerActionView = buildActionZone(previousStep, nextStep, 'footer');\n\n return (\n <div className={style.container} data-name=\"custom-playlist-summary\">\n <div className={style.leftSection}>\n {headerView}\n <div className={style.form}>{formView}</div>\n </div>\n <div className={style.rightSection} data-name=\"summary-right-section\">\n <div className={style.stickySection}>\n <div className={style.summaryZone} data-name=\"summary-zone\">\n <WizardSummary {...summary} side={'right'} />\n </div>\n {rightActionView}\n </div>\n </div>\n <div className={style.footer} data-name=\"summary-footer-section\">\n <div className={style.summaryFooter}>\n <WizardSummary {...summary} side={'footer'} />\n </div>\n <div className={style.actionFooter}>{footerActionView}</div>\n </div>\n </div>\n );\n};\n\nWizardContents.propTypes = {\n isLoading: PropTypes.bool,\n wizardHeader: PropTypes.shape({\n title: PropTypes.string,\n onClick: PropTypes.func\n }).isRequired,\n steps: WizardSteps.propTypes.steps,\n summary: PropTypes.shape({\n ...WizardSummary.propTypes\n }).isRequired,\n content: PropTypes.oneOfType([\n PropTypes.shape({\n ...BrandForm.propTypes,\n type: PropTypes.oneOf(['form'])\n }),\n PropTypes.shape({\n ...ContentTranslate.propTypes,\n type: PropTypes.oneOf(['translate'])\n }),\n PropTypes.shape({\n ...OrganismSearchAndChipsResults.propTypes,\n type: PropTypes.oneOf(['populations'])\n }),\n PropTypes.shape({\n ...CourseSelection.propTypes,\n type: PropTypes.oneOf(['courses'])\n }),\n PropTypes.shape({\n ...CourseSections.propTypes,\n type: PropTypes.oneOf(['organize-courses'])\n })\n ]),\n previousStep: PropTypes.shape({\n label: PropTypes.string,\n onClick: PropTypes.func\n }),\n nextStep: PropTypes.shape({\n type: PropTypes.oneOf(['next', 'publish']),\n label: PropTypes.string,\n onClick: PropTypes.func\n })\n};\n\nexport default WizardContents;\n"],"file":"index.js"}
1
+ {"version":3,"sources":["../../../src/organism/wizard-contents/index.js"],"names":["React","getOr","PropTypes","ButtonLink","ButtonLinkIconOnly","WizardSteps","WizardSummary","BrandForm","ContentTranslate","OrganismSearchAndChipsResults","CourseSelection","CourseSections","style","buildHeader","wizardHeader","steps","title","onClick","buttonCloseIcon","size","icon","header","headerTitle","buildForm","content","type","buildButton","step","side","ICONS","previous","position","next","publish","label","buttonProps","buildActionZone","previousStep","nextStep","previousButton","nextStepType","nextButton","actionZone","button","WizardContents","props","isLoading","summary","headerView","formView","rightActionView","footerActionView","container","leftSection","form","rightSection","stickySection","summaryZone","footer","summaryFooter","actionFooter","propTypes","bool","shape","string","func","isRequired","oneOfType","oneOf"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,KAAP,MAAkB,iBAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,UAAP,MAAuB,wBAAvB;AACA,OAAOC,kBAAP,MAA+B,kCAA/B;AACA,OAAOC,WAAP,MAAwB,yBAAxB;AACA,OAAOC,aAAP,MAA0B,+BAA1B;AACA,OAAOC,SAAP,MAAsB,eAAtB;AACA,OAAOC,gBAAP,MAA6B,wBAA7B;AACA,OAAOC,6BAAP,MAA0C,6BAA1C;AACA,OAAOC,eAAP,MAA4B,qBAA5B;AACA,OAAOC,cAAP,MAA2B,gCAA3B;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,WAAW,GAAG,CAACC,YAAD,EAAeC,KAAf,KAAyB;AAC3C,QAAM;AAACC,IAAAA,KAAD;AAAQC,IAAAA;AAAR,MAAmBH,YAAzB;AAEA,QAAMI,eAAe,GAAG;AACtBC,IAAAA,IAAI,EAAE,OADgB;AAEtB,iBAAa,cAFS;AAGtB,kBAAc,cAHQ;AAItBC,IAAAA,IAAI,EAAE,OAJgB;AAKtBH,IAAAA;AALsB,GAAxB;AAQA,sBACE,8CACE;AAAK,IAAA,SAAS,EAAEL,KAAK,CAACS;AAAtB,kBACE,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KAAV,CAAgB,CAAC,MAAD,EAAS,SAAT,CAAhB,CADkB;AAExBlC,IAAAA,KAAK,EAAEhC,SAAS,CAAC8D,MAFO;AAGxB/C,IAAAA,OAAO,EAAEf,SAAS,CAAC+D;AAHK,GAAhB;AApCe,CAA3B;AA2CA,eAAerB,cAAf","sourcesContent":["import React from 'react';\nimport getOr from 'lodash/fp/getOr';\nimport PropTypes from 'prop-types';\nimport ButtonLink from '../../atom/button-link';\nimport ButtonLinkIconOnly from '../../atom/button-link-icon-only';\nimport WizardSteps from '../../atom/wizard-steps';\nimport WizardSummary from '../../molecule/wizard-summary';\nimport BrandForm from '../brand-form';\nimport ContentTranslate from '../content-translation';\nimport OrganismSearchAndChipsResults from '../search-and-chips-results';\nimport CourseSelection from '../course-selection';\nimport CourseSections from '../../molecule/course-sections';\nimport style from './style.css';\n\nconst buildHeader = (wizardHeader, steps) => {\n const {title, onClick} = wizardHeader;\n\n const buttonCloseIcon = {\n size: 'small',\n 'data-name': 'close-button',\n 'aria-label': 'close button',\n icon: 'close',\n onClick\n };\n\n return (\n <div>\n <div className={style.header}>\n <ButtonLinkIconOnly {...buttonCloseIcon} />\n <div className={style.headerTitle} data-name={'content-title'}>\n {title}\n </div>\n </div>\n <WizardSteps steps={steps} />\n </div>\n );\n};\n\nconst buildForm = content => {\n const {type} = content;\n switch (type) {\n case 'form':\n return <BrandForm {...content} />;\n case 'translate':\n return <ContentTranslate {...content} />;\n case 'populations':\n return <OrganismSearchAndChipsResults {...content} />;\n case 'courses':\n return <CourseSelection {...content} />;\n case 'organize-courses':\n return <CourseSections {...content} />;\n }\n};\n\nconst buildButton = (type, step, side) => {\n const ICONS = {\n previous: {\n position: 'left',\n type: 'chevron-left'\n },\n next: {\n position: 'right',\n type: 'chevron-right'\n },\n publish: {\n position: 'left',\n type: 'publish'\n }\n };\n\n const {label, onClick} = step;\n const buttonProps = {\n type: type === 'previous' ? 'secondary' : 'primary',\n 'aria-label': `${type} step button`,\n 'data-name': `${type}-step-button-${side}`,\n icon: ICONS[type],\n label,\n onClick\n };\n\n return <ButtonLink {...buttonProps} />;\n};\n\nconst buildActionZone = (previousStep, nextStep, side) => {\n const previousButton = previousStep ? buildButton('previous', previousStep, side) : null;\n const nextStepType = getOr('next', 'type', nextStep);\n const nextButton = nextStep ? buildButton(nextStepType, nextStep, side) : null;\n return (\n <div className={style.actionZone}>\n <div className={style.button}>{previousButton}</div>\n <div className={style.button}>{nextButton}</div>\n </div>\n );\n};\n\nconst WizardContents = props => {\n const {isLoading, wizardHeader, steps, summary, content, nextStep, previousStep} = props;\n const headerView = buildHeader(wizardHeader, steps);\n const formView = buildForm({...content, isLoading});\n const rightActionView = buildActionZone(previousStep, nextStep, 'right');\n const footerActionView = buildActionZone(previousStep, nextStep, 'footer');\n\n return (\n <div className={style.container} data-name=\"content-summary\">\n <div className={style.leftSection}>\n {headerView}\n <div className={style.form}>{formView}</div>\n </div>\n <div className={style.rightSection} data-name=\"summary-right-section\">\n <div className={style.stickySection}>\n <div className={style.summaryZone} data-name=\"summary-zone\">\n <WizardSummary {...summary} side={'right'} />\n </div>\n {rightActionView}\n </div>\n </div>\n <div className={style.footer} data-name=\"summary-footer-section\">\n <div className={style.summaryFooter}>\n <WizardSummary {...summary} side={'footer'} />\n </div>\n <div className={style.actionFooter}>{footerActionView}</div>\n </div>\n </div>\n );\n};\n\nWizardContents.propTypes = {\n isLoading: PropTypes.bool,\n wizardHeader: PropTypes.shape({\n title: PropTypes.string,\n onClick: PropTypes.func\n }).isRequired,\n steps: WizardSteps.propTypes.steps,\n summary: PropTypes.shape({\n ...WizardSummary.propTypes\n }).isRequired,\n content: PropTypes.oneOfType([\n PropTypes.shape({\n ...BrandForm.propTypes,\n type: PropTypes.oneOf(['form'])\n }),\n PropTypes.shape({\n ...ContentTranslate.propTypes,\n type: PropTypes.oneOf(['translate'])\n }),\n PropTypes.shape({\n ...OrganismSearchAndChipsResults.propTypes,\n type: PropTypes.oneOf(['populations'])\n }),\n PropTypes.shape({\n ...CourseSelection.propTypes,\n type: PropTypes.oneOf(['courses'])\n }),\n PropTypes.shape({\n ...CourseSections.propTypes,\n type: PropTypes.oneOf(['organize-courses'])\n })\n ]),\n previousStep: PropTypes.shape({\n label: PropTypes.string,\n onClick: PropTypes.func\n }),\n nextStep: PropTypes.shape({\n type: PropTypes.oneOf(['next', 'publish']),\n label: PropTypes.string,\n onClick: PropTypes.func\n })\n};\n\nexport default WizardContents;\n"],"file":"index.js"}
@@ -5,6 +5,7 @@ import OrganismWizardContents from '..';
5
5
  import fixturePlaylistAddCoursesCreate from './fixtures/playlist-add-courses-create';
6
6
  import fixturePlaylistGeneralSettingsCreate from './fixtures/playlist-general-settings-create';
7
7
  import fixturePlaylistGeneralSettingsEdit from './fixtures/playlist-general-settings-edit';
8
+ import fixturePlaylistOrganizeCourses from './fixtures/playlist-organize-courses';
8
9
  import fixturePlaylistPopulationsCreate from './fixtures/playlist-populations-create';
9
10
  import fixturePlaylistTranslateEdit from './fixtures/playlist-translate-edit';
10
11
  test('Organism › OrganismWizardContents > should have valid propTypes', t => {
@@ -16,6 +17,7 @@ test('Organism › OrganismWizardContents > should have valid propTypes', t => {
16
17
  test('Organism › OrganismWizardContents › PlaylistAddCoursesCreate › should be rendered', renderComponentMacro, OrganismWizardContents, fixturePlaylistAddCoursesCreate);
17
18
  test('Organism › OrganismWizardContents › PlaylistGeneralSettingsCreate › should be rendered', renderComponentMacro, OrganismWizardContents, fixturePlaylistGeneralSettingsCreate);
18
19
  test('Organism › OrganismWizardContents › PlaylistGeneralSettingsEdit › should be rendered', renderComponentMacro, OrganismWizardContents, fixturePlaylistGeneralSettingsEdit);
20
+ test('Organism › OrganismWizardContents › PlaylistOrganizeCourses › should be rendered', renderComponentMacro, OrganismWizardContents, fixturePlaylistOrganizeCourses);
19
21
  test('Organism › OrganismWizardContents › PlaylistPopulationsCreate › should be rendered', renderComponentMacro, OrganismWizardContents, fixturePlaylistPopulationsCreate);
20
22
  test('Organism › OrganismWizardContents › PlaylistTranslateEdit › should be rendered', renderComponentMacro, OrganismWizardContents, fixturePlaylistTranslateEdit);
21
23
  //# sourceMappingURL=fixtures.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/organism/wizard-contents/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","OrganismWizardContents","fixturePlaylistAddCoursesCreate","fixturePlaylistGeneralSettingsCreate","fixturePlaylistGeneralSettingsEdit","fixturePlaylistPopulationsCreate","fixturePlaylistTranslateEdit","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,wCAAjC;AACA,OAAOC,sBAAP,MAAmC,IAAnC;AACA,OAAOC,+BAAP,MAA4C,wCAA5C;AACA,OAAOC,oCAAP,MAAiD,6CAAjD;AACA,OAAOC,kCAAP,MAA+C,2CAA/C;AACA,OAAOC,gCAAP,MAA6C,wCAA7C;AACA,OAAOC,4BAAP,MAAyC,oCAAzC;AAEAR,IAAI,CAAC,iEAAD,EAAoES,CAAC,IAAI;AAC3EA,EAAAA,CAAC,CAACC,IAAF;AACAT,EAAAA,OAAO,CAACE,sBAAsB,CAACQ,SAAxB,EAAmC,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACxDJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,2DAA0DF,GAAI,mEAAvF;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAb,IAAI,CAAC,mFAAD,EAAsFE,oBAAtF,EAA4GC,sBAA5G,EAAoIC,+BAApI,CAAJ;AACAJ,IAAI,CAAC,wFAAD,EAA2FE,oBAA3F,EAAiHC,sBAAjH,EAAyIE,oCAAzI,CAAJ;AACAL,IAAI,CAAC,sFAAD,EAAyFE,oBAAzF,EAA+GC,sBAA/G,EAAuIG,kCAAvI,CAAJ;AACAN,IAAI,CAAC,oFAAD,EAAuFE,oBAAvF,EAA6GC,sBAA7G,EAAqII,gCAArI,CAAJ;AACAP,IAAI,CAAC,gFAAD,EAAmFE,oBAAnF,EAAyGC,sBAAzG,EAAiIK,4BAAjI,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport OrganismWizardContents from '..';\nimport fixturePlaylistAddCoursesCreate from './fixtures/playlist-add-courses-create';\nimport fixturePlaylistGeneralSettingsCreate from './fixtures/playlist-general-settings-create';\nimport fixturePlaylistGeneralSettingsEdit from './fixtures/playlist-general-settings-edit';\nimport fixturePlaylistPopulationsCreate from './fixtures/playlist-populations-create';\nimport fixturePlaylistTranslateEdit from './fixtures/playlist-translate-edit';\n\ntest('Organism › OrganismWizardContents > should have valid propTypes', t => {\n t.pass();\n forEach(OrganismWizardContents.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Organism.OrganismWizardContents.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Organism › OrganismWizardContents › PlaylistAddCoursesCreate › should be rendered', renderComponentMacro, OrganismWizardContents, fixturePlaylistAddCoursesCreate);\ntest('Organism › OrganismWizardContents › PlaylistGeneralSettingsCreate › should be rendered', renderComponentMacro, OrganismWizardContents, fixturePlaylistGeneralSettingsCreate);\ntest('Organism › OrganismWizardContents › PlaylistGeneralSettingsEdit › should be rendered', renderComponentMacro, OrganismWizardContents, fixturePlaylistGeneralSettingsEdit);\ntest('Organism › OrganismWizardContents › PlaylistPopulationsCreate › should be rendered', renderComponentMacro, OrganismWizardContents, fixturePlaylistPopulationsCreate);\ntest('Organism › OrganismWizardContents › PlaylistTranslateEdit › should be rendered', renderComponentMacro, OrganismWizardContents, fixturePlaylistTranslateEdit);\n"],"file":"fixtures.js"}
1
+ {"version":3,"sources":["../../../../src/organism/wizard-contents/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","OrganismWizardContents","fixturePlaylistAddCoursesCreate","fixturePlaylistGeneralSettingsCreate","fixturePlaylistGeneralSettingsEdit","fixturePlaylistOrganizeCourses","fixturePlaylistPopulationsCreate","fixturePlaylistTranslateEdit","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,wCAAjC;AACA,OAAOC,sBAAP,MAAmC,IAAnC;AACA,OAAOC,+BAAP,MAA4C,wCAA5C;AACA,OAAOC,oCAAP,MAAiD,6CAAjD;AACA,OAAOC,kCAAP,MAA+C,2CAA/C;AACA,OAAOC,8BAAP,MAA2C,sCAA3C;AACA,OAAOC,gCAAP,MAA6C,wCAA7C;AACA,OAAOC,4BAAP,MAAyC,oCAAzC;AAEAT,IAAI,CAAC,iEAAD,EAAoEU,CAAC,IAAI;AAC3EA,EAAAA,CAAC,CAACC,IAAF;AACAV,EAAAA,OAAO,CAACE,sBAAsB,CAACS,SAAxB,EAAmC,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACxDJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,2DAA0DF,GAAI,mEAAvF;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAd,IAAI,CAAC,mFAAD,EAAsFE,oBAAtF,EAA4GC,sBAA5G,EAAoIC,+BAApI,CAAJ;AACAJ,IAAI,CAAC,wFAAD,EAA2FE,oBAA3F,EAAiHC,sBAAjH,EAAyIE,oCAAzI,CAAJ;AACAL,IAAI,CAAC,sFAAD,EAAyFE,oBAAzF,EAA+GC,sBAA/G,EAAuIG,kCAAvI,CAAJ;AACAN,IAAI,CAAC,kFAAD,EAAqFE,oBAArF,EAA2GC,sBAA3G,EAAmII,8BAAnI,CAAJ;AACAP,IAAI,CAAC,oFAAD,EAAuFE,oBAAvF,EAA6GC,sBAA7G,EAAqIK,gCAArI,CAAJ;AACAR,IAAI,CAAC,gFAAD,EAAmFE,oBAAnF,EAAyGC,sBAAzG,EAAiIM,4BAAjI,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport OrganismWizardContents from '..';\nimport fixturePlaylistAddCoursesCreate from './fixtures/playlist-add-courses-create';\nimport fixturePlaylistGeneralSettingsCreate from './fixtures/playlist-general-settings-create';\nimport fixturePlaylistGeneralSettingsEdit from './fixtures/playlist-general-settings-edit';\nimport fixturePlaylistOrganizeCourses from './fixtures/playlist-organize-courses';\nimport fixturePlaylistPopulationsCreate from './fixtures/playlist-populations-create';\nimport fixturePlaylistTranslateEdit from './fixtures/playlist-translate-edit';\n\ntest('Organism › OrganismWizardContents > should have valid propTypes', t => {\n t.pass();\n forEach(OrganismWizardContents.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Organism.OrganismWizardContents.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Organism › OrganismWizardContents › PlaylistAddCoursesCreate › should be rendered', renderComponentMacro, OrganismWizardContents, fixturePlaylistAddCoursesCreate);\ntest('Organism › OrganismWizardContents › PlaylistGeneralSettingsCreate › should be rendered', renderComponentMacro, OrganismWizardContents, fixturePlaylistGeneralSettingsCreate);\ntest('Organism › OrganismWizardContents › PlaylistGeneralSettingsEdit › should be rendered', renderComponentMacro, OrganismWizardContents, fixturePlaylistGeneralSettingsEdit);\ntest('Organism › OrganismWizardContents › PlaylistOrganizeCourses › should be rendered', renderComponentMacro, OrganismWizardContents, fixturePlaylistOrganizeCourses);\ntest('Organism › OrganismWizardContents › PlaylistPopulationsCreate › should be rendered', renderComponentMacro, OrganismWizardContents, fixturePlaylistPopulationsCreate);\ntest('Organism › OrganismWizardContents › PlaylistTranslateEdit › should be rendered', renderComponentMacro, OrganismWizardContents, fixturePlaylistTranslateEdit);\n"],"file":"fixtures.js"}
File without changes
File without changes
File without changes
File without changes
@@ -36,6 +36,7 @@ import fixtureUploadusers from './fixtures/uploadusers';
36
36
  import fixtureWizardAddCoursesPlaylist from './fixtures/wizard-add-courses-playlist';
37
37
  import fixtureWizardFormCreatePlaylist from './fixtures/wizard-form-create-playlist';
38
38
  import fixtureWizardFormEditPlaylist from './fixtures/wizard-form-edit-playlist';
39
+ import fixtureWizardOrganizeCoursesPlaylist from './fixtures/wizard-organize-courses-playlist';
39
40
  import fixtureWizardPopulationsPlaylistWithPopin from './fixtures/wizard-populations-playlist-with-popin';
40
41
  import fixtureWizardPopulationsPlaylist from './fixtures/wizard-populations-playlist';
41
42
  import fixtureWizardTranslatePlaylist from './fixtures/wizard-translate-playlist';
@@ -79,6 +80,7 @@ test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Uploadusers › s
79
80
  test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardAddCoursesPlaylist › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureWizardAddCoursesPlaylist);
80
81
  test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardFormCreatePlaylist › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureWizardFormCreatePlaylist);
81
82
  test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardFormEditPlaylist › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureWizardFormEditPlaylist);
83
+ test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardOrganizeCoursesPlaylist › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureWizardOrganizeCoursesPlaylist);
82
84
  test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardPopulationsPlaylistWithPopin › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureWizardPopulationsPlaylistWithPopin);
83
85
  test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardPopulationsPlaylist › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureWizardPopulationsPlaylist);
84
86
  test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardTranslatePlaylist › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureWizardTranslatePlaylist);
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/template/back-office/brand-update/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","TemplateBackOfficeBrandUpdate","fixtureAnalytics","fixtureAnimations","fixtureCohortError","fixtureCohort","fixtureDashboard","fixtureDashboardsAnalytics","fixtureDefault","fixtureGeneralSettingsSuccess","fixtureGeneralSettings","fixtureListItemsArchived","fixtureListItemsDraft","fixtureListItemsPublishedWithPopin","fixtureListItemsPublished","fixtureLmsError","fixtureLmsModified","fixtureLmsSuccess","fixtureLms","fixtureLoader","fixtureLookandfeelError","fixtureLookandfeelModified","fixtureLookandfeelPending","fixtureLookandfeelSuccess","fixtureLookandfeel","fixtureManageusersEdit","fixtureManageusersList","fixtureQuickAccess","fixtureSsoActivate","fixtureSso","fixtureUploadusersLoading","fixtureUploadusersSuccessful","fixtureUploadusers","fixtureWizardAddCoursesPlaylist","fixtureWizardFormCreatePlaylist","fixtureWizardFormEditPlaylist","fixtureWizardPopulationsPlaylistWithPopin","fixtureWizardPopulationsPlaylist","fixtureWizardTranslatePlaylist","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,2CAAjC;AACA,OAAOC,6BAAP,MAA0C,IAA1C;AACA,OAAOC,gBAAP,MAA6B,sBAA7B;AACA,OAAOC,iBAAP,MAA8B,uBAA9B;AACA,OAAOC,kBAAP,MAA+B,yBAA/B;AACA,OAAOC,aAAP,MAA0B,mBAA1B;AACA,OAAOC,gBAAP,MAA6B,sBAA7B;AACA,OAAOC,0BAAP,MAAuC,iCAAvC;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,6BAAP,MAA0C,qCAA1C;AACA,OAAOC,sBAAP,MAAmC,6BAAnC;AACA,OAAOC,wBAAP,MAAqC,gCAAr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,CAAC,iGAAD,EAAoGE,oBAApG,EAA0HC,6BAA1H,EAAyJ8B,4BAAzJ,CAAJ;AACAjC,IAAI,CAAC,uFAAD,EAA0FE,oBAA1F,EAAgHC,6BAAhH,EAA+I+B,kBAA/I,CAAJ;AACAlC,IAAI,CAAC,oGAAD,EAAuGE,oBAAvG,EAA6HC,6BAA7H,EAA4JgC,+BAA5J,CAAJ;AACAnC,IAAI,CAAC,oGAAD,EAAuGE,oBAAvG,EAA6HC,6BAA7H,EAA4JiC,+BAA5J,CAAJ;AACApC,IAAI,CAAC,kGAAD,EAAqGE,oBAArG,EAA2HC,6BAA3H,EAA0JkC,6BAA1J,CAAJ;AACArC,IAAI,CAAC,8GAAD,EAAiHE,oBAAjH,EAAuIC,6BAAvI,EAAsKmC,yCAAtK,CAAJ;AACAtC,IAAI,CAAC,qGAAD,EAAwGE,oBAAxG,EAA8HC,6BAA9H,EAA6JoC,gCAA7J,CAAJ;AACAvC,IAAI,CAAC,mGAAD,EAAsGE,oBAAtG,EAA4HC,6BAA5H,EAA2JqC,8BAA3J,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../../test/helpers/render-component';\nimport TemplateBackOfficeBrandUpdate from '..';\nimport fixtureAnalytics from './fixtures/analytics';\nimport fixtureAnimations from './fixtures/animations';\nimport fixtureCohortError from './fixtures/cohort-error';\nimport fixtureCohort from './fixtures/cohort';\nimport fixtureDashboard from './fixtures/dashboard';\nimport fixtureDashboardsAnalytics from './fixtures/dashboards-analytics';\nimport fixtureDefault from './fixtures/default';\nimport fixtureGeneralSettingsSuccess from './fixtures/general-settings-success';\nimport fixtureGeneralSettings from './fixtures/general-settings';\nimport fixtureListItemsArchived from './fixtures/list-items-archived';\nimport fixtureListItemsDraft from './fixtures/list-items-draft';\nimport fixtureListItemsPublishedWithPopin from './fixtures/list-items-published-with-popin';\nimport fixtureListItemsPublished from './fixtures/list-items-published';\nimport fixtureLmsError from './fixtures/lms-error';\nimport fixtureLmsModified from './fixtures/lms-modified';\nimport fixtureLmsSuccess from './fixtures/lms-success';\nimport fixtureLms from './fixtures/lms';\nimport fixtureLoader from './fixtures/loader';\nimport fixtureLookandfeelError from './fixtures/lookandfeel-error';\nimport fixtureLookandfeelModified from './fixtures/lookandfeel-modified';\nimport fixtureLookandfeelPending from './fixtures/lookandfeel-pending';\nimport fixtureLookandfeelSuccess from './fixtures/lookandfeel-success';\nimport fixtureLookandfeel from './fixtures/lookandfeel';\nimport fixtureManageusersEdit from './fixtures/manageusers-edit';\nimport fixtureManageusersList from './fixtures/manageusers-list';\nimport fixtureQuickAccess from './fixtures/quick-access';\nimport fixtureSsoActivate from './fixtures/sso-activate';\nimport fixtureSso from './fixtures/sso';\nimport fixtureUploadusersLoading from './fixtures/uploadusers-loading';\nimport fixtureUploadusersSuccessful from './fixtures/uploadusers-successful';\nimport fixtureUploadusers from './fixtures/uploadusers';\nimport fixtureWizardAddCoursesPlaylist from './fixtures/wizard-add-courses-playlist';\nimport fixtureWizardFormCreatePlaylist from './fixtures/wizard-form-create-playlist';\nimport fixtureWizardFormEditPlaylist from './fixtures/wizard-form-edit-playlist';\nimport fixtureWizardPopulationsPlaylistWithPopin from './fixtures/wizard-populations-playlist-with-popin';\nimport fixtureWizardPopulationsPlaylist from './fixtures/wizard-populations-playlist';\nimport fixtureWizardTranslatePlaylist from './fixtures/wizard-translate-playlist';\n\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate > should have valid propTypes', t => {\n t.pass();\n forEach(TemplateBackOfficeBrandUpdate.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"TemplateBackOffice.TemplateBackOfficeBrandUpdate.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Analytics › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureAnalytics);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Animations › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureAnimations);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › CohortError › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureCohortError);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Cohort › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureCohort);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Dashboard › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureDashboard);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › DashboardsAnalytics › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureDashboardsAnalytics);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Default › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureDefault);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › GeneralSettingsSuccess › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureGeneralSettingsSuccess);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › GeneralSettings › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureGeneralSettings);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › ListItemsArchived › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureListItemsArchived);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › ListItemsDraft › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureListItemsDraft);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › ListItemsPublishedWithPopin › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureListItemsPublishedWithPopin);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › ListItemsPublished › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureListItemsPublished);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LmsError › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLmsError);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LmsModified › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLmsModified);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LmsSuccess › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLmsSuccess);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Lms › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLms);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Loader › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLoader);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LookandfeelError › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLookandfeelError);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LookandfeelModified › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLookandfeelModified);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LookandfeelPending › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLookandfeelPending);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LookandfeelSuccess › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLookandfeelSuccess);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Lookandfeel › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLookandfeel);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › ManageusersEdit › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureManageusersEdit);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › ManageusersList › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureManageusersList);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › QuickAccess › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureQuickAccess);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › SsoActivate › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureSsoActivate);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Sso › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureSso);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › UploadusersLoading › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureUploadusersLoading);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › UploadusersSuccessful › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureUploadusersSuccessful);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Uploadusers › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureUploadusers);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardAddCoursesPlaylist › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureWizardAddCoursesPlaylist);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardFormCreatePlaylist › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureWizardFormCreatePlaylist);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardFormEditPlaylist › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureWizardFormEditPlaylist);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardPopulationsPlaylistWithPopin › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureWizardPopulationsPlaylistWithPopin);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardPopulationsPlaylist › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureWizardPopulationsPlaylist);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardTranslatePlaylist › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureWizardTranslatePlaylist);\n"],"file":"fixtures.js"}
1
+ {"version":3,"sources":["../../../../../src/template/back-office/brand-update/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","TemplateBackOfficeBrandUpdate","fixtureAnalytics","fixtureAnimations","fixtureCohortError","fixtureCohort","fixtureDashboard","fixtureDashboardsAnalytics","fixtureDefault","fixtureGeneralSettingsSuccess","fixtureGeneralSettings","fixtureListItemsArchived","fixtureListItemsDraft","fixtureListItemsPublishedWithPopin","fixtureListItemsPublished","fixtureLmsError","fixtureLmsModified","fixtureLmsSuccess","fixtureLms","fixtureLoader","fixtureLookandfeelError","fixtureLookandfeelModified","fixtureLookandfeelPending","fixtureLookandfeelSuccess","fixtureLookandfeel","fixtureManageusersEdit","fixtureManageusersList","fixtureQuickAccess","fixtureSsoActivate","fixtureSso","fixtureUploadusersLoading","fixtureUploadusersSuccessful","fixtureUploadusers","fixtureWizardAddCoursesPlaylist","fixtureWizardFormCreatePlaylist","fixtureWizardFormEditPlaylist","fixtureWizardOrganizeCoursesPlaylist","fixtureWizardPopulationsPlaylistWithPopin","fixtureWizardPopulationsPlaylist","fixtureWizardTranslatePlaylist","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,2CAAjC;AACA,OAAOC,6BAAP,MAA0C,IAA1C;AACA,OAAOC,gBAAP,MAA6B,sBAA7B;AACA,OAAOC,iBAAP,MAA8B,uBAA9B;AACA,OAAOC,kBAAP,MAA+B,yBAA/B;AACA,OAAOC,aAAP,MAA0B,mBAA1B;AACA,OAAOC,gBAAP,MAA6B,sBAA7B;AACA,OAAOC,0BAAP,MAAuC,iCAAvC;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,6BAAP,MAA0C,qCAA1C;AACA,OAAOC,sBAAP,MAAmC,6BAAnC;AACA,OAAOC,wBA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C,6BAAvH,EAAsJ6B,yBAAtJ,CAAJ;AACAhC,IAAI,CAAC,iGAAD,EAAoGE,oBAApG,EAA0HC,6BAA1H,EAAyJ8B,4BAAzJ,CAAJ;AACAjC,IAAI,CAAC,uFAAD,EAA0FE,oBAA1F,EAAgHC,6BAAhH,EAA+I+B,kBAA/I,CAAJ;AACAlC,IAAI,CAAC,oGAAD,EAAuGE,oBAAvG,EAA6HC,6BAA7H,EAA4JgC,+BAA5J,CAAJ;AACAnC,IAAI,CAAC,oGAAD,EAAuGE,oBAAvG,EAA6HC,6BAA7H,EAA4JiC,+BAA5J,CAAJ;AACApC,IAAI,CAAC,kGAAD,EAAqGE,oBAArG,EAA2HC,6BAA3H,EAA0JkC,6BAA1J,CAAJ;AACArC,IAAI,CAAC,yGAAD,EAA4GE,oBAA5G,EAAkIC,6BAAlI,EAAiKmC,oCAAjK,CAAJ;AACAtC,IAAI,CAAC,8GAAD,EAAiHE,oBAAjH,EAAuIC,6BAAvI,EAAsKoC,yCAAtK,CAAJ;AACAvC,IAAI,CAAC,qGAAD,EAAwGE,oBAAxG,EAA8HC,6BAA9H,EAA6JqC,gCAA7J,CAAJ;AACAxC,IAAI,CAAC,mGAAD,EAAsGE,oBAAtG,EAA4HC,6BAA5H,EAA2JsC,8BAA3J,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../../test/helpers/render-component';\nimport TemplateBackOfficeBrandUpdate from '..';\nimport fixtureAnalytics from './fixtures/analytics';\nimport fixtureAnimations from './fixtures/animations';\nimport fixtureCohortError from './fixtures/cohort-error';\nimport fixtureCohort from './fixtures/cohort';\nimport fixtureDashboard from './fixtures/dashboard';\nimport fixtureDashboardsAnalytics from './fixtures/dashboards-analytics';\nimport fixtureDefault from './fixtures/default';\nimport fixtureGeneralSettingsSuccess from './fixtures/general-settings-success';\nimport fixtureGeneralSettings from './fixtures/general-settings';\nimport fixtureListItemsArchived from './fixtures/list-items-archived';\nimport fixtureListItemsDraft from './fixtures/list-items-draft';\nimport fixtureListItemsPublishedWithPopin from './fixtures/list-items-published-with-popin';\nimport fixtureListItemsPublished from './fixtures/list-items-published';\nimport fixtureLmsError from './fixtures/lms-error';\nimport fixtureLmsModified from './fixtures/lms-modified';\nimport fixtureLmsSuccess from './fixtures/lms-success';\nimport fixtureLms from './fixtures/lms';\nimport fixtureLoader from './fixtures/loader';\nimport fixtureLookandfeelError from './fixtures/lookandfeel-error';\nimport fixtureLookandfeelModified from './fixtures/lookandfeel-modified';\nimport fixtureLookandfeelPending from './fixtures/lookandfeel-pending';\nimport fixtureLookandfeelSuccess from './fixtures/lookandfeel-success';\nimport fixtureLookandfeel from './fixtures/lookandfeel';\nimport fixtureManageusersEdit from './fixtures/manageusers-edit';\nimport fixtureManageusersList from './fixtures/manageusers-list';\nimport fixtureQuickAccess from './fixtures/quick-access';\nimport fixtureSsoActivate from './fixtures/sso-activate';\nimport fixtureSso from './fixtures/sso';\nimport fixtureUploadusersLoading from './fixtures/uploadusers-loading';\nimport fixtureUploadusersSuccessful from './fixtures/uploadusers-successful';\nimport fixtureUploadusers from './fixtures/uploadusers';\nimport fixtureWizardAddCoursesPlaylist from './fixtures/wizard-add-courses-playlist';\nimport fixtureWizardFormCreatePlaylist from './fixtures/wizard-form-create-playlist';\nimport fixtureWizardFormEditPlaylist from './fixtures/wizard-form-edit-playlist';\nimport fixtureWizardOrganizeCoursesPlaylist from './fixtures/wizard-organize-courses-playlist';\nimport fixtureWizardPopulationsPlaylistWithPopin from './fixtures/wizard-populations-playlist-with-popin';\nimport fixtureWizardPopulationsPlaylist from './fixtures/wizard-populations-playlist';\nimport fixtureWizardTranslatePlaylist from './fixtures/wizard-translate-playlist';\n\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate > should have valid propTypes', t => {\n t.pass();\n forEach(TemplateBackOfficeBrandUpdate.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"TemplateBackOffice.TemplateBackOfficeBrandUpdate.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Analytics › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureAnalytics);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Animations › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureAnimations);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › CohortError › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureCohortError);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Cohort › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureCohort);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Dashboard › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureDashboard);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › DashboardsAnalytics › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureDashboardsAnalytics);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Default › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureDefault);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › GeneralSettingsSuccess › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureGeneralSettingsSuccess);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › GeneralSettings › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureGeneralSettings);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › ListItemsArchived › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureListItemsArchived);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › ListItemsDraft › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureListItemsDraft);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › ListItemsPublishedWithPopin › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureListItemsPublishedWithPopin);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › ListItemsPublished › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureListItemsPublished);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LmsError › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLmsError);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LmsModified › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLmsModified);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LmsSuccess › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLmsSuccess);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Lms › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLms);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Loader › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLoader);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LookandfeelError › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLookandfeelError);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LookandfeelModified › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLookandfeelModified);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LookandfeelPending › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLookandfeelPending);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LookandfeelSuccess › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLookandfeelSuccess);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Lookandfeel › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLookandfeel);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › ManageusersEdit › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureManageusersEdit);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › ManageusersList › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureManageusersList);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › QuickAccess › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureQuickAccess);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › SsoActivate › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureSsoActivate);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Sso › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureSso);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › UploadusersLoading › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureUploadusersLoading);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › UploadusersSuccessful › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureUploadusersSuccessful);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Uploadusers › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureUploadusers);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardAddCoursesPlaylist › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureWizardAddCoursesPlaylist);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardFormCreatePlaylist › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureWizardFormCreatePlaylist);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardFormEditPlaylist › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureWizardFormEditPlaylist);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardOrganizeCoursesPlaylist › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureWizardOrganizeCoursesPlaylist);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardPopulationsPlaylistWithPopin › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureWizardPopulationsPlaylistWithPopin);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardPopulationsPlaylist › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureWizardPopulationsPlaylist);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardTranslatePlaylist › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureWizardTranslatePlaylist);\n"],"file":"fixtures.js"}
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1,4 +1,4 @@
1
- import { NovaSolidRemoveAddAddCircle1 as AddIcon, NovaCompositionCoorpacademyAnalytics as AnalyticsIcon, NovaSolidContentEditionBin as BinIcon, NovaCompositionCoorpacademyBulletPoint as BulletPointIcon, NovaCompositionNavigationArrowLeft as ChevronLeftIcon, NovaCompositionNavigationArrowRight as ChevronRightIcon, NovaSolidStatusClose as CloseIcon, NovaSolidContentEditionPencilWrite as EditIcon, NovaCompositionCoorpacademyEye as EyeIcon, NovaSolidContentContentViewModule1 as ListIcon, NovaSolidLoginLogout1 as LogoutIcon, NovaSolidApplicationsWindowUpload3 as PublishIcon, NovaSolidComputersSdCard as SaveIcon } from '@coorpacademy/nova-icons';
1
+ import { NovaSolidRemoveAddAddCircle1 as AddIcon, NovaCompositionCoorpacademyAnalytics as AnalyticsIcon, NovaSolidContentEditionBin as BinIcon, NovaCompositionCoorpacademyBulletPoint as BulletPointIcon, NovaCompositionNavigationArrowLeft as ChevronLeftIcon, NovaCompositionNavigationArrowRight as ChevronRightIcon, NovaSolidStatusClose as CloseIcon, NovaSolidContentEditionPencilWrite as EditIcon, NovaCompositionCoorpacademyEye as EyeIcon, NovaSolidContentContentViewModule1 as ListIcon, NovaSolidLoginLogout1 as LogoutIcon, NovaSolidApplicationsWindowUpload3 as PublishIcon, NovaSolidComputersSdCard as SaveIcon, NovaLineLoginKey1 as KlfIcon } from '@coorpacademy/nova-icons';
2
2
  export const ICONS = {
3
3
  add: AddIcon,
4
4
  analytics: AnalyticsIcon,
@@ -8,6 +8,7 @@ export const ICONS = {
8
8
  'chevron-right': ChevronRightIcon,
9
9
  close: CloseIcon,
10
10
  edit: EditIcon,
11
+ key: KlfIcon,
11
12
  list: ListIcon,
12
13
  logout: LogoutIcon,
13
14
  publish: PublishIcon,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/util/button-icons.js"],"names":["NovaSolidRemoveAddAddCircle1","AddIcon","NovaCompositionCoorpacademyAnalytics","AnalyticsIcon","NovaSolidContentEditionBin","BinIcon","NovaCompositionCoorpacademyBulletPoint","BulletPointIcon","NovaCompositionNavigationArrowLeft","ChevronLeftIcon","NovaCompositionNavigationArrowRight","ChevronRightIcon","NovaSolidStatusClose","CloseIcon","NovaSolidContentEditionPencilWrite","EditIcon","NovaCompositionCoorpacademyEye","EyeIcon","NovaSolidContentContentViewModule1","ListIcon","NovaSolidLoginLogout1","LogoutIcon","NovaSolidApplicationsWindowUpload3","PublishIcon","NovaSolidComputersSdCard","SaveIcon","ICONS","add","analytics","bin","close","edit","list","logout","publish","save","see"],"mappings":"AAAA,SACEA,4BAA4B,IAAIC,OADlC,EAEEC,oCAAoC,IAAIC,aAF1C,EAGEC,0BAA0B,IAAIC,OAHhC,EAIEC,sCAAsC,IAAIC,eAJ5C,EAKEC,kCAAkC,IAAIC,eALxC,EAMEC,mCAAmC,IAAIC,gBANzC,EAOEC,oBAAoB,IAAIC,SAP1B,EAQEC,kCAAkC,IAAIC,QARxC,EASEC,8BAA8B,IAAIC,OATpC,EAUEC,kCAAkC,IAAIC,QAVxC,EAWEC,qBAAqB,IAAIC,UAX3B,EAYEC,kCAAkC,IAAIC,WAZxC,EAaEC,wBAAwB,IAAIC,QAb9B,QAcO,0BAdP;AAgBA,OAAO,MAAMC,KAAK,GAAG;AACnBC,EAAAA,GAAG,EAAE1B,OADc;AAEnB2B,EAAAA,SAAS,EAAEzB,aAFQ;AAGnB0B,EAAAA,GAAG,EAAExB,OAHc;AAInB,kBAAgBE,eAJG;AAKnB,kBAAgBE,eALG;AAMnB,mBAAiBE,gBANE;AAOnBmB,EAAAA,KAAK,EAAEjB,SAPY;AAQnBkB,EAAAA,IAAI,EAAEhB,QARa;AASnBiB,EAAAA,IAAI,EAAEb,QATa;AAUnBc,EAAAA,MAAM,EAAEZ,UAVW;AAWnBa,EAAAA,OAAO,EAAEX,WAXU;AAYnBY,EAAAA,IAAI,EAAEV,QAZa;AAanBW,EAAAA,GAAG,EAAEnB;AAbc,CAAd","sourcesContent":["import {\n NovaSolidRemoveAddAddCircle1 as AddIcon,\n NovaCompositionCoorpacademyAnalytics as AnalyticsIcon,\n NovaSolidContentEditionBin as BinIcon,\n NovaCompositionCoorpacademyBulletPoint as BulletPointIcon,\n NovaCompositionNavigationArrowLeft as ChevronLeftIcon,\n NovaCompositionNavigationArrowRight as ChevronRightIcon,\n NovaSolidStatusClose as CloseIcon,\n NovaSolidContentEditionPencilWrite as EditIcon,\n NovaCompositionCoorpacademyEye as EyeIcon,\n NovaSolidContentContentViewModule1 as ListIcon,\n NovaSolidLoginLogout1 as LogoutIcon,\n NovaSolidApplicationsWindowUpload3 as PublishIcon,\n NovaSolidComputersSdCard as SaveIcon\n} from '@coorpacademy/nova-icons';\n\nexport const ICONS = {\n add: AddIcon,\n analytics: AnalyticsIcon,\n bin: BinIcon,\n 'bullet-point': BulletPointIcon,\n 'chevron-left': ChevronLeftIcon,\n 'chevron-right': ChevronRightIcon,\n close: CloseIcon,\n edit: EditIcon,\n list: ListIcon,\n logout: LogoutIcon,\n publish: PublishIcon,\n save: SaveIcon,\n see: EyeIcon\n};\n"],"file":"button-icons.js"}
1
+ {"version":3,"sources":["../../src/util/button-icons.js"],"names":["NovaSolidRemoveAddAddCircle1","AddIcon","NovaCompositionCoorpacademyAnalytics","AnalyticsIcon","NovaSolidContentEditionBin","BinIcon","NovaCompositionCoorpacademyBulletPoint","BulletPointIcon","NovaCompositionNavigationArrowLeft","ChevronLeftIcon","NovaCompositionNavigationArrowRight","ChevronRightIcon","NovaSolidStatusClose","CloseIcon","NovaSolidContentEditionPencilWrite","EditIcon","NovaCompositionCoorpacademyEye","EyeIcon","NovaSolidContentContentViewModule1","ListIcon","NovaSolidLoginLogout1","LogoutIcon","NovaSolidApplicationsWindowUpload3","PublishIcon","NovaSolidComputersSdCard","SaveIcon","NovaLineLoginKey1","KlfIcon","ICONS","add","analytics","bin","close","edit","key","list","logout","publish","save","see"],"mappings":"AAAA,SACEA,4BAA4B,IAAIC,OADlC,EAEEC,oCAAoC,IAAIC,aAF1C,EAGEC,0BAA0B,IAAIC,OAHhC,EAIEC,sCAAsC,IAAIC,eAJ5C,EAKEC,kCAAkC,IAAIC,eALxC,EAMEC,mCAAmC,IAAIC,gBANzC,EAOEC,oBAAoB,IAAIC,SAP1B,EAQEC,kCAAkC,IAAIC,QARxC,EASEC,8BAA8B,IAAIC,OATpC,EAUEC,kCAAkC,IAAIC,QAVxC,EAWEC,qBAAqB,IAAIC,UAX3B,EAYEC,kCAAkC,IAAIC,WAZxC,EAaEC,wBAAwB,IAAIC,QAb9B,EAcEC,iBAAiB,IAAIC,OAdvB,QAeO,0BAfP;AAiBA,OAAO,MAAMC,KAAK,GAAG;AACnBC,EAAAA,GAAG,EAAE5B,OADc;AAEnB6B,EAAAA,SAAS,EAAE3B,aAFQ;AAGnB4B,EAAAA,GAAG,EAAE1B,OAHc;AAInB,kBAAgBE,eAJG;AAKnB,kBAAgBE,eALG;AAMnB,mBAAiBE,gBANE;AAOnBqB,EAAAA,KAAK,EAAEnB,SAPY;AAQnBoB,EAAAA,IAAI,EAAElB,QARa;AASnBmB,EAAAA,GAAG,EAAEP,OATc;AAUnBQ,EAAAA,IAAI,EAAEhB,QAVa;AAWnBiB,EAAAA,MAAM,EAAEf,UAXW;AAYnBgB,EAAAA,OAAO,EAAEd,WAZU;AAanBe,EAAAA,IAAI,EAAEb,QAba;AAcnBc,EAAAA,GAAG,EAAEtB;AAdc,CAAd","sourcesContent":["import {\n NovaSolidRemoveAddAddCircle1 as AddIcon,\n NovaCompositionCoorpacademyAnalytics as AnalyticsIcon,\n NovaSolidContentEditionBin as BinIcon,\n NovaCompositionCoorpacademyBulletPoint as BulletPointIcon,\n NovaCompositionNavigationArrowLeft as ChevronLeftIcon,\n NovaCompositionNavigationArrowRight as ChevronRightIcon,\n NovaSolidStatusClose as CloseIcon,\n NovaSolidContentEditionPencilWrite as EditIcon,\n NovaCompositionCoorpacademyEye as EyeIcon,\n NovaSolidContentContentViewModule1 as ListIcon,\n NovaSolidLoginLogout1 as LogoutIcon,\n NovaSolidApplicationsWindowUpload3 as PublishIcon,\n NovaSolidComputersSdCard as SaveIcon,\n NovaLineLoginKey1 as KlfIcon\n} from '@coorpacademy/nova-icons';\n\nexport const ICONS = {\n add: AddIcon,\n analytics: AnalyticsIcon,\n bin: BinIcon,\n 'bullet-point': BulletPointIcon,\n 'chevron-left': ChevronLeftIcon,\n 'chevron-right': ChevronRightIcon,\n close: CloseIcon,\n edit: EditIcon,\n key: KlfIcon,\n list: ListIcon,\n logout: LogoutIcon,\n publish: PublishIcon,\n save: SaveIcon,\n see: EyeIcon\n};\n"],"file":"button-icons.js"}
File without changes
File without changes
File without changes
@@ -3,6 +3,8 @@
3
3
  exports.__esModule = true;
4
4
  exports.default = void 0;
5
5
 
6
+ var _noop2 = _interopRequireDefault(require("lodash/fp/noop"));
7
+
6
8
  var _keys2 = _interopRequireDefault(require("lodash/fp/keys"));
7
9
 
8
10
  var _getOr2 = _interopRequireDefault(require("lodash/fp/getOr"));
@@ -62,14 +64,17 @@ const ButtonLink = props => {
62
64
  'data-name': dataName,
63
65
  'aria-label': ariaLabel,
64
66
  link,
65
- onClick
67
+ onClick = _noop2.default,
68
+ className,
69
+ customStyle
66
70
  } = props;
67
71
  const contentView = getButtonContent(icon, label);
68
- const styleButton = (0, _classnames.default)(_style.default.button, type === 'primary' && _style.default.primary, type === 'secondary' && _style.default.secondary, type === 'tertiary' && _style.default.tertiary, type === 'text' && _style.default.text, type === 'dangerous' && _style.default.dangerous, link && _style.default.link, disabled && _style.default.disabled);
72
+ const styleButton = (0, _classnames.default)(className, _style.default.button, type === 'primary' && _style.default.primary, type === 'secondary' && _style.default.secondary, type === 'tertiary' && _style.default.tertiary, type === 'text' && _style.default.text, type === 'dangerous' && _style.default.dangerous, link && _style.default.link, disabled && _style.default.disabled);
69
73
  const handleOnClick = (0, _react.useCallback)(() => onClick(), [onClick]);
70
74
 
71
75
  if (link) {
72
76
  return /*#__PURE__*/_react.default.createElement(_link.default, _extends({}, link, {
77
+ style: customStyle,
73
78
  className: styleButton,
74
79
  "data-name": dataName,
75
80
  "aria-label": ariaLabel || label,
@@ -82,6 +87,7 @@ const ButtonLink = props => {
82
87
  "aria-label": ariaLabel || label,
83
88
  title: ariaLabel || label,
84
89
  "data-name": dataName,
90
+ style: customStyle,
85
91
  className: styleButton,
86
92
  onClick: handleOnClick
87
93
  }, contentView);
@@ -102,7 +108,9 @@ ButtonLink.propTypes = process.env.NODE_ENV !== "production" ? {
102
108
  download: _propTypes.default.bool,
103
109
  target: _propTypes.default.oneOf(['_self', '_blank', '_parent', '_top'])
104
110
  }),
105
- disabled: _propTypes.default.bool
111
+ disabled: _propTypes.default.bool,
112
+ className: _propTypes.default.string,
113
+ customStyle: _propTypes.default.shape({})
106
114
  } : {};
107
115
  var _default = ButtonLink;
108
116
  exports.default = _default;
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/atom/button-link/index.js"],"names":["getButtonContent","icon","label","type","position","Icon","ICONS","style","buttonContent","ButtonLink","props","disabled","dataName","ariaLabel","link","onClick","contentView","styleButton","button","primary","secondary","tertiary","text","dangerous","handleOnClick","propTypes","PropTypes","oneOf","string","shape","func","href","download","bool","target"],"mappings":";;;;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;AACA;;;;;;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BAAUI,IATE;AAUrBhB,EAAAA,IAAI,EAAEY,mBAAUG,KAAV,CAAgB;AACpBE,IAAAA,IAAI,EAAEL,mBAAUE,MADI;AAEpBI,IAAAA,QAAQ,EAAEN,mBAAUO,IAFA;AAGpBC,IAAAA,MAAM,EAAER,mBAAUC,KAAV,CAAgB,CAAC,OAAD,EAAU,QAAV,EAAoB,SAApB,EAA+B,MAA/B,CAAhB;AAHY,GAAhB,CAVe;AAerBhB,EAAAA,QAAQ,EAAEe,mBAAUO;AAfC,CAAvB;eAkBexB,U","sourcesContent":["import React, {useCallback} from 'react';\nimport PropTypes from 'prop-types';\nimport {getOr, keys} from 'lodash/fp';\nimport classnames from 'classnames';\nimport Link from '../link';\nimport {ICONS} from '../../util/button-icons';\nimport style from './style.css';\n\nconst getButtonContent = (icon, label) => {\n const {type, position} = icon;\n const Icon = getOr(null, type, ICONS);\n\n if (!Icon) {\n return (\n <div className={style.buttonContent}>\n <span className={style.label}>{label}</span>\n </div>\n );\n }\n\n return (\n <div className={style.buttonContent}>\n {position === 'left' ? <Icon className={style.icon} /> : null}\n <span className={style.label}>{label}</span>\n {position === 'right' ? <Icon className={style.icon} /> : null}\n </div>\n );\n};\n\nconst ButtonLink = props => {\n const {\n type,\n label,\n disabled,\n icon = {},\n 'data-name': dataName,\n 'aria-label': ariaLabel,\n link,\n onClick\n } = props;\n const contentView = getButtonContent(icon, label);\n const styleButton = classnames(\n style.button,\n type === 'primary' && style.primary,\n type === 'secondary' && style.secondary,\n type === 'tertiary' && style.tertiary,\n type === 'text' && style.text,\n type === 'dangerous' && style.dangerous,\n link && style.link,\n disabled && style.disabled\n );\n\n const handleOnClick = useCallback(() => onClick(), [onClick]);\n\n if (link) {\n return (\n <Link\n {...link}\n className={styleButton}\n data-name={dataName}\n aria-label={ariaLabel || label}\n title={ariaLabel || label}\n >\n {contentView}\n </Link>\n );\n }\n\n return (\n <button\n type=\"button\"\n aria-label={ariaLabel || label}\n title={ariaLabel || label}\n data-name={dataName}\n className={styleButton}\n onClick={handleOnClick}\n >\n {contentView}\n </button>\n );\n};\n\nButtonLink.propTypes = {\n type: PropTypes.oneOf(['primary', 'secondary', 'tertiary', 'text', 'dangerous']),\n label: PropTypes.string,\n 'aria-label': PropTypes.string,\n 'data-name': PropTypes.string,\n icon: PropTypes.shape({\n position: PropTypes.oneOf(['right', 'left']),\n type: PropTypes.oneOf(keys(ICONS))\n }),\n onClick: PropTypes.func,\n link: PropTypes.shape({\n href: PropTypes.string,\n download: PropTypes.bool,\n target: PropTypes.oneOf(['_self', '_blank', '_parent', '_top'])\n }),\n disabled: PropTypes.bool\n};\n\nexport default ButtonLink;\n"],"file":"index.js"}
1
+ {"version":3,"sources":["../../../src/atom/button-link/index.js"],"names":["getButtonContent","icon","label","type","position","Icon","ICONS","style","buttonContent","ButtonLink","props","disabled","dataName","ariaLabel","link","onClick","className","customStyle","contentView","styleButton","button","primary","secondary","tertiary","text","dangerous","handleOnClick","propTypes","PropTypes","oneOf","string","shape","func","href","download","bool","target"],"mappings":";;;;;;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;AACA;;;;;;;;;;AAEA,MAAMA,gBAAgB,GAAG,CAACC,IAAD,EAAOC,KAAP,KAAiB;AACxC,QAAM;AAACC,IAAAA,IAAD;AAAOC,IAAAA;AAAP,MAAmBH,IAAzB;AACA,QAAMI,IAAI,GAAG,qBAAM,IAAN,EAAYF,IAAZ,EAAkBG,kBAAlB,CAAb;;AAEA,MAAI,CAACD,IAAL,EAAW;AACT,wBACE;AAAK,MAAA,SAAS,EAAEE,eAAMC;AAAtB,oBACE;AAAM,MAAA,SAAS,EAAED,eAAML;AAAvB,OAA+BA,KAA/B,CADF,CADF;AAKD;;AAED,sBACE;AAAK,IAAA,SAAS,EAAEK,eAAMC;AAAtB,KACGJ,QAAQ,KAAK,MAAb,gBAAsB,6BAAC,IAAD;AAAM,IAAA,SAAS,EAAEG,eAAMN;AAAvB,IAAtB,GAAwD,IAD3D,eAEE;AAAM,IAAA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AAgB,EAAhB;AAjBQ,CAAvB;eAoBetB,U","sourcesContent":["import React, {useCallback} from 'react';\nimport PropTypes from 'prop-types';\nimport {getOr, keys, noop} from 'lodash/fp';\nimport classnames from 'classnames';\nimport Link from '../link';\nimport {ICONS} from '../../util/button-icons';\nimport style from './style.css';\n\nconst getButtonContent = (icon, label) => {\n const {type, position} = icon;\n const Icon = getOr(null, type, ICONS);\n\n if (!Icon) {\n return (\n <div className={style.buttonContent}>\n <span className={style.label}>{label}</span>\n </div>\n );\n }\n\n return (\n <div className={style.buttonContent}>\n {position === 'left' ? <Icon className={style.icon} /> : null}\n <span className={style.label}>{label}</span>\n {position === 'right' ? <Icon className={style.icon} /> : null}\n </div>\n );\n};\n\nconst ButtonLink = props => {\n const {\n type,\n label,\n disabled,\n icon = {},\n 'data-name': dataName,\n 'aria-label': ariaLabel,\n link,\n onClick = noop,\n className,\n customStyle\n } = props;\n const contentView = getButtonContent(icon, label);\n const styleButton = classnames(\n className,\n style.button,\n type === 'primary' && style.primary,\n type === 'secondary' && style.secondary,\n type === 'tertiary' && style.tertiary,\n type === 'text' && style.text,\n type === 'dangerous' && style.dangerous,\n link && style.link,\n disabled && style.disabled\n );\n\n const handleOnClick = useCallback(() => onClick(), [onClick]);\n\n if (link) {\n return (\n <Link\n {...link}\n style={customStyle}\n className={styleButton}\n data-name={dataName}\n aria-label={ariaLabel || label}\n title={ariaLabel || label}\n >\n {contentView}\n </Link>\n );\n }\n\n return (\n <button\n type=\"button\"\n aria-label={ariaLabel || label}\n title={ariaLabel || label}\n data-name={dataName}\n style={customStyle}\n className={styleButton}\n onClick={handleOnClick}\n >\n {contentView}\n </button>\n );\n};\n\nButtonLink.propTypes = {\n type: PropTypes.oneOf(['primary', 'secondary', 'tertiary', 'text', 'dangerous']),\n label: PropTypes.string,\n 'aria-label': PropTypes.string,\n 'data-name': PropTypes.string,\n icon: PropTypes.shape({\n position: PropTypes.oneOf(['right', 'left']),\n type: PropTypes.oneOf(keys(ICONS))\n }),\n onClick: PropTypes.func,\n link: PropTypes.shape({\n href: PropTypes.string,\n download: PropTypes.bool,\n target: PropTypes.oneOf(['_self', '_blank', '_parent', '_top'])\n }),\n disabled: PropTypes.bool,\n className: PropTypes.string,\n customStyle: PropTypes.shape({})\n};\n\nexport default ButtonLink;\n"],"file":"index.js"}
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+
3
+ var _ava = _interopRequireDefault(require("ava"));
4
+
5
+ var _forEach = _interopRequireDefault(require("lodash/forEach"));
6
+
7
+ var _renderComponent = _interopRequireDefault(require("../../../test/helpers/render-component"));
8
+
9
+ var _ = _interopRequireDefault(require(".."));
10
+
11
+ var _default = _interopRequireDefault(require("./fixtures/default"));
12
+
13
+ var _empty = _interopRequireDefault(require("./fixtures/empty"));
14
+
15
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
16
+
17
+ (0, _ava.default)('Atom › AtomCardImagePreview > should have valid propTypes', t => {
18
+ t.pass();
19
+ (0, _forEach.default)(_.default.propTypes, (value, key) => {
20
+ t.not(value, undefined, `PropType for "Atom.AtomCardImagePreview.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
21
+ });
22
+ });
23
+ (0, _ava.default)('Atom › AtomCardImagePreview › Default › should be rendered', _renderComponent.default, _.default, _default.default);
24
+ (0, _ava.default)('Atom › AtomCardImagePreview › Empty › should be rendered', _renderComponent.default, _.default, _empty.default);
25
+ //# sourceMappingURL=fixtures.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/atom/card-image-preview/test/fixtures.js"],"names":["t","pass","AtomCardImagePreview","propTypes","value","key","not","undefined","renderComponentMacro","fixtureDefault","fixtureEmpty"],"mappings":";;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;AAEA,kBAAK,2DAAL,EAAkEA,CAAC,IAAI;AACrEA,EAAAA,CAAC,CAACC,IAAF;AACA,wBAAQC,UAAqBC,SAA7B,EAAwC,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACtDL,IAAAA,CAAC,CAACM,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,qDAAoDF,GAAI,mEAAjF;AACD,GAFD;AAGD,CALD;AAOA,kBAAK,4DAAL,EAAmEG,wBAAnE,EAAyFN,SAAzF,EAA+GO,gBAA/G;AACA,kBAAK,0DAAL,EAAiED,wBAAjE,EAAuFN,SAAvF,EAA6GQ,cAA7G","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport AtomCardImagePreview from '..';\nimport fixtureDefault from './fixtures/default';\nimport fixtureEmpty from './fixtures/empty';\n\ntest('Atom › AtomCardImagePreview > should have valid propTypes', t => {\n t.pass();\n forEach(AtomCardImagePreview.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Atom.AtomCardImagePreview.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Atom › AtomCardImagePreview › Default › should be rendered', renderComponentMacro, AtomCardImagePreview, fixtureDefault);\ntest('Atom › AtomCardImagePreview › Empty › should be rendered', renderComponentMacro, AtomCardImagePreview, fixtureEmpty);\n"],"file":"fixtures.js"}
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -8,6 +8,8 @@ var _renderComponent = _interopRequireDefault(require("../../../test/helpers/ren
8
8
 
9
9
  var _ = _interopRequireDefault(require(".."));
10
10
 
11
+ var _coorpmanager = _interopRequireDefault(require("./fixtures/coorpmanager"));
12
+
11
13
  var _default = _interopRequireDefault(require("./fixtures/default"));
12
14
 
13
15
  var _disabled = _interopRequireDefault(require("./fixtures/disabled"));
@@ -26,6 +28,8 @@ var _multipleSelected = _interopRequireDefault(require("./fixtures/multiple-sele
26
28
 
27
29
  var _multiple = _interopRequireDefault(require("./fixtures/multiple"));
28
30
 
31
+ var _player = _interopRequireDefault(require("./fixtures/player"));
32
+
29
33
  var _question = _interopRequireDefault(require("./fixtures/question"));
30
34
 
31
35
  var _requiredWithTitle = _interopRequireDefault(require("./fixtures/required-with-title"));
@@ -48,6 +52,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
48
52
  t.not(value, undefined, `PropType for "Atom.AtomSelect.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
49
53
  });
50
54
  });
55
+ (0, _ava.default)('Atom › AtomSelect › Coorpmanager › should be rendered', _renderComponent.default, _.default, _coorpmanager.default);
51
56
  (0, _ava.default)('Atom › AtomSelect › Default › should be rendered', _renderComponent.default, _.default, _default.default);
52
57
  (0, _ava.default)('Atom › AtomSelect › Disabled › should be rendered', _renderComponent.default, _.default, _disabled.default);
53
58
  (0, _ava.default)('Atom › AtomSelect › Error › should be rendered', _renderComponent.default, _.default, _error.default);
@@ -57,6 +62,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
57
62
  (0, _ava.default)('Atom › AtomSelect › Mooc › should be rendered', _renderComponent.default, _.default, _mooc.default);
58
63
  (0, _ava.default)('Atom › AtomSelect › MultipleSelected › should be rendered', _renderComponent.default, _.default, _multipleSelected.default);
59
64
  (0, _ava.default)('Atom › AtomSelect › Multiple › should be rendered', _renderComponent.default, _.default, _multiple.default);
65
+ (0, _ava.default)('Atom › AtomSelect › Player › should be rendered', _renderComponent.default, _.default, _player.default);
60
66
  (0, _ava.default)('Atom › AtomSelect › Question › should be rendered', _renderComponent.default, _.default, _question.default);
61
67
  (0, _ava.default)('Atom › AtomSelect › RequiredWithTitle › should be rendered', _renderComponent.default, _.default, _requiredWithTitle.default);
62
68
  (0, _ava.default)('Atom › AtomSelect › Required › should be rendered', _renderComponent.default, _.default, _required.default);
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/atom/select/test/fixtures.js"],"names":["t","pass","AtomSelect","propTypes","value","key","not","undefined","renderComponentMacro","fixtureDefault","fixtureDisabled","fixtureError","fixtureFilter","fixtureInvalid","fixtureModified","fixtureMooc","fixtureMultipleSelected","fixtureMultiple","fixtureQuestion","fixtureRequiredWithTitle","fixtureRequired","fixtureSort","fixtureTemplate","fixtureThematiquesLong","fixtureThematiques"],"mappings":";;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;AAEA,kBAAK,iDAAL,EAAwDA,CAAC,IAAI;AAC3DA,EAAAA,CAAC,CAACC,IAAF;AACA,wBAAQC,UAAWC,SAAnB,EAA8B,CAACC,KAAD,EAAQC,GAAR,KAAgB;AAC5CL,IAAAA,CAAC,CAACM,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,2CAA0CF,GAAI,mEAAvE;AACD,GAFD;AAGD,CALD;AAOA,kBAAK,kDAAL,EAAyDG,wBAAzD,EAA+EN,SAA/E,EAA2FO,gBAA3F;AACA,kBAAK,mDAAL,EAA0DD,wBAA1D,EAAgFN,SAAhF,EAA4FQ,iBAA5F;AACA,kBAAK,gDAAL,EAAuDF,wBAAvD,EAA6EN,SAA7E,EAAyFS,cAAzF;AACA,kBAAK,iDAAL,EAAwDH,wBAAxD,EAA8EN,SAA9E,EAA0FU,eAA1F;AACA,kBAAK,kDAAL,EAAyDJ,wBAAzD,EAA+EN,SAA/E,EAA2FW,gBAA3F;AACA,kBAAK,mDAAL,EAA0DL,wBAA1D,EAAgFN,SAAhF,EAA4FY,iBAA5F;AACA,kBAAK,+CAAL,EAAsDN,wBAAtD,EAA4EN,SAA5E,EAAwFa,aAAxF;AACA,kBAAK,2DAAL,EAAkEP,wBAAlE,EAAwFN,SAAxF,EAAoGc,yBAApG;AACA,kBAAK,mDAAL,EAA0DR,wBAA1D,EAAgFN,SAAhF,EAA4Fe,iBAA5F;AACA,kBAAK,mDAAL,EAA0DT,wBAA1D,EAAgFN,SAAhF,EAA4FgB,iBAA5F;AACA,kBAAK,4DAAL,EAAmEV,wBAAnE,EAAyFN,SAAzF,EAAqGiB,0BAArG;AACA,kBAAK,mDAAL,EAA0DX,wBAA1D,EAAgFN,SAAhF,EAA4FkB,iBAA5F;AACA,kBAAK,+CAAL,EAAsDZ,wBAAtD,EAA4EN,SAA5E,EAAwFmB,aAAxF;AACA,kBAAK,mDAAL,EAA0Db,wBAA1D,EAAgFN,SAAhF,EAA4FoB,iBAA5F;AACA,kBAAK,0DAAL,EAAiEd,wBAAjE,EAAuFN,SAAvF,EAAmGqB,wBAAnG;AACA,kBAAK,sDAAL,EAA6Df,wBAA7D,EAAmFN,SAAnF,EAA+FsB,oBAA/F","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport AtomSelect from '..';\nimport fixtureDefault from './fixtures/default';\nimport fixtureDisabled from './fixtures/disabled';\nimport fixtureError from './fixtures/error';\nimport fixtureFilter from './fixtures/filter';\nimport fixtureInvalid from './fixtures/invalid';\nimport fixtureModified from './fixtures/modified';\nimport fixtureMooc from './fixtures/mooc';\nimport fixtureMultipleSelected from './fixtures/multiple-selected';\nimport fixtureMultiple from './fixtures/multiple';\nimport fixtureQuestion from './fixtures/question';\nimport fixtureRequiredWithTitle from './fixtures/required-with-title';\nimport fixtureRequired from './fixtures/required';\nimport fixtureSort from './fixtures/sort';\nimport fixtureTemplate from './fixtures/template';\nimport fixtureThematiquesLong from './fixtures/thematiques-long';\nimport fixtureThematiques from './fixtures/thematiques';\n\ntest('Atom › AtomSelect > should have valid propTypes', t => {\n t.pass();\n forEach(AtomSelect.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Atom.AtomSelect.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Atom › AtomSelect › Default › should be rendered', renderComponentMacro, AtomSelect, fixtureDefault);\ntest('Atom › AtomSelect › Disabled › should be rendered', renderComponentMacro, AtomSelect, fixtureDisabled);\ntest('Atom › AtomSelect › Error › should be rendered', renderComponentMacro, AtomSelect, fixtureError);\ntest('Atom › AtomSelect › Filter › should be rendered', renderComponentMacro, AtomSelect, fixtureFilter);\ntest('Atom › AtomSelect › Invalid › should be rendered', renderComponentMacro, AtomSelect, fixtureInvalid);\ntest('Atom › AtomSelect › Modified › should be rendered', renderComponentMacro, AtomSelect, fixtureModified);\ntest('Atom › AtomSelect › Mooc › should be rendered', renderComponentMacro, AtomSelect, fixtureMooc);\ntest('Atom › AtomSelect › MultipleSelected › should be rendered', renderComponentMacro, AtomSelect, fixtureMultipleSelected);\ntest('Atom › AtomSelect › Multiple › should be rendered', renderComponentMacro, AtomSelect, fixtureMultiple);\ntest('Atom › AtomSelect › Question › should be rendered', renderComponentMacro, AtomSelect, fixtureQuestion);\ntest('Atom › AtomSelect › RequiredWithTitle › should be rendered', renderComponentMacro, AtomSelect, fixtureRequiredWithTitle);\ntest('Atom › AtomSelect › Required › should be rendered', renderComponentMacro, AtomSelect, fixtureRequired);\ntest('Atom › AtomSelect › Sort › should be rendered', renderComponentMacro, AtomSelect, fixtureSort);\ntest('Atom › AtomSelect › Template › should be rendered', renderComponentMacro, AtomSelect, fixtureTemplate);\ntest('Atom › AtomSelect › ThematiquesLong › should be rendered', renderComponentMacro, AtomSelect, fixtureThematiquesLong);\ntest('Atom › AtomSelect › Thematiques › should be rendered', renderComponentMacro, AtomSelect, fixtureThematiques);\n"],"file":"fixtures.js"}
1
+ {"version":3,"sources":["../../../../src/atom/select/test/fixtures.js"],"names":["t","pass","AtomSelect","propTypes","value","key","not","undefined","renderComponentMacro","fixtureCoorpmanager","fixtureDefault","fixtureDisabled","fixtureError","fixtureFilter","fixtureInvalid","fixtureModified","fixtureMooc","fixtureMultipleSelected","fixtureMultiple","fixturePlayer","fixtureQuestion","fixtureRequiredWithTitle","fixtureRequired","fixtureSort","fixtureTemplate","fixtureThematiquesLong","fixtureThematiques"],"mappings":";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L,EAAmEZ,wBAAnE,EAAyFN,SAAzF,EAAqGmB,0BAArG;AACA,kBAAK,mDAAL,EAA0Db,wBAA1D,EAAgFN,SAAhF,EAA4FoB,iBAA5F;AACA,kBAAK,+CAAL,EAAsDd,wBAAtD,EAA4EN,SAA5E,EAAwFqB,aAAxF;AACA,kBAAK,mDAAL,EAA0Df,wBAA1D,EAAgFN,SAAhF,EAA4FsB,iBAA5F;AACA,kBAAK,0DAAL,EAAiEhB,wBAAjE,EAAuFN,SAAvF,EAAmGuB,wBAAnG;AACA,kBAAK,sDAAL,EAA6DjB,wBAA7D,EAAmFN,SAAnF,EAA+FwB,oBAA/F","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport AtomSelect from '..';\nimport fixtureCoorpmanager from './fixtures/coorpmanager';\nimport fixtureDefault from './fixtures/default';\nimport fixtureDisabled from './fixtures/disabled';\nimport fixtureError from './fixtures/error';\nimport fixtureFilter from './fixtures/filter';\nimport fixtureInvalid from './fixtures/invalid';\nimport fixtureModified from './fixtures/modified';\nimport fixtureMooc from './fixtures/mooc';\nimport fixtureMultipleSelected from './fixtures/multiple-selected';\nimport fixtureMultiple from './fixtures/multiple';\nimport fixturePlayer from './fixtures/player';\nimport fixtureQuestion from './fixtures/question';\nimport fixtureRequiredWithTitle from './fixtures/required-with-title';\nimport fixtureRequired from './fixtures/required';\nimport fixtureSort from './fixtures/sort';\nimport fixtureTemplate from './fixtures/template';\nimport fixtureThematiquesLong from './fixtures/thematiques-long';\nimport fixtureThematiques from './fixtures/thematiques';\n\ntest('Atom › AtomSelect > should have valid propTypes', t => {\n t.pass();\n forEach(AtomSelect.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Atom.AtomSelect.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Atom › AtomSelect › Coorpmanager › should be rendered', renderComponentMacro, AtomSelect, fixtureCoorpmanager);\ntest('Atom › AtomSelect › Default › should be rendered', renderComponentMacro, AtomSelect, fixtureDefault);\ntest('Atom › AtomSelect › Disabled › should be rendered', renderComponentMacro, AtomSelect, fixtureDisabled);\ntest('Atom › AtomSelect › Error › should be rendered', renderComponentMacro, AtomSelect, fixtureError);\ntest('Atom › AtomSelect › Filter › should be rendered', renderComponentMacro, AtomSelect, fixtureFilter);\ntest('Atom › AtomSelect › Invalid › should be rendered', renderComponentMacro, AtomSelect, fixtureInvalid);\ntest('Atom › AtomSelect › Modified › should be rendered', renderComponentMacro, AtomSelect, fixtureModified);\ntest('Atom › AtomSelect › Mooc › should be rendered', renderComponentMacro, AtomSelect, fixtureMooc);\ntest('Atom › AtomSelect › MultipleSelected › should be rendered', renderComponentMacro, AtomSelect, fixtureMultipleSelected);\ntest('Atom › AtomSelect › Multiple › should be rendered', renderComponentMacro, AtomSelect, fixtureMultiple);\ntest('Atom › AtomSelect › Player › should be rendered', renderComponentMacro, AtomSelect, fixturePlayer);\ntest('Atom › AtomSelect › Question › should be rendered', renderComponentMacro, AtomSelect, fixtureQuestion);\ntest('Atom › AtomSelect › RequiredWithTitle › should be rendered', renderComponentMacro, AtomSelect, fixtureRequiredWithTitle);\ntest('Atom › AtomSelect › Required › should be rendered', renderComponentMacro, AtomSelect, fixtureRequired);\ntest('Atom › AtomSelect › Sort › should be rendered', renderComponentMacro, AtomSelect, fixtureSort);\ntest('Atom › AtomSelect › Template › should be rendered', renderComponentMacro, AtomSelect, fixtureTemplate);\ntest('Atom › AtomSelect › ThematiquesLong › should be rendered', renderComponentMacro, AtomSelect, fixtureThematiquesLong);\ntest('Atom › AtomSelect › Thematiques › should be rendered', renderComponentMacro, AtomSelect, fixtureThematiques);\n"],"file":"fixtures.js"}
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -28,7 +28,7 @@ const Tag = props => {
28
28
  } = props;
29
29
  return /*#__PURE__*/_react.default.createElement("span", {
30
30
  className: TAG_STYLES[type],
31
- "data-name": `custom-playlist-tag-${label}`
31
+ "data-name": `content-tag-${label}`
32
32
  }, label);
33
33
  };
34
34
 
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/atom/tag/index.js"],"names":["TAG_STYLES","default","style","published","revised","archived","draft","Tag","props","label","type","propTypes","PropTypes","string","oneOf"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;;;AAEA,MAAMA,UAAU,GAAG;AACjBC,EAAAA,OAAO,EAAEC,eAAMD,OADE;AAEjBE,EAAAA,SAAS,EAAED,eAAMC,SAFA;AAGjBC,EAAAA,OAAO,EAAEF,eAAME,OAHE;AAIjBC,EAAAA,QAAQ,EAAEH,eAAMG,QAJC;AAKjBC,EAAAA,KAAK,EAAEJ,eAAMI;AALI,CAAnB;;AAQA,MAAMC,GAAG,GAAGC,KAAK,IAAI;AACnB,QAAM;AAACC,IAAAA,KAAD;AAAQC,IAAAA,IAAI,GAAG;AAAf,MAA4BF,KAAlC;AAEA,sBACE;AAAM,IAAA,SAAS,EAAER,UAAU,CAACU,IAAD,CAA3B;AAAmC,iBAAY,uBAAsBD,KAAM;AAA3E,KACGA,KADH,CADF;AAKD,CARD;;AAUAF,GAAG,CAACI,SAAJ,2CAAgB;AACdF,EAAAA,KAAK,EAAEG,mBAAUC,MADH;AAEdH,EAAAA,IAAI,EAAEE,mBAAUE,KAAV,CAAgB,oBAAKd,UAAL,CAAhB;AAFQ,CAAhB;eAKeO,G","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {keys} from 'lodash/fp';\nimport style from './style.css';\n\nconst TAG_STYLES = {\n default: style.default,\n published: style.published,\n revised: style.revised,\n archived: style.archived,\n draft: style.draft\n};\n\nconst Tag = props => {\n const {label, type = 'default'} = props;\n\n return (\n <span className={TAG_STYLES[type]} data-name={`custom-playlist-tag-${label}`}>\n {label}\n </span>\n );\n};\n\nTag.propTypes = {\n label: PropTypes.string,\n type: PropTypes.oneOf(keys(TAG_STYLES))\n};\n\nexport default Tag;\n"],"file":"index.js"}
1
+ {"version":3,"sources":["../../../src/atom/tag/index.js"],"names":["TAG_STYLES","default","style","published","revised","archived","draft","Tag","props","label","type","propTypes","PropTypes","string","oneOf"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;;;AAEA,MAAMA,UAAU,GAAG;AACjBC,EAAAA,OAAO,EAAEC,eAAMD,OADE;AAEjBE,EAAAA,SAAS,EAAED,eAAMC,SAFA;AAGjBC,EAAAA,OAAO,EAAEF,eAAME,OAHE;AAIjBC,EAAAA,QAAQ,EAAEH,eAAMG,QAJC;AAKjBC,EAAAA,KAAK,EAAEJ,eAAMI;AALI,CAAnB;;AAQA,MAAMC,GAAG,GAAGC,KAAK,IAAI;AACnB,QAAM;AAACC,IAAAA,KAAD;AAAQC,IAAAA,IAAI,GAAG;AAAf,MAA4BF,KAAlC;AAEA,sBACE;AAAM,IAAA,SAAS,EAAER,UAAU,CAACU,IAAD,CAA3B;AAAmC,iBAAY,eAAcD,KAAM;AAAnE,KACGA,KADH,CADF;AAKD,CARD;;AAUAF,GAAG,CAACI,SAAJ,2CAAgB;AACdF,EAAAA,KAAK,EAAEG,mBAAUC,MADH;AAEdH,EAAAA,IAAI,EAAEE,mBAAUE,KAAV,CAAgB,oBAAKd,UAAL,CAAhB;AAFQ,CAAhB;eAKeO,G","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {keys} from 'lodash/fp';\nimport style from './style.css';\n\nconst TAG_STYLES = {\n default: style.default,\n published: style.published,\n revised: style.revised,\n archived: style.archived,\n draft: style.draft\n};\n\nconst Tag = props => {\n const {label, type = 'default'} = props;\n\n return (\n <span className={TAG_STYLES[type]} data-name={`content-tag-${label}`}>\n {label}\n </span>\n );\n};\n\nTag.propTypes = {\n label: PropTypes.string,\n type: PropTypes.oneOf(keys(TAG_STYLES))\n};\n\nexport default Tag;\n"],"file":"index.js"}