@coorpacademy/components 10.13.10-alpha.1 → 10.13.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (373) hide show
  1. package/es/atom/checkbox-with-title/style.css +2 -4
  2. package/es/atom/drag-and-drop/test/fixtures.js +0 -8
  3. package/es/atom/drag-and-drop/test/fixtures.js.map +1 -1
  4. package/es/atom/image-upload/test/fixtures.js +2 -4
  5. package/es/atom/image-upload/test/fixtures.js.map +1 -1
  6. package/es/atom/input-checkbox/test/fixtures.js +0 -2
  7. package/es/atom/input-checkbox/test/fixtures.js.map +1 -1
  8. package/es/atom/input-switch/test/fixtures.js +0 -10
  9. package/es/atom/input-switch/test/fixtures.js.map +1 -1
  10. package/es/atom/input-text/test/fixtures.js +0 -2
  11. package/es/atom/input-text/test/fixtures.js.map +1 -1
  12. package/es/atom/input-textarea/test/fixtures.js +0 -4
  13. package/es/atom/input-textarea/test/fixtures.js.map +1 -1
  14. package/es/atom/loader/test/fixtures.js +0 -2
  15. package/es/atom/loader/test/fixtures.js.map +1 -1
  16. package/es/atom/select/test/fixtures.js +0 -4
  17. package/es/atom/select/test/fixtures.js.map +1 -1
  18. package/es/atom/title/test/fixtures.js +2 -6
  19. package/es/atom/title/test/fixtures.js.map +1 -1
  20. package/es/molecule/brand-form-group/test/fixtures.js +0 -2
  21. package/es/molecule/brand-form-group/test/fixtures.js.map +1 -1
  22. package/es/molecule/card/test/fixtures.js +0 -6
  23. package/es/molecule/card/test/fixtures.js.map +1 -1
  24. package/es/molecule/cockpit-popin/test/fixtures.js +17 -0
  25. package/es/molecule/cockpit-popin/test/fixtures.js.map +1 -0
  26. package/es/molecule/course-section/index.js +19 -16
  27. package/es/molecule/course-section/index.js.map +1 -1
  28. package/es/molecule/course-section/style.css +12 -15
  29. package/es/molecule/course-section/test/fixtures/advanced-level.js +22 -0
  30. package/es/molecule/course-section/test/fixtures/advanced-level.js.map +1 -0
  31. package/es/molecule/course-section/test/fixtures/base-level.js +18 -0
  32. package/es/molecule/course-section/test/fixtures/base-level.js.map +1 -0
  33. package/es/molecule/course-section/test/fixtures/chapter.js +2 -2
  34. package/es/molecule/course-section/test/fixtures/chapter.js.map +1 -1
  35. package/es/molecule/course-section/test/fixtures/coach-level.js +24 -0
  36. package/es/molecule/course-section/test/fixtures/coach-level.js.map +1 -0
  37. package/es/molecule/course-section/test/fixtures/course.js +2 -2
  38. package/es/molecule/course-section/test/fixtures/course.js.map +1 -1
  39. package/es/molecule/course-sections/test/fixtures/default.js +20 -20
  40. package/es/molecule/course-sections/test/fixtures/default.js.map +1 -1
  41. package/es/molecule/drag-and-drop-wrapper/style.css +5 -2
  42. package/es/molecule/drag-and-drop-wrapper/test/fixtures/default.js +8 -2
  43. package/es/molecule/drag-and-drop-wrapper/test/fixtures/default.js.map +1 -1
  44. package/es/molecule/drag-and-drop-wrapper/test/fixtures/two-drag-and-drops.js +11 -3
  45. package/es/molecule/drag-and-drop-wrapper/test/fixtures/two-drag-and-drops.js.map +1 -1
  46. package/es/molecule/{input-text-with-titeled-checkbox → input-text-with-titled-checkbox}/index.js +0 -0
  47. package/es/molecule/input-text-with-titled-checkbox/index.js.map +1 -0
  48. package/es/molecule/{input-text-with-titeled-checkbox → input-text-with-titled-checkbox}/style.css +0 -0
  49. package/es/molecule/{input-text-with-titeled-checkbox → input-text-with-titled-checkbox}/test/fixtures/checked.js +0 -0
  50. package/es/molecule/input-text-with-titled-checkbox/test/fixtures/checked.js.map +1 -0
  51. package/es/molecule/{input-text-with-titeled-checkbox → input-text-with-titled-checkbox}/test/fixtures/unchecked.js +0 -0
  52. package/es/molecule/input-text-with-titled-checkbox/test/fixtures/unchecked.js.map +1 -0
  53. package/es/molecule/list-badges/index.js +38 -0
  54. package/es/molecule/list-badges/index.js.map +1 -0
  55. package/es/molecule/list-badges/style.css +15 -0
  56. package/es/molecule/list-badges/test/fixtures/advanced.js +9 -0
  57. package/es/molecule/list-badges/test/fixtures/advanced.js.map +1 -0
  58. package/es/molecule/list-badges/test/fixtures/base.js +8 -0
  59. package/es/molecule/list-badges/test/fixtures/base.js.map +1 -0
  60. package/es/molecule/list-badges/test/fixtures/coach.js +10 -0
  61. package/es/molecule/list-badges/test/fixtures/coach.js.map +1 -0
  62. package/es/molecule/list-badges/test/fixtures/course.js +8 -0
  63. package/es/molecule/list-badges/test/fixtures/course.js.map +1 -0
  64. package/es/molecule/questions/free-text/test/fixtures.js +2 -4
  65. package/es/molecule/questions/free-text/test/fixtures.js.map +1 -1
  66. package/es/molecule/select-multiple/test/fixtures.js +0 -8
  67. package/es/molecule/select-multiple/test/fixtures.js.map +1 -1
  68. package/es/molecule/setup-slide/test/fixtures.js +0 -2
  69. package/es/molecule/setup-slide/test/fixtures.js.map +1 -1
  70. package/es/organism/brand-dashboard/test/fixtures.js +10 -2
  71. package/es/organism/brand-dashboard/test/fixtures.js.map +1 -1
  72. package/es/organism/brand-form/test/fixtures.js +0 -2
  73. package/es/organism/brand-form/test/fixtures.js.map +1 -1
  74. package/es/organism/mooc-header/test/fixtures.js +0 -6
  75. package/es/organism/mooc-header/test/fixtures.js.map +1 -1
  76. package/es/organism/rewards-form/index.js +41 -0
  77. package/es/organism/rewards-form/index.js.map +1 -0
  78. package/es/organism/rewards-form/style.css +12 -0
  79. package/es/organism/rewards-form/test/fixtures/default.js +17 -0
  80. package/es/organism/rewards-form/test/fixtures/default.js.map +1 -0
  81. package/es/organism/rewards-form/test/fixtures/no-rewards.js +6 -0
  82. package/es/organism/rewards-form/test/fixtures/no-rewards.js.map +1 -0
  83. package/es/organism/rewards-form/test/fixtures/one-reward.js +11 -0
  84. package/es/organism/rewards-form/test/fixtures/one-reward.js.map +1 -0
  85. package/es/organism/rewards-form/test/fixtures/two-rewards.js +14 -0
  86. package/es/organism/rewards-form/test/fixtures/two-rewards.js.map +1 -0
  87. package/es/organism/wizard-contents/index.js +6 -0
  88. package/es/organism/wizard-contents/index.js.map +1 -1
  89. package/es/organism/wizard-contents/test/fixtures/certification-rewards.js +45 -0
  90. package/es/organism/wizard-contents/test/fixtures/certification-rewards.js.map +1 -0
  91. package/es/template/app-player/popin-correction/index.js +3 -3
  92. package/es/template/app-player/popin-correction/index.js.map +1 -1
  93. package/es/template/app-player/popin-correction/style.css +0 -4
  94. package/es/template/app-player/popin-end/test/fixtures.js +0 -2
  95. package/es/template/app-player/popin-end/test/fixtures.js.map +1 -1
  96. package/es/template/back-office/brand-update/test/fixtures/wizard-rewards-certification.js +22 -0
  97. package/es/template/back-office/brand-update/test/fixtures/wizard-rewards-certification.js.map +1 -0
  98. package/es/template/back-office/brand-update/test/fixtures.js +2 -24
  99. package/es/template/back-office/brand-update/test/fixtures.js.map +1 -1
  100. package/es/template/teams-dashboard/test/fixtures.js +0 -2
  101. package/es/template/teams-dashboard/test/fixtures.js.map +1 -1
  102. package/lib/atom/checkbox-with-title/style.css +2 -4
  103. package/lib/atom/drag-and-drop/test/fixtures.js +0 -12
  104. package/lib/atom/drag-and-drop/test/fixtures.js.map +1 -1
  105. package/lib/atom/image-upload/test/fixtures.js +3 -6
  106. package/lib/atom/image-upload/test/fixtures.js.map +1 -1
  107. package/lib/atom/input-checkbox/test/fixtures.js +0 -3
  108. package/lib/atom/input-checkbox/test/fixtures.js.map +1 -1
  109. package/lib/atom/input-switch/test/fixtures.js +0 -15
  110. package/lib/atom/input-switch/test/fixtures.js.map +1 -1
  111. package/lib/atom/input-text/test/fixtures.js +0 -3
  112. package/lib/atom/input-text/test/fixtures.js.map +1 -1
  113. package/lib/atom/input-textarea/test/fixtures.js +0 -6
  114. package/lib/atom/input-textarea/test/fixtures.js.map +1 -1
  115. package/lib/atom/loader/test/fixtures.js +0 -3
  116. package/lib/atom/loader/test/fixtures.js.map +1 -1
  117. package/lib/atom/select/test/fixtures.js +0 -6
  118. package/lib/atom/select/test/fixtures.js.map +1 -1
  119. package/lib/atom/title/test/fixtures.js +2 -8
  120. package/lib/atom/title/test/fixtures.js.map +1 -1
  121. package/lib/molecule/brand-form-group/test/fixtures.js +0 -3
  122. package/lib/molecule/brand-form-group/test/fixtures.js.map +1 -1
  123. package/lib/molecule/card/test/fixtures.js +0 -9
  124. package/lib/molecule/card/test/fixtures.js.map +1 -1
  125. package/lib/molecule/cockpit-popin/test/fixtures.js +28 -0
  126. package/lib/molecule/cockpit-popin/test/fixtures.js.map +1 -0
  127. package/lib/molecule/course-section/index.js +20 -16
  128. package/lib/molecule/course-section/index.js.map +1 -1
  129. package/lib/molecule/course-section/style.css +12 -15
  130. package/lib/molecule/course-section/test/fixtures/advanced-level.js +27 -0
  131. package/lib/molecule/course-section/test/fixtures/advanced-level.js.map +1 -0
  132. package/lib/molecule/course-section/test/fixtures/base-level.js +23 -0
  133. package/lib/molecule/course-section/test/fixtures/base-level.js.map +1 -0
  134. package/lib/molecule/course-section/test/fixtures/chapter.js +2 -2
  135. package/lib/molecule/course-section/test/fixtures/chapter.js.map +1 -1
  136. package/lib/molecule/course-section/test/fixtures/coach-level.js +29 -0
  137. package/lib/molecule/course-section/test/fixtures/coach-level.js.map +1 -0
  138. package/lib/molecule/course-section/test/fixtures/course.js +2 -2
  139. package/lib/molecule/course-section/test/fixtures/course.js.map +1 -1
  140. package/lib/molecule/course-sections/test/fixtures/default.js +20 -20
  141. package/lib/molecule/course-sections/test/fixtures/default.js.map +1 -1
  142. package/lib/molecule/drag-and-drop-wrapper/style.css +5 -2
  143. package/lib/molecule/drag-and-drop-wrapper/test/fixtures/default.js +8 -2
  144. package/lib/molecule/drag-and-drop-wrapper/test/fixtures/default.js.map +1 -1
  145. package/lib/molecule/drag-and-drop-wrapper/test/fixtures/two-drag-and-drops.js +11 -3
  146. package/lib/molecule/drag-and-drop-wrapper/test/fixtures/two-drag-and-drops.js.map +1 -1
  147. package/lib/molecule/{input-text-with-titeled-checkbox → input-text-with-titled-checkbox}/index.js +0 -0
  148. package/lib/molecule/input-text-with-titled-checkbox/index.js.map +1 -0
  149. package/lib/molecule/{input-text-with-titeled-checkbox → input-text-with-titled-checkbox}/style.css +0 -0
  150. package/lib/molecule/{input-text-with-titeled-checkbox → input-text-with-titled-checkbox}/test/fixtures/checked.js +0 -0
  151. package/lib/molecule/input-text-with-titled-checkbox/test/fixtures/checked.js.map +1 -0
  152. package/lib/molecule/{input-text-with-titeled-checkbox → input-text-with-titled-checkbox}/test/fixtures/unchecked.js +0 -0
  153. package/lib/molecule/input-text-with-titled-checkbox/test/fixtures/unchecked.js.map +1 -0
  154. package/lib/molecule/list-badges/index.js +50 -0
  155. package/lib/molecule/list-badges/index.js.map +1 -0
  156. package/lib/molecule/list-badges/style.css +15 -0
  157. package/lib/molecule/list-badges/test/fixtures/advanced.js +19 -0
  158. package/lib/molecule/list-badges/test/fixtures/advanced.js.map +1 -0
  159. package/lib/molecule/list-badges/test/fixtures/base.js +17 -0
  160. package/lib/molecule/list-badges/test/fixtures/base.js.map +1 -0
  161. package/lib/molecule/list-badges/test/fixtures/coach.js +21 -0
  162. package/lib/molecule/list-badges/test/fixtures/coach.js.map +1 -0
  163. package/lib/molecule/list-badges/test/fixtures/course.js +17 -0
  164. package/lib/molecule/list-badges/test/fixtures/course.js.map +1 -0
  165. package/lib/molecule/questions/free-text/test/fixtures.js +2 -5
  166. package/lib/molecule/questions/free-text/test/fixtures.js.map +1 -1
  167. package/lib/molecule/select-multiple/test/fixtures.js +0 -12
  168. package/lib/molecule/select-multiple/test/fixtures.js.map +1 -1
  169. package/lib/molecule/setup-slide/test/fixtures.js +0 -3
  170. package/lib/molecule/setup-slide/test/fixtures.js.map +1 -1
  171. package/lib/organism/brand-dashboard/test/fixtures.js +14 -2
  172. package/lib/organism/brand-dashboard/test/fixtures.js.map +1 -1
  173. package/lib/organism/brand-form/test/fixtures.js +0 -3
  174. package/lib/organism/brand-form/test/fixtures.js.map +1 -1
  175. package/lib/organism/mooc-header/test/fixtures.js +0 -9
  176. package/lib/organism/mooc-header/test/fixtures.js.map +1 -1
  177. package/lib/organism/rewards-form/index.js +55 -0
  178. package/lib/organism/rewards-form/index.js.map +1 -0
  179. package/lib/organism/rewards-form/style.css +12 -0
  180. package/lib/organism/rewards-form/test/fixtures/default.js +28 -0
  181. package/lib/organism/rewards-form/test/fixtures/default.js.map +1 -0
  182. package/lib/organism/rewards-form/test/fixtures/no-rewards.js +11 -0
  183. package/lib/organism/rewards-form/test/fixtures/no-rewards.js.map +1 -0
  184. package/lib/organism/rewards-form/test/fixtures/one-reward.js +20 -0
  185. package/lib/organism/rewards-form/test/fixtures/one-reward.js.map +1 -0
  186. package/lib/organism/rewards-form/test/fixtures/two-rewards.js +24 -0
  187. package/lib/organism/rewards-form/test/fixtures/two-rewards.js.map +1 -0
  188. package/lib/organism/wizard-contents/index.js +7 -0
  189. package/lib/organism/wizard-contents/index.js.map +1 -1
  190. package/lib/organism/wizard-contents/test/fixtures/certification-rewards.js +54 -0
  191. package/lib/organism/wizard-contents/test/fixtures/certification-rewards.js.map +1 -0
  192. package/lib/template/app-player/popin-correction/index.js +3 -3
  193. package/lib/template/app-player/popin-correction/index.js.map +1 -1
  194. package/lib/template/app-player/popin-correction/style.css +0 -4
  195. package/lib/template/app-player/popin-end/test/fixtures.js +0 -3
  196. package/lib/template/app-player/popin-end/test/fixtures.js.map +1 -1
  197. package/lib/template/back-office/brand-update/test/fixtures/wizard-rewards-certification.js +32 -0
  198. package/lib/template/back-office/brand-update/test/fixtures/wizard-rewards-certification.js.map +1 -0
  199. package/lib/template/back-office/brand-update/test/fixtures.js +2 -35
  200. package/lib/template/back-office/brand-update/test/fixtures.js.map +1 -1
  201. package/lib/template/teams-dashboard/test/fixtures.js +0 -3
  202. package/lib/template/teams-dashboard/test/fixtures.js.map +1 -1
  203. package/package.json +2 -2
  204. package/es/atom/button-link/test/fixtures.js +0 -31
  205. package/es/atom/button-link/test/fixtures.js.map +0 -1
  206. package/es/atom/button-link-icon-only/test/fixtures.js +0 -21
  207. package/es/atom/button-link-icon-only/test/fixtures.js.map +0 -1
  208. package/es/atom/button-menu/test/fixtures.js +0 -15
  209. package/es/atom/button-menu/test/fixtures.js.map +0 -1
  210. package/es/atom/card-image-preview/test/fixtures.js +0 -15
  211. package/es/atom/card-image-preview/test/fixtures.js.map +0 -1
  212. package/es/atom/checkbox-with-title/test/fixtures.js +0 -15
  213. package/es/atom/checkbox-with-title/test/fixtures.js.map +0 -1
  214. package/es/atom/chips/test/fixtures.js +0 -17
  215. package/es/atom/chips/test/fixtures.js.map +0 -1
  216. package/es/atom/content-badge/test/fixtures.js +0 -29
  217. package/es/atom/content-badge/test/fixtures.js.map +0 -1
  218. package/es/atom/empty-search-result/test/fixtures.js +0 -13
  219. package/es/atom/empty-search-result/test/fixtures.js.map +0 -1
  220. package/es/atom/input-search/test/fixtures.js +0 -19
  221. package/es/atom/input-search/test/fixtures.js.map +0 -1
  222. package/es/atom/input-text-with-title/test/fixtures.js +0 -15
  223. package/es/atom/input-text-with-title/test/fixtures.js.map +0 -1
  224. package/es/atom/review-header-step-item/test/fixtures.js +0 -19
  225. package/es/atom/review-header-step-item/test/fixtures.js.map +0 -1
  226. package/es/atom/tag/test/fixtures.js +0 -21
  227. package/es/atom/tag/test/fixtures.js.map +0 -1
  228. package/es/atom/wizard-steps/test/fixtures.js +0 -17
  229. package/es/atom/wizard-steps/test/fixtures.js.map +0 -1
  230. package/es/molecule/banner/test/fixtures.js +0 -23
  231. package/es/molecule/banner/test/fixtures.js.map +0 -1
  232. package/es/molecule/bullet-point-menu-button/test/fixtures.js +0 -15
  233. package/es/molecule/bullet-point-menu-button/test/fixtures.js.map +0 -1
  234. package/es/molecule/cm-popin/test/fixtures.js +0 -17
  235. package/es/molecule/cm-popin/test/fixtures.js.map +0 -1
  236. package/es/molecule/coorp-manager-roles/test/fixtures.js +0 -13
  237. package/es/molecule/coorp-manager-roles/test/fixtures.js.map +0 -1
  238. package/es/molecule/course-section/test/fixtures.js +0 -15
  239. package/es/molecule/course-section/test/fixtures.js.map +0 -1
  240. package/es/molecule/course-sections/test/fixtures.js +0 -17
  241. package/es/molecule/course-sections/test/fixtures.js.map +0 -1
  242. package/es/molecule/dashboard/review-banner/test/fixtures.js +0 -13
  243. package/es/molecule/dashboard/review-banner/test/fixtures.js.map +0 -1
  244. package/es/molecule/drag-and-drop-wrapper/test/fixtures.js +0 -15
  245. package/es/molecule/drag-and-drop-wrapper/test/fixtures.js.map +0 -1
  246. package/es/molecule/draggable/test/fixtures.js +0 -13
  247. package/es/molecule/draggable/test/fixtures.js.map +0 -1
  248. package/es/molecule/draggable-list/test/fixtures.js +0 -15
  249. package/es/molecule/draggable-list/test/fixtures.js.map +0 -1
  250. package/es/molecule/input-text-with-titeled-checkbox/index.js.map +0 -1
  251. package/es/molecule/input-text-with-titeled-checkbox/test/fixtures/checked.js.map +0 -1
  252. package/es/molecule/input-text-with-titeled-checkbox/test/fixtures/unchecked.js.map +0 -1
  253. package/es/molecule/input-text-with-titeled-checkbox/test/fixtures.js +0 -15
  254. package/es/molecule/input-text-with-titeled-checkbox/test/fixtures.js.map +0 -1
  255. package/es/molecule/popin/test/fixtures.js +0 -21
  256. package/es/molecule/popin/test/fixtures.js.map +0 -1
  257. package/es/molecule/quick-access-card/test/fixtures.js +0 -21
  258. package/es/molecule/quick-access-card/test/fixtures.js.map +0 -1
  259. package/es/molecule/quick-access-cards-group/test/fixtures.js +0 -21
  260. package/es/molecule/quick-access-cards-group/test/fixtures.js.map +0 -1
  261. package/es/molecule/review-correction-popin/test/fixtures.js +0 -15
  262. package/es/molecule/review-correction-popin/test/fixtures.js.map +0 -1
  263. package/es/molecule/review-header-steps/test/fixtures.js +0 -23
  264. package/es/molecule/review-header-steps/test/fixtures.js.map +0 -1
  265. package/es/molecule/vertical-tabs/test/fixtures.js +0 -17
  266. package/es/molecule/vertical-tabs/test/fixtures.js.map +0 -1
  267. package/es/molecule/wizard-summary/test/fixtures.js +0 -23
  268. package/es/molecule/wizard-summary/test/fixtures.js.map +0 -1
  269. package/es/organism/accordion/coorp-manager/part/test/fixtures.js +0 -17
  270. package/es/organism/accordion/coorp-manager/part/test/fixtures.js.map +0 -1
  271. package/es/organism/accordion/coorp-manager/test/fixtures.js +0 -13
  272. package/es/organism/accordion/coorp-manager/test/fixtures.js.map +0 -1
  273. package/es/organism/brand-analytics/test/fixtures.js +0 -23
  274. package/es/organism/brand-analytics/test/fixtures.js.map +0 -1
  275. package/es/organism/content-translation/test/fixtures.js +0 -15
  276. package/es/organism/content-translation/test/fixtures.js.map +0 -1
  277. package/es/organism/course-selection/test/fixtures.js +0 -25
  278. package/es/organism/course-selection/test/fixtures.js.map +0 -1
  279. package/es/organism/list-item/test/fixtures.js +0 -19
  280. package/es/organism/list-item/test/fixtures.js.map +0 -1
  281. package/es/organism/list-items/test/fixtures.js +0 -17
  282. package/es/organism/list-items/test/fixtures.js.map +0 -1
  283. package/es/organism/playlist-translation/test/fixtures.js +0 -15
  284. package/es/organism/playlist-translation/test/fixtures.js.map +0 -1
  285. package/es/organism/search-and-chips-results/test/fixtures.js +0 -23
  286. package/es/organism/search-and-chips-results/test/fixtures.js.map +0 -1
  287. package/es/organism/wizard-contents/test/fixtures.js +0 -23
  288. package/es/organism/wizard-contents/test/fixtures.js.map +0 -1
  289. package/lib/atom/button-link/test/fixtures.js +0 -49
  290. package/lib/atom/button-link/test/fixtures.js.map +0 -1
  291. package/lib/atom/button-link-icon-only/test/fixtures.js +0 -34
  292. package/lib/atom/button-link-icon-only/test/fixtures.js.map +0 -1
  293. package/lib/atom/button-menu/test/fixtures.js +0 -25
  294. package/lib/atom/button-menu/test/fixtures.js.map +0 -1
  295. package/lib/atom/card-image-preview/test/fixtures.js +0 -25
  296. package/lib/atom/card-image-preview/test/fixtures.js.map +0 -1
  297. package/lib/atom/checkbox-with-title/test/fixtures.js +0 -25
  298. package/lib/atom/checkbox-with-title/test/fixtures.js.map +0 -1
  299. package/lib/atom/chips/test/fixtures.js +0 -28
  300. package/lib/atom/chips/test/fixtures.js.map +0 -1
  301. package/lib/atom/content-badge/test/fixtures.js +0 -46
  302. package/lib/atom/content-badge/test/fixtures.js.map +0 -1
  303. package/lib/atom/empty-search-result/test/fixtures.js +0 -22
  304. package/lib/atom/empty-search-result/test/fixtures.js.map +0 -1
  305. package/lib/atom/input-search/test/fixtures.js +0 -31
  306. package/lib/atom/input-search/test/fixtures.js.map +0 -1
  307. package/lib/atom/input-text-with-title/test/fixtures.js +0 -25
  308. package/lib/atom/input-text-with-title/test/fixtures.js.map +0 -1
  309. package/lib/atom/review-header-step-item/test/fixtures.js +0 -31
  310. package/lib/atom/review-header-step-item/test/fixtures.js.map +0 -1
  311. package/lib/atom/tag/test/fixtures.js +0 -34
  312. package/lib/atom/tag/test/fixtures.js.map +0 -1
  313. package/lib/atom/wizard-steps/test/fixtures.js +0 -28
  314. package/lib/atom/wizard-steps/test/fixtures.js.map +0 -1
  315. package/lib/molecule/banner/test/fixtures.js +0 -37
  316. package/lib/molecule/banner/test/fixtures.js.map +0 -1
  317. package/lib/molecule/bullet-point-menu-button/test/fixtures.js +0 -25
  318. package/lib/molecule/bullet-point-menu-button/test/fixtures.js.map +0 -1
  319. package/lib/molecule/cm-popin/test/fixtures.js +0 -28
  320. package/lib/molecule/cm-popin/test/fixtures.js.map +0 -1
  321. package/lib/molecule/coorp-manager-roles/test/fixtures.js +0 -22
  322. package/lib/molecule/coorp-manager-roles/test/fixtures.js.map +0 -1
  323. package/lib/molecule/course-section/test/fixtures.js +0 -25
  324. package/lib/molecule/course-section/test/fixtures.js.map +0 -1
  325. package/lib/molecule/course-sections/test/fixtures.js +0 -28
  326. package/lib/molecule/course-sections/test/fixtures.js.map +0 -1
  327. package/lib/molecule/dashboard/review-banner/test/fixtures.js +0 -22
  328. package/lib/molecule/dashboard/review-banner/test/fixtures.js.map +0 -1
  329. package/lib/molecule/drag-and-drop-wrapper/test/fixtures.js +0 -25
  330. package/lib/molecule/drag-and-drop-wrapper/test/fixtures.js.map +0 -1
  331. package/lib/molecule/draggable/test/fixtures.js +0 -22
  332. package/lib/molecule/draggable/test/fixtures.js.map +0 -1
  333. package/lib/molecule/draggable-list/test/fixtures.js +0 -25
  334. package/lib/molecule/draggable-list/test/fixtures.js.map +0 -1
  335. package/lib/molecule/input-text-with-titeled-checkbox/index.js.map +0 -1
  336. package/lib/molecule/input-text-with-titeled-checkbox/test/fixtures/checked.js.map +0 -1
  337. package/lib/molecule/input-text-with-titeled-checkbox/test/fixtures/unchecked.js.map +0 -1
  338. package/lib/molecule/input-text-with-titeled-checkbox/test/fixtures.js +0 -25
  339. package/lib/molecule/input-text-with-titeled-checkbox/test/fixtures.js.map +0 -1
  340. package/lib/molecule/popin/test/fixtures.js +0 -34
  341. package/lib/molecule/popin/test/fixtures.js.map +0 -1
  342. package/lib/molecule/quick-access-card/test/fixtures.js +0 -34
  343. package/lib/molecule/quick-access-card/test/fixtures.js.map +0 -1
  344. package/lib/molecule/quick-access-cards-group/test/fixtures.js +0 -34
  345. package/lib/molecule/quick-access-cards-group/test/fixtures.js.map +0 -1
  346. package/lib/molecule/review-correction-popin/test/fixtures.js +0 -25
  347. package/lib/molecule/review-correction-popin/test/fixtures.js.map +0 -1
  348. package/lib/molecule/review-header-steps/test/fixtures.js +0 -37
  349. package/lib/molecule/review-header-steps/test/fixtures.js.map +0 -1
  350. package/lib/molecule/vertical-tabs/test/fixtures.js +0 -28
  351. package/lib/molecule/vertical-tabs/test/fixtures.js.map +0 -1
  352. package/lib/molecule/wizard-summary/test/fixtures.js +0 -37
  353. package/lib/molecule/wizard-summary/test/fixtures.js.map +0 -1
  354. package/lib/organism/accordion/coorp-manager/part/test/fixtures.js +0 -28
  355. package/lib/organism/accordion/coorp-manager/part/test/fixtures.js.map +0 -1
  356. package/lib/organism/accordion/coorp-manager/test/fixtures.js +0 -22
  357. package/lib/organism/accordion/coorp-manager/test/fixtures.js.map +0 -1
  358. package/lib/organism/brand-analytics/test/fixtures.js +0 -37
  359. package/lib/organism/brand-analytics/test/fixtures.js.map +0 -1
  360. package/lib/organism/content-translation/test/fixtures.js +0 -25
  361. package/lib/organism/content-translation/test/fixtures.js.map +0 -1
  362. package/lib/organism/course-selection/test/fixtures.js +0 -40
  363. package/lib/organism/course-selection/test/fixtures.js.map +0 -1
  364. package/lib/organism/list-item/test/fixtures.js +0 -31
  365. package/lib/organism/list-item/test/fixtures.js.map +0 -1
  366. package/lib/organism/list-items/test/fixtures.js +0 -28
  367. package/lib/organism/list-items/test/fixtures.js.map +0 -1
  368. package/lib/organism/playlist-translation/test/fixtures.js +0 -25
  369. package/lib/organism/playlist-translation/test/fixtures.js.map +0 -1
  370. package/lib/organism/search-and-chips-results/test/fixtures.js +0 -37
  371. package/lib/organism/search-and-chips-results/test/fixtures.js.map +0 -1
  372. package/lib/organism/wizard-contents/test/fixtures.js +0 -37
  373. package/lib/organism/wizard-contents/test/fixtures.js.map +0 -1
@@ -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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AAgB,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={'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"}
1
+ {"version":3,"sources":["../../../src/organism/wizard-contents/index.js"],"names":["React","getOr","PropTypes","ButtonLink","ButtonLinkIconOnly","WizardSteps","WizardSummary","BrandForm","ContentTranslate","OrganismSearchAndChipsResults","CourseSelection","CourseSections","RewardsForm","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,OA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 '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 RewardsForm from '../rewards-form';\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 case 'rewards':\n return <RewardsForm {...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 PropTypes.shape({\n ...RewardsForm.propTypes,\n type: PropTypes.oneOf(['rewards'])\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"}
@@ -0,0 +1,45 @@
1
+ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
+
3
+ /* eslint-disable no-console */
4
+ import wizardSummary from '../../../../molecule/wizard-summary/test/fixtures/three-sections';
5
+ import rewardsForm from '../../../rewards-form/test/fixtures/default';
6
+ export default {
7
+ props: {
8
+ isLoading: false,
9
+ wizardHeader: {
10
+ title: 'Create a new certification',
11
+ onClick: () => console.log('Close')
12
+ },
13
+ steps: [{
14
+ title: 'General Informations',
15
+ done: true
16
+ }, {
17
+ title: 'Translations',
18
+ done: true
19
+ }, {
20
+ title: 'Assign populations',
21
+ done: true
22
+ }, {
23
+ title: 'Courses settings',
24
+ done: true
25
+ }, {
26
+ title: 'Rewards',
27
+ done: false,
28
+ current: true
29
+ }],
30
+ summary: wizardSummary.props,
31
+ content: _extends(_extends({}, rewardsForm.props), {}, {
32
+ type: 'rewards'
33
+ }),
34
+ previousStep: {
35
+ label: 'Previous Step',
36
+ onClick: () => console.log('Previous Step')
37
+ },
38
+ nextStep: {
39
+ type: 'publish',
40
+ label: 'Publish',
41
+ onClick: () => console.log('Next Step')
42
+ }
43
+ }
44
+ };
45
+ //# sourceMappingURL=certification-rewards.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/organism/wizard-contents/test/fixtures/certification-rewards.js"],"names":["wizardSummary","rewardsForm","props","isLoading","wizardHeader","title","onClick","console","log","steps","done","current","summary","content","type","previousStep","label","nextStep"],"mappings":";;AAAA;AACA,OAAOA,aAAP,MAA0B,kEAA1B;AACA,OAAOC,WAAP,MAAwB,6CAAxB;AAEA,eAAe;AACbC,EAAAA,KAAK,EAAE;AACLC,IAAAA,SAAS,EAAE,KADN;AAELC,IAAAA,YAAY,EAAE;AACZC,MAAAA,KAAK,EAAE,4BADK;AAEZC,MAAAA,OAAO,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,OAAZ;AAFH,KAFT;AAMLC,IAAAA,KAAK,EAAE,CACL;AACEJ,MAAAA,KAAK,EAAE,sBADT;AAEEK,MAAAA,IAAI,EAAE;AAFR,KADK,EAKL;AACEL,MAAAA,KAAK,EAAE,cADT;AAEEK,MAAAA,IAAI,EAAE;AAFR,KALK,EASL;AACEL,MAAAA,KAAK,EAAE,oBADT;AAEEK,MAAAA,IAAI,EAAE;AAFR,KATK,EAaL;AACEL,MAAAA,KAAK,EAAE,kBADT;AAEEK,MAAAA,IAAI,EAAE;AAFR,KAbK,EAiBL;AACEL,MAAAA,KAAK,EAAE,SADT;AAEEK,MAAAA,IAAI,EAAE,KAFR;AAGEC,MAAAA,OAAO,EAAE;AAHX,KAjBK,CANF;AA6BLC,IAAAA,OAAO,EAAEZ,aAAa,CAACE,KA7BlB;AA8BLW,IAAAA,OAAO,wBACFZ,WAAW,CAACC,KADV;AAELY,MAAAA,IAAI,EAAE;AAFD,MA9BF;AAkCLC,IAAAA,YAAY,EAAE;AACZC,MAAAA,KAAK,EAAE,eADK;AAEZV,MAAAA,OAAO,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,eAAZ;AAFH,KAlCT;AAsCLS,IAAAA,QAAQ,EAAE;AACRH,MAAAA,IAAI,EAAE,SADE;AAERE,MAAAA,KAAK,EAAE,SAFC;AAGRV,MAAAA,OAAO,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,WAAZ;AAHP;AAtCL;AADM,CAAf","sourcesContent":["/* eslint-disable no-console */\nimport wizardSummary from '../../../../molecule/wizard-summary/test/fixtures/three-sections';\nimport rewardsForm from '../../../rewards-form/test/fixtures/default';\n\nexport default {\n props: {\n isLoading: false,\n wizardHeader: {\n title: 'Create a new certification',\n onClick: () => console.log('Close')\n },\n steps: [\n {\n title: 'General Informations',\n done: true\n },\n {\n title: 'Translations',\n done: true\n },\n {\n title: 'Assign populations',\n done: true\n },\n {\n title: 'Courses settings',\n done: true\n },\n {\n title: 'Rewards',\n done: false,\n current: true\n }\n ],\n summary: wizardSummary.props,\n content: {\n ...rewardsForm.props,\n type: 'rewards'\n },\n previousStep: {\n label: 'Previous Step',\n onClick: () => console.log('Previous Step')\n },\n nextStep: {\n type: 'publish',\n label: 'Publish',\n onClick: () => console.log('Next Step')\n }\n }\n};\n"],"file":"certification-rewards.js"}
@@ -236,9 +236,9 @@ class PopinCorrection extends Component {
236
236
  text: klf.value
237
237
  }) : null, tips.value ? /*#__PURE__*/React.createElement(SimpleText, {
238
238
  text: tips.value
239
- }) : null)), quitCta, /*#__PURE__*/React.createElement(AssistanceLink, assistanceLink)), /*#__PURE__*/React.createElement(Loader, {
240
- className: isLoading ? style.activeLoader : style.inactiveLoader
241
- })));
239
+ }) : null)), quitCta, /*#__PURE__*/React.createElement(AssistanceLink, assistanceLink)), isLoading ? /*#__PURE__*/React.createElement(Loader, {
240
+ className: style.activeLoader
241
+ }) : null));
242
242
  }
243
243
 
244
244
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/template/app-player/popin-correction/index.js"],"names":["React","Component","PropTypes","NovaCompositionCoorpacademyCheck","CheckIcon","NovaLineInterfaceFeedbackInterfaceAlertCircle","AlertIcon","classnames","Loader","Link","Provider","ResourceBrowser","Accordion","innerHTML","Header","style","extractTabs","items","map","type","item","iconType","title","isOpen","open","Resources","resources","overlay","browserWrapper","value","browser","propTypes","shape","SimpleText","text","simpleTextWrapper","simpleText","__html","string","AssistanceLink","props","context","onClick","skin","white","wrapperAssistance","alertIcon","titleLink","contextTypes","childContextTypes","func","Question","header","answer","answerPrefix","question","questionHeader","answerWrapper","checkIcon","PopinCorrection","constructor","state","initWrapper","bind","componentDidMount","deferOpen","clearTimeout","deferedOpen","onOpen","setState","wrapper","render","extraLifeGranted","gameOver","klf","tips","quit","assistanceLink","primary","tabs","isLoading","failed","className","finalBackground","initialBackground","cta","linkProps","quitCta","color","hideQuitCta","scrollWrapper","loadingWrapper","loadingContent","content","activeLoader","inactiveLoader"],"mappings":";;;;;;;;;;;;;;AAAA,OAAOA,KAAP,IAAeC,SAAf,QAA+B,OAA/B;AACA,OAAOC,SAAP,MAAsB,YAAtB;AAEA,SACEC,gCAAgC,IAAIC,SADtC,EAEEC,6CAA6C,IAAIC,SAFnD,QAGO,0BAHP;AAIA,OAAOC,UAAP,MAAuB,YAAvB;AACA,OAAOC,MAAP,MAAmB,sBAAnB;AACA,OAAOC,IAAP,MAAiB,oBAAjB;AACA,OAAOC,QAAP,MAAqB,wBAArB;AACA,OAAOC,eAAP,MAA4B,oCAA5B;AACA,OAAOC,SAAP,MAAsB,uCAAtB;AACA,SAAQC,SAAR,QAAwB,+BAAxB;AACA,OAAOC,MAAP,MAAmB,iBAAnB;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,WAAW,GAAGC,KAAK,IACvB,MAAKA,KAAL,EAAYC,GAAZ,CAAgBC,IAAI,IAAI;AACtB,QAAMC,IAAI,GAAGH,KAAK,CAACE,IAAD,CAAlB;AACA,SAAO;AAACE,IAAAA,QAAQ,EAAEF,IAAX;AAAiBG,IAAAA,KAAK,EAAEF,IAAI,CAACE,KAA7B;AAAoCC,IAAAA,MAAM,EAAEH,IAAI,CAACI;AAAjD,GAAP;AACD,CAHD,CADF;;AAMA,MAAMC,SAAS,GAAG,CAAC;AAACC,EAAAA,SAAD;AAAYC,EAAAA;AAAZ,CAAD,kBAChB;AAAK,EAAA,SAAS,EAAEZ,KAAK,CAACa;AAAtB,gBACE,oBAAC,eAAD;AAAiB,EAAA,SAAS,EAAEF,SAAS,CAACG,KAAtC;AAA6C,EAAA,OAAO,EAAEF,OAAtD;A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Q,EAAE3D,MAAM,CAACiB,SAAP,CAAiB0C,QANV;AAOjBlB,EAAAA,QAAQ,EAAErD,SAAS,CAAC8B,KAAV,CAAgBmB,QAAQ,CAACpB,SAAzB,CAPO;AAQjB2C,EAAAA,GAAG,EAAExE,SAAS,CAAC8B,KAAV,CAAgBC,UAAU,CAACF,SAA3B,CARY;AASjB4C,EAAAA,IAAI,EAAEzE,SAAS,CAAC8B,KAAV,CAAgBC,UAAU,CAACF,SAA3B,CATW;AAUjBW,EAAAA,OAAO,EAAE9B,SAAS,CAACmB,SAAV,CAAoBW,OAVZ;AAWjBkC,EAAAA,IAAI,EAAE1E,SAAS,CAAC8B,KAAV,CAAgB;AACpBqD,IAAAA,GAAG,EAAEnF,SAAS,CAAC8B,KAAV,uBACAvB,IAAI,CAACsB,SADL;AAEHT,MAAAA,KAAK,EAAEpB,SAAS,CAACoC;AAFd;AADe,GAAhB,CAXW;AAiBjB8B,EAAAA,MAAM,EAAElE,SAAS,CAACgD;AAjBD,C;AAuHrB,eAAeS,eAAf","sourcesContent":["import React, {Component} from 'react';\nimport PropTypes from 'prop-types';\nimport {defer, isNil, isEmpty, get, getOr, keys, omit} from 'lodash/fp';\nimport {\n NovaCompositionCoorpacademyCheck as CheckIcon,\n NovaLineInterfaceFeedbackInterfaceAlertCircle as AlertIcon\n} from '@coorpacademy/nova-icons';\nimport classnames from 'classnames';\nimport Loader from '../../../atom/loader';\nimport Link from '../../../atom/link';\nimport Provider from '../../../atom/provider';\nimport ResourceBrowser from '../../../organism/resource-browser';\nimport Accordion from '../../../organism/accordion/container';\nimport {innerHTML} from '../../../atom/label/style.css';\nimport Header from '../popin-header';\nimport style from './style.css';\n\nconst extractTabs = items =>\n keys(items).map(type => {\n const item = items[type];\n return {iconType: type, title: item.title, isOpen: item.open};\n });\n\nconst Resources = ({resources, overlay}) => (\n <div className={style.browserWrapper}>\n <ResourceBrowser resources={resources.value} overlay={overlay} className={style.browser} />\n </div>\n);\n\nResources.propTypes = {\n resources: PropTypes.shape({\n value: ResourceBrowser.propTypes.resources\n }),\n overlay: ResourceBrowser.propTypes.overlay\n};\n\nconst SimpleText = ({text}) => (\n <div data-name=\"simpleText\" className={style.simpleTextWrapper}>\n <p\n className={classnames(style.simpleText, innerHTML)}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: text}}\n />\n </div>\n);\n\nSimpleText.propTypes = {\n text: PropTypes.string\n};\n\nconst AssistanceLink = (props, context) => {\n if (isEmpty(props)) return null;\n const {title, onClick} = props;\n const {skin} = context;\n const white = get('common.white', skin);\n\n return (\n <div className={style.wrapperAssistance} onClick={onClick}>\n <AlertIcon className={style.alertIcon} color={white} />\n <span className={style.titleLink}> {title} </span>\n </div>\n );\n};\n\nAssistanceLink.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nAssistanceLink.propTypes = {\n title: PropTypes.string,\n onClick: PropTypes.func\n};\n\nconst Question = ({header, answer, answerPrefix}) => (\n <div className={style.question}>\n <p\n className={classnames(style.questionHeader, innerHTML)}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: header}}\n />\n <div className={style.answerWrapper}>\n <CheckIcon className={style.checkIcon} color=\"inherit\" />\n {answerPrefix ? <span className={style.answerPrefix}>{answerPrefix}</span> : null}\n <span\n className={classnames(style.answer, innerHTML)}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: answer}}\n />\n </div>\n </div>\n);\n\nQuestion.propTypes = {\n header: PropTypes.string,\n answerPrefix: PropTypes.string,\n answer: PropTypes.string\n};\n\nclass PopinCorrection extends Component {\n static propTypes = {\n resources: Resources.propTypes.resources,\n overlay: ResourceBrowser.propTypes.overlay,\n assistanceLink: PropTypes.shape(AssistanceLink.propTypes),\n header: PropTypes.shape(omit(['animated'], Header.propTypes)),\n extraLifeGranted: Header.propTypes.extraLifeGranted,\n gameOver: Header.propTypes.gameOver,\n question: PropTypes.shape(Question.propTypes),\n klf: PropTypes.shape(SimpleText.propTypes),\n tips: PropTypes.shape(SimpleText.propTypes),\n onClick: Accordion.propTypes.onClick,\n quit: PropTypes.shape({\n cta: PropTypes.shape({\n ...Link.propTypes,\n title: PropTypes.string\n })\n }),\n onOpen: PropTypes.func\n };\n\n static contextTypes = {\n skin: Provider.childContextTypes.skin\n };\n\n constructor(props) {\n super(props);\n this.state = {open: false};\n this.initWrapper = this.initWrapper.bind(this);\n }\n\n componentDidMount() {\n this.deferOpen();\n }\n\n deferOpen() {\n clearTimeout(this.deferedOpen);\n\n this.deferedOpen = defer(() => {\n const {onOpen} = this.props;\n this.setState({open: true});\n onOpen && onOpen();\n });\n }\n\n initWrapper(wrapper) {\n this.wrapper = wrapper;\n }\n\n render() {\n const {\n header = {},\n extraLifeGranted,\n gameOver,\n question,\n overlay,\n resources,\n klf,\n tips,\n onClick,\n quit = {},\n assistanceLink = {}\n } = this.props;\n\n const {open} = this.state;\n\n const {skin} = this.context;\n const primary = getOr('#f0f', 'common.primary', skin);\n\n const tabs = extractTabs({resources, klf, tips});\n const isLoading = isNil(header.failed);\n const className = open ? style.finalBackground : style.initialBackground;\n const {title, ...linkProps} = quit.cta || {};\n\n const quitCta =\n title || extraLifeGranted ? (\n <Link\n {...linkProps}\n style={{\n color: primary\n }}\n className={extraLifeGranted ? style.hideQuitCta : style.quitCta}\n data-name=\"nextLink\"\n data-popin=\"popinCorrection\"\n data-next=\"quit-with-extra-life\"\n >\n {title}\n </Link>\n ) : null;\n\n return (\n <div ref={this.initWrapper} className={className} data-name=\"popinCorrection\">\n <div className={style.scrollWrapper}>\n <div className={isLoading ? style.loadingWrapper : style.wrapper}>\n <div className={isLoading ? style.loadingContent : style.content}>\n <Header\n {...header}\n gameOver={gameOver}\n extraLifeGranted={extraLifeGranted}\n animated\n />\n <Question {...question} />\n <Accordion tabProps={tabs} onClick={onClick} oneTabOnly>\n {isEmpty(getOr([], 'value', resources)) ? null : (\n <Resources resources={resources} overlay={overlay} />\n )}\n {klf.value ? <SimpleText text={klf.value} /> : null}\n {tips.value ? <SimpleText text={tips.value} /> : null}\n </Accordion>\n </div>\n {quitCta}\n <AssistanceLink {...assistanceLink} />\n </div>\n <Loader className={isLoading ? style.activeLoader : style.inactiveLoader} />\n </div>\n </div>\n );\n }\n}\n\nexport default PopinCorrection;\n"],"file":"index.js"}
1
+ {"version":3,"sources":["../../../../src/template/app-player/popin-correction/index.js"],"names":["React","Component","PropTypes","NovaCompositionCoorpacademyCheck","CheckIcon","NovaLineInterfaceFeedbackInterfaceAlertCircle","AlertIcon","classnames","Loader","Link","Provider","ResourceBrowser","Accordion","innerHTML","Header","style","extractTabs","items","map","type","item","iconType","title","isOpen","open","Resources","resources","overlay","browserWrapper","value","browser","propTypes","shape","SimpleText","text","simpleTextWrapper","simpleText","__html","string","AssistanceLink","props","context","onClick","skin","white","wrapperAssistance","alertIcon","titleLink","contextTypes","childContextTypes","func","Question","header","answer","answerPrefix","question","questionHeader","answerWrapper","checkIcon","PopinCorrection","constructor","state","initWrapper","bind","componentDidMount","deferOpen","clearTimeout","deferedOpen","onOpen","setState","wrapper","render","extraLifeGranted","gameOver","klf","tips","quit","assistanceLink","primary","tabs","isLoading","failed","className","finalBackground","initialBackground","cta","linkProps","quitCta","color","hideQuitCta","scrollWrapper","loadingWrapper","loadingContent","content","activeLoader"],"mappings":";;;;;;;;;;;;;;AAAA,OAAOA,KAAP,IAAeC,SAAf,QAA+B,OAA/B;AACA,OAAOC,SAAP,MAAsB,YAAtB;AAEA,SACEC,gCAAgC,IAAIC,SADtC,EAEEC,6CAA6C,IAAIC,SAFnD,QAGO,0BAHP;AAIA,OAAOC,UAAP,MAAuB,YAAvB;AACA,OAAOC,MAAP,MAAmB,sBAAnB;AACA,OAAOC,IAAP,MAAiB,oBAAjB;AACA,OAAOC,QAAP,MAAqB,wBAArB;AACA,OAAOC,eAAP,MAA4B,oCAA5B;AACA,OAAOC,SAAP,MAAsB,uCAAtB;AACA,SAAQC,SAAR,QAAwB,+BAAxB;AACA,OAAOC,MAAP,MA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react';\nimport PropTypes from 'prop-types';\nimport {defer, isNil, isEmpty, get, getOr, keys, omit} from 'lodash/fp';\nimport {\n NovaCompositionCoorpacademyCheck as CheckIcon,\n NovaLineInterfaceFeedbackInterfaceAlertCircle as AlertIcon\n} from '@coorpacademy/nova-icons';\nimport classnames from 'classnames';\nimport Loader from '../../../atom/loader';\nimport Link from '../../../atom/link';\nimport Provider from '../../../atom/provider';\nimport ResourceBrowser from '../../../organism/resource-browser';\nimport Accordion from '../../../organism/accordion/container';\nimport {innerHTML} from '../../../atom/label/style.css';\nimport Header from '../popin-header';\nimport style from './style.css';\n\nconst extractTabs = items =>\n keys(items).map(type => {\n const item = items[type];\n return {iconType: type, title: item.title, isOpen: item.open};\n });\n\nconst Resources = ({resources, overlay}) => (\n <div className={style.browserWrapper}>\n <ResourceBrowser resources={resources.value} overlay={overlay} className={style.browser} />\n </div>\n);\n\nResources.propTypes = {\n resources: PropTypes.shape({\n value: ResourceBrowser.propTypes.resources\n }),\n overlay: ResourceBrowser.propTypes.overlay\n};\n\nconst SimpleText = ({text}) => (\n <div data-name=\"simpleText\" className={style.simpleTextWrapper}>\n <p\n className={classnames(style.simpleText, innerHTML)}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: text}}\n />\n </div>\n);\n\nSimpleText.propTypes = {\n text: PropTypes.string\n};\n\nconst AssistanceLink = (props, context) => {\n if (isEmpty(props)) return null;\n const {title, onClick} = props;\n const {skin} = context;\n const white = get('common.white', skin);\n\n return (\n <div className={style.wrapperAssistance} onClick={onClick}>\n <AlertIcon className={style.alertIcon} color={white} />\n <span className={style.titleLink}> {title} </span>\n </div>\n );\n};\n\nAssistanceLink.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nAssistanceLink.propTypes = {\n title: PropTypes.string,\n onClick: PropTypes.func\n};\n\nconst Question = ({header, answer, answerPrefix}) => (\n <div className={style.question}>\n <p\n className={classnames(style.questionHeader, innerHTML)}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: header}}\n />\n <div className={style.answerWrapper}>\n <CheckIcon className={style.checkIcon} color=\"inherit\" />\n {answerPrefix ? <span className={style.answerPrefix}>{answerPrefix}</span> : null}\n <span\n className={classnames(style.answer, innerHTML)}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: answer}}\n />\n </div>\n </div>\n);\n\nQuestion.propTypes = {\n header: PropTypes.string,\n answerPrefix: PropTypes.string,\n answer: PropTypes.string\n};\n\nclass PopinCorrection extends Component {\n static propTypes = {\n resources: Resources.propTypes.resources,\n overlay: ResourceBrowser.propTypes.overlay,\n assistanceLink: PropTypes.shape(AssistanceLink.propTypes),\n header: PropTypes.shape(omit(['animated'], Header.propTypes)),\n extraLifeGranted: Header.propTypes.extraLifeGranted,\n gameOver: Header.propTypes.gameOver,\n question: PropTypes.shape(Question.propTypes),\n klf: PropTypes.shape(SimpleText.propTypes),\n tips: PropTypes.shape(SimpleText.propTypes),\n onClick: Accordion.propTypes.onClick,\n quit: PropTypes.shape({\n cta: PropTypes.shape({\n ...Link.propTypes,\n title: PropTypes.string\n })\n }),\n onOpen: PropTypes.func\n };\n\n static contextTypes = {\n skin: Provider.childContextTypes.skin\n };\n\n constructor(props) {\n super(props);\n this.state = {open: false};\n this.initWrapper = this.initWrapper.bind(this);\n }\n\n componentDidMount() {\n this.deferOpen();\n }\n\n deferOpen() {\n clearTimeout(this.deferedOpen);\n\n this.deferedOpen = defer(() => {\n const {onOpen} = this.props;\n this.setState({open: true});\n onOpen && onOpen();\n });\n }\n\n initWrapper(wrapper) {\n this.wrapper = wrapper;\n }\n\n render() {\n const {\n header = {},\n extraLifeGranted,\n gameOver,\n question,\n overlay,\n resources,\n klf,\n tips,\n onClick,\n quit = {},\n assistanceLink = {}\n } = this.props;\n\n const {open} = this.state;\n\n const {skin} = this.context;\n const primary = getOr('#f0f', 'common.primary', skin);\n\n const tabs = extractTabs({resources, klf, tips});\n const isLoading = isNil(header.failed);\n const className = open ? style.finalBackground : style.initialBackground;\n const {title, ...linkProps} = quit.cta || {};\n\n const quitCta =\n title || extraLifeGranted ? (\n <Link\n {...linkProps}\n style={{\n color: primary\n }}\n className={extraLifeGranted ? style.hideQuitCta : style.quitCta}\n data-name=\"nextLink\"\n data-popin=\"popinCorrection\"\n data-next=\"quit-with-extra-life\"\n >\n {title}\n </Link>\n ) : null;\n\n return (\n <div ref={this.initWrapper} className={className} data-name=\"popinCorrection\">\n <div className={style.scrollWrapper}>\n <div className={isLoading ? style.loadingWrapper : style.wrapper}>\n <div className={isLoading ? style.loadingContent : style.content}>\n <Header\n {...header}\n gameOver={gameOver}\n extraLifeGranted={extraLifeGranted}\n animated\n />\n <Question {...question} />\n <Accordion tabProps={tabs} onClick={onClick} oneTabOnly>\n {isEmpty(getOr([], 'value', resources)) ? null : (\n <Resources resources={resources} overlay={overlay} />\n )}\n {klf.value ? <SimpleText text={klf.value} /> : null}\n {tips.value ? <SimpleText text={tips.value} /> : null}\n </Accordion>\n </div>\n {quitCta}\n <AssistanceLink {...assistanceLink} />\n </div>\n {isLoading ? <Loader className={style.activeLoader} /> : null}\n </div>\n </div>\n );\n }\n}\n\nexport default PopinCorrection;\n"],"file":"index.js"}
@@ -104,10 +104,6 @@
104
104
  transition: opacity 0.3s;
105
105
  }
106
106
 
107
- .inactiveLoader {
108
- opacity: 0;
109
- }
110
-
111
107
  /* Question -------------- */
112
108
 
113
109
  .question {
@@ -21,7 +21,6 @@ import fixtureSimpleAction from './fixtures/simple-action';
21
21
  import fixtureSubscribe from './fixtures/subscribe';
22
22
  import fixtureWithLoadingRecommendations from './fixtures/with-loading-recommendations';
23
23
  import fixtureWithRecommendations from './fixtures/with-recommendations';
24
- import fixtureWithoutRecommendation from './fixtures/without-recommendation';
25
24
  test('TemplateAppPlayer › TemplateAppPlayerPopinEnd > should have valid propTypes', t => {
26
25
  t.pass();
27
26
  forEach(TemplateAppPlayerPopinEnd.propTypes, (value, key) => {
@@ -47,5 +46,4 @@ test('TemplateAppPlayer › TemplateAppPlayerPopinEnd › SimpleAction › shoul
47
46
  test('TemplateAppPlayer › TemplateAppPlayerPopinEnd › Subscribe › should be rendered', renderComponentMacro, TemplateAppPlayerPopinEnd, fixtureSubscribe);
48
47
  test('TemplateAppPlayer › TemplateAppPlayerPopinEnd › WithLoadingRecommendations › should be rendered', renderComponentMacro, TemplateAppPlayerPopinEnd, fixtureWithLoadingRecommendations);
49
48
  test('TemplateAppPlayer › TemplateAppPlayerPopinEnd › WithRecommendations › should be rendered', renderComponentMacro, TemplateAppPlayerPopinEnd, fixtureWithRecommendations);
50
- test('TemplateAppPlayer › TemplateAppPlayerPopinEnd › WithoutRecommendation › should be rendered', renderComponentMacro, TemplateAppPlayerPopinEnd, fixtureWithoutRecommendation);
51
49
  //# sourceMappingURL=fixtures.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/template/app-player/popin-end/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","TemplateAppPlayerPopinEnd","fixtureAdaptive","fixtureArabicCorrect","fixtureArabicNextLevelAdaptiveImg","fixtureArabicWithRecommendations","fixtureCommentIsLoading","fixtureCommentSent","fixtureComment","fixtureCorrect","fixtureDefault","fixtureFail","fixtureInfiniteLives","fixtureLoading","fixtureNegativeRank","fixtureNextCourse","fixtureNextLevelAdaptiveImg","fixtureSimpleAction","fixtureSubscribe","fixtureWithLoadingRecommendations","fixtureWithRecommendations","fixtureWithoutRecommendation","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,yBAAP,MAAsC,IAAtC;AACA,OAAOC,eAAP,MAA4B,qBAA5B;AACA,OAAOC,oBAAP,MAAiC,2BAAjC;AACA,OAAOC,iCAAP,MAA8C,2CAA9C;AACA,OAAOC,gCAAP,MAA6C,wCAA7C;AACA,OAAOC,uBAAP,MAAoC,+BAApC;AAC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hJ,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../../test/helpers/render-component';\nimport TemplateAppPlayerPopinEnd from '..';\nimport fixtureAdaptive from './fixtures/adaptive';\nimport fixtureArabicCorrect from './fixtures/arabic-correct';\nimport fixtureArabicNextLevelAdaptiveImg from './fixtures/arabic-next-level-adaptive-img';\nimport fixtureArabicWithRecommendations from './fixtures/arabic-with-recommendations';\nimport fixtureCommentIsLoading from './fixtures/comment-is-loading';\nimport fixtureCommentSent from './fixtures/comment-sent';\nimport fixtureComment from './fixtures/comment';\nimport fixtureCorrect from './fixtures/correct';\nimport fixtureDefault from './fixtures/default';\nimport fixtureFail from './fixtures/fail';\nimport fixtureInfiniteLives from './fixtures/infinite-lives';\nimport fixtureLoading from './fixtures/loading';\nimport fixtureNegativeRank from './fixtures/negative-rank';\nimport fixtureNextCourse from './fixtures/next-course';\nimport fixtureNextLevelAdaptiveImg from './fixtures/next-level-adaptive-img';\nimport fixtureSimpleAction from './fixtures/simple-action';\nimport fixtureSubscribe from './fixtures/subscribe';\nimport fixtureWithLoadingRecommendations from './fixtures/with-loading-recommendations';\nimport fixtureWithRecommendations from './fixtures/with-recommendations';\nimport fixtureWithoutRecommendation from './fixtures/without-recommendation';\n\ntest('TemplateAppPlayer › TemplateAppPlayerPopinEnd > should have valid propTypes', t => {\n t.pass();\n forEach(TemplateAppPlayerPopinEnd.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"TemplateAppPlayer.TemplateAppPlayerPopinEnd.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('TemplateAppPlayer › TemplateAppPlayerPopinEnd › Adaptive › should be rendered', renderComponentMacro, TemplateAppPlayerPopinEnd, fixtureAdaptive);\ntest('TemplateAppPlayer › TemplateAppPlayerPopinEnd › ArabicCorrect › should be rendered', renderComponentMacro, TemplateAppPlayerPopinEnd, fixtureArabicCorrect);\ntest('TemplateAppPlayer › TemplateAppPlayerPopinEnd › ArabicNextLevelAdaptiveImg › should be rendered', renderComponentMacro, TemplateAppPlayerPopinEnd, fixtureArabicNextLevelAdaptiveImg);\ntest('TemplateAppPlayer › TemplateAppPlayerPopinEnd › ArabicWithRecommendations › should be rendered', renderComponentMacro, TemplateAppPlayerPopinEnd, fixtureArabicWithRecommendations);\ntest('TemplateAppPlayer › TemplateAppPlayerPopinEnd › CommentIsLoading › should be rendered', renderComponentMacro, TemplateAppPlayerPopinEnd, fixtureCommentIsLoading);\ntest('TemplateAppPlayer › TemplateAppPlayerPopinEnd › CommentSent › should be rendered', renderComponentMacro, TemplateAppPlayerPopinEnd, fixtureCommentSent);\ntest('TemplateAppPlayer › TemplateAppPlayerPopinEnd › Comment › should be rendered', renderComponentMacro, TemplateAppPlayerPopinEnd, fixtureComment);\ntest('TemplateAppPlayer › TemplateAppPlayerPopinEnd › Correct › should be rendered', renderComponentMacro, TemplateAppPlayerPopinEnd, fixtureCorrect);\ntest('TemplateAppPlayer › TemplateAppPlayerPopinEnd › Default › should be rendered', renderComponentMacro, TemplateAppPlayerPopinEnd, fixtureDefault);\ntest('TemplateAppPlayer › TemplateAppPlayerPopinEnd › Fail › should be rendered', renderComponentMacro, TemplateAppPlayerPopinEnd, fixtureFail);\ntest('TemplateAppPlayer › TemplateAppPlayerPopinEnd › InfiniteLives › should be rendered', renderComponentMacro, TemplateAppPlayerPopinEnd, fixtureInfiniteLives);\ntest('TemplateAppPlayer › TemplateAppPlayerPopinEnd › Loading › should be rendered', renderComponentMacro, TemplateAppPlayerPopinEnd, fixtureLoading);\ntest('TemplateAppPlayer › TemplateAppPlayerPopinEnd › NegativeRank › should be rendered', renderComponentMacro, TemplateAppPlayerPopinEnd, fixtureNegativeRank);\ntest('TemplateAppPlayer › TemplateAppPlayerPopinEnd › NextCourse › should be rendered', renderComponentMacro, TemplateAppPlayerPopinEnd, fixtureNextCourse);\ntest('TemplateAppPlayer › TemplateAppPlayerPopinEnd › NextLevelAdaptiveImg › should be rendered', renderComponentMacro, TemplateAppPlayerPopinEnd, fixtureNextLevelAdaptiveImg);\ntest('TemplateAppPlayer › TemplateAppPlayerPopinEnd › SimpleAction › should be rendered', renderComponentMacro, TemplateAppPlayerPopinEnd, fixtureSimpleAction);\ntest('TemplateAppPlayer › TemplateAppPlayerPopinEnd › Subscribe › should be rendered', renderComponentMacro, TemplateAppPlayerPopinEnd, fixtureSubscribe);\ntest('TemplateAppPlayer › TemplateAppPlayerPopinEnd › WithLoadingRecommendations › should be rendered', renderComponentMacro, TemplateAppPlayerPopinEnd, fixtureWithLoadingRecommendations);\ntest('TemplateAppPlayer › TemplateAppPlayerPopinEnd › WithRecommendations › should be rendered', renderComponentMacro, TemplateAppPlayerPopinEnd, fixtureWithRecommendations);\ntest('TemplateAppPlayer › TemplateAppPlayerPopinEnd › WithoutRecommendation › should be rendered', renderComponentMacro, TemplateAppPlayerPopinEnd, fixtureWithoutRecommendation);\n"],"file":"fixtures.js"}
1
+ {"version":3,"sources":["../../../../../src/template/app-player/popin-end/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","TemplateAppPlayerPopinEnd","fixtureAdaptive","fixtureArabicCorrect","fixtureArabicNextLevelAdaptiveImg","fixtureArabicWithRecommendations","fixtureCommentIsLoading","fixtureCommentSent","fixtureComment","fixtureCorrect","fixtureDefault","fixtureFail","fixtureInfiniteLives","fixtureLoading","fixtureNegativeRank","fixtureNextCourse","fixtureNextLevelAdaptiveImg","fixtureSimpleAction","fixtureSubscribe","fixtureWithLoadingRecommendations","fixtureWithRecommendations","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,yBAAP,MAAsC,IAAtC;AACA,OAAOC,eAAP,MAA4B,qBAA5B;AACA,OAAOC,oBAAP,MAAiC,2BAAjC;AACA,OAAOC,iCAAP,MAA8C,2CAA9C;AACA,O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import renderComponentMacro from '../../../../test/helpers/render-component';\nimport TemplateAppPlayerPopinEnd from '..';\nimport fixtureAdaptive from './fixtures/adaptive';\nimport fixtureArabicCorrect from './fixtures/arabic-correct';\nimport fixtureArabicNextLevelAdaptiveImg from './fixtures/arabic-next-level-adaptive-img';\nimport fixtureArabicWithRecommendations from './fixtures/arabic-with-recommendations';\nimport fixtureCommentIsLoading from './fixtures/comment-is-loading';\nimport fixtureCommentSent from './fixtures/comment-sent';\nimport fixtureComment from './fixtures/comment';\nimport fixtureCorrect from './fixtures/correct';\nimport fixtureDefault from './fixtures/default';\nimport fixtureFail from './fixtures/fail';\nimport fixtureInfiniteLives from './fixtures/infinite-lives';\nimport fixtureLoading from './fixtures/loading';\nimport fixtureNegativeRank from './fixtures/negative-rank';\nimport fixtureNextCourse from './fixtures/next-course';\nimport fixtureNextLevelAdaptiveImg from './fixtures/next-level-adaptive-img';\nimport fixtureSimpleAction from './fixtures/simple-action';\nimport fixtureSubscribe from './fixtures/subscribe';\nimport fixtureWithLoadingRecommendations from './fixtures/with-loading-recommendations';\nimport fixtureWithRecommendations from './fixtures/with-recommendations';\n\ntest('TemplateAppPlayer › TemplateAppPlayerPopinEnd > should have valid propTypes', t => {\n t.pass();\n forEach(TemplateAppPlayerPopinEnd.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"TemplateAppPlayer.TemplateAppPlayerPopinEnd.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('TemplateAppPlayer › TemplateAppPlayerPopinEnd › Adaptive › should be rendered', renderComponentMacro, TemplateAppPlayerPopinEnd, fixtureAdaptive);\ntest('TemplateAppPlayer › TemplateAppPlayerPopinEnd › ArabicCorrect › should be rendered', renderComponentMacro, TemplateAppPlayerPopinEnd, fixtureArabicCorrect);\ntest('TemplateAppPlayer › TemplateAppPlayerPopinEnd › ArabicNextLevelAdaptiveImg › should be rendered', renderComponentMacro, TemplateAppPlayerPopinEnd, fixtureArabicNextLevelAdaptiveImg);\ntest('TemplateAppPlayer › TemplateAppPlayerPopinEnd › ArabicWithRecommendations › should be rendered', renderComponentMacro, TemplateAppPlayerPopinEnd, fixtureArabicWithRecommendations);\ntest('TemplateAppPlayer › TemplateAppPlayerPopinEnd › CommentIsLoading › should be rendered', renderComponentMacro, TemplateAppPlayerPopinEnd, fixtureCommentIsLoading);\ntest('TemplateAppPlayer › TemplateAppPlayerPopinEnd › CommentSent › should be rendered', renderComponentMacro, TemplateAppPlayerPopinEnd, fixtureCommentSent);\ntest('TemplateAppPlayer › TemplateAppPlayerPopinEnd › Comment › should be rendered', renderComponentMacro, TemplateAppPlayerPopinEnd, fixtureComment);\ntest('TemplateAppPlayer › TemplateAppPlayerPopinEnd › Correct › should be rendered', renderComponentMacro, TemplateAppPlayerPopinEnd, fixtureCorrect);\ntest('TemplateAppPlayer › TemplateAppPlayerPopinEnd › Default › should be rendered', renderComponentMacro, TemplateAppPlayerPopinEnd, fixtureDefault);\ntest('TemplateAppPlayer › TemplateAppPlayerPopinEnd › Fail › should be rendered', renderComponentMacro, TemplateAppPlayerPopinEnd, fixtureFail);\ntest('TemplateAppPlayer › TemplateAppPlayerPopinEnd › InfiniteLives › should be rendered', renderComponentMacro, TemplateAppPlayerPopinEnd, fixtureInfiniteLives);\ntest('TemplateAppPlayer › TemplateAppPlayerPopinEnd › Loading › should be rendered', renderComponentMacro, TemplateAppPlayerPopinEnd, fixtureLoading);\ntest('TemplateAppPlayer › TemplateAppPlayerPopinEnd › NegativeRank › should be rendered', renderComponentMacro, TemplateAppPlayerPopinEnd, fixtureNegativeRank);\ntest('TemplateAppPlayer › TemplateAppPlayerPopinEnd › NextCourse › should be rendered', renderComponentMacro, TemplateAppPlayerPopinEnd, fixtureNextCourse);\ntest('TemplateAppPlayer › TemplateAppPlayerPopinEnd › NextLevelAdaptiveImg › should be rendered', renderComponentMacro, TemplateAppPlayerPopinEnd, fixtureNextLevelAdaptiveImg);\ntest('TemplateAppPlayer › TemplateAppPlayerPopinEnd › SimpleAction › should be rendered', renderComponentMacro, TemplateAppPlayerPopinEnd, fixtureSimpleAction);\ntest('TemplateAppPlayer › TemplateAppPlayerPopinEnd › Subscribe › should be rendered', renderComponentMacro, TemplateAppPlayerPopinEnd, fixtureSubscribe);\ntest('TemplateAppPlayer › TemplateAppPlayerPopinEnd › WithLoadingRecommendations › should be rendered', renderComponentMacro, TemplateAppPlayerPopinEnd, fixtureWithLoadingRecommendations);\ntest('TemplateAppPlayer › TemplateAppPlayerPopinEnd › WithRecommendations › should be rendered', renderComponentMacro, TemplateAppPlayerPopinEnd, fixtureWithRecommendations);\n"],"file":"fixtures.js"}
@@ -0,0 +1,22 @@
1
+ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
+
3
+ import WizardForm from '../../../../../organism/wizard-contents/test/fixtures/certification-rewards';
4
+ import headerAndMenu from './default';
5
+ const {
6
+ header,
7
+ items
8
+ } = headerAndMenu.props;
9
+ const form = WizardForm.props;
10
+ export default {
11
+ props: {
12
+ header,
13
+ items,
14
+ notifications: [],
15
+ content: _extends(_extends({}, form), {}, {
16
+ isLoading: false,
17
+ key: 'rewards',
18
+ type: 'wizard'
19
+ })
20
+ }
21
+ };
22
+ //# sourceMappingURL=wizard-rewards-certification.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../src/template/back-office/brand-update/test/fixtures/wizard-rewards-certification.js"],"names":["WizardForm","headerAndMenu","header","items","props","form","notifications","content","isLoading","key","type"],"mappings":";;AAAA,OAAOA,UAAP,MAAuB,6EAAvB;AACA,OAAOC,aAAP,MAA0B,WAA1B;AAEA,MAAM;AAACC,EAAAA,MAAD;AAASC,EAAAA;AAAT,IAAkBF,aAAa,CAACG,KAAtC;AACA,MAAMC,IAAI,GAAGL,UAAU,CAACI,KAAxB;AAEA,eAAe;AACbA,EAAAA,KAAK,EAAE;AACLF,IAAAA,MADK;AAELC,IAAAA,KAFK;AAGLG,IAAAA,aAAa,EAAE,EAHV;AAILC,IAAAA,OAAO,wBACFF,IADE;AAELG,MAAAA,SAAS,EAAE,KAFN;AAGLC,MAAAA,GAAG,EAAE,SAHA;AAILC,MAAAA,IAAI,EAAE;AAJD;AAJF;AADM,CAAf","sourcesContent":["import WizardForm from '../../../../../organism/wizard-contents/test/fixtures/certification-rewards';\nimport headerAndMenu from './default';\n\nconst {header, items} = headerAndMenu.props;\nconst form = WizardForm.props;\n\nexport default {\n props: {\n header,\n items,\n notifications: [],\n content: {\n ...form,\n isLoading: false,\n key: 'rewards',\n type: 'wizard'\n }\n }\n};\n"],"file":"wizard-rewards-certification.js"}
@@ -11,10 +11,6 @@ import fixtureDashboardsAnalytics from './fixtures/dashboards-analytics';
11
11
  import fixtureDefault from './fixtures/default';
12
12
  import fixtureGeneralSettingsSuccess from './fixtures/general-settings-success';
13
13
  import fixtureGeneralSettings from './fixtures/general-settings';
14
- import fixtureListItemsArchived from './fixtures/list-items-archived';
15
- import fixtureListItemsDraft from './fixtures/list-items-draft';
16
- import fixtureListItemsPublishedWithPopin from './fixtures/list-items-published-with-popin';
17
- import fixtureListItemsPublished from './fixtures/list-items-published';
18
14
  import fixtureLmsError from './fixtures/lms-error';
19
15
  import fixtureLmsModified from './fixtures/lms-modified';
20
16
  import fixtureLmsSuccess from './fixtures/lms-success';
@@ -27,19 +23,12 @@ import fixtureLookandfeelSuccess from './fixtures/lookandfeel-success';
27
23
  import fixtureLookandfeel from './fixtures/lookandfeel';
28
24
  import fixtureManageusersEdit from './fixtures/manageusers-edit';
29
25
  import fixtureManageusersList from './fixtures/manageusers-list';
30
- import fixtureQuickAccess from './fixtures/quick-access';
26
+ import fixtureManageusers from './fixtures/manageusers';
31
27
  import fixtureSsoActivate from './fixtures/sso-activate';
32
28
  import fixtureSso from './fixtures/sso';
33
29
  import fixtureUploadusersLoading from './fixtures/uploadusers-loading';
34
30
  import fixtureUploadusersSuccessful from './fixtures/uploadusers-successful';
35
31
  import fixtureUploadusers from './fixtures/uploadusers';
36
- import fixtureWizardAddCoursesPlaylist from './fixtures/wizard-add-courses-playlist';
37
- import fixtureWizardFormCreatePlaylist from './fixtures/wizard-form-create-playlist';
38
- import fixtureWizardFormEditPlaylist from './fixtures/wizard-form-edit-playlist';
39
- import fixtureWizardOrganizeCoursesPlaylist from './fixtures/wizard-organize-courses-playlist';
40
- import fixtureWizardPopulationsPlaylistWithPopin from './fixtures/wizard-populations-playlist-with-popin';
41
- import fixtureWizardPopulationsPlaylist from './fixtures/wizard-populations-playlist';
42
- import fixtureWizardTranslatePlaylist from './fixtures/wizard-translate-playlist';
43
32
  test('TemplateBackOffice › TemplateBackOfficeBrandUpdate > should have valid propTypes', t => {
44
33
  t.pass();
45
34
  forEach(TemplateBackOfficeBrandUpdate.propTypes, (value, key) => {
@@ -55,10 +44,6 @@ test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › DashboardsAnalyti
55
44
  test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Default › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureDefault);
56
45
  test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › GeneralSettingsSuccess › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureGeneralSettingsSuccess);
57
46
  test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › GeneralSettings › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureGeneralSettings);
58
- test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › ListItemsArchived › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureListItemsArchived);
59
- test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › ListItemsDraft › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureListItemsDraft);
60
- test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › ListItemsPublishedWithPopin › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureListItemsPublishedWithPopin);
61
- test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › ListItemsPublished › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureListItemsPublished);
62
47
  test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LmsError › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLmsError);
63
48
  test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LmsModified › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLmsModified);
64
49
  test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LmsSuccess › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLmsSuccess);
@@ -71,17 +56,10 @@ test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LookandfeelSucces
71
56
  test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Lookandfeel › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLookandfeel);
72
57
  test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › ManageusersEdit › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureManageusersEdit);
73
58
  test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › ManageusersList › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureManageusersList);
74
- test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › QuickAccess › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureQuickAccess);
59
+ test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Manageusers › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureManageusers);
75
60
  test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › SsoActivate › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureSsoActivate);
76
61
  test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Sso › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureSso);
77
62
  test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › UploadusersLoading › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureUploadusersLoading);
78
63
  test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › UploadusersSuccessful › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureUploadusersSuccessful);
79
64
  test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Uploadusers › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureUploadusers);
80
- test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardAddCoursesPlaylist › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureWizardAddCoursesPlaylist);
81
- test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardFormCreatePlaylist › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureWizardFormCreatePlaylist);
82
- test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardFormEditPlaylist › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureWizardFormEditPlaylist);
83
- test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardOrganizeCoursesPlaylist › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureWizardOrganizeCoursesPlaylist);
84
- test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardPopulationsPlaylistWithPopin › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureWizardPopulationsPlaylistWithPopin);
85
- test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardPopulationsPlaylist › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureWizardPopulationsPlaylist);
86
- test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardTranslatePlaylist › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureWizardTranslatePlaylist);
87
65
  //# sourceMappingURL=fixtures.js.map
@@ -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","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,wBAAP,MAAqC,gCAArC;AACA,OAAOC,qBAAP,MAA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AhC,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"}
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","fixtureLmsError","fixtureLmsModified","fixtureLmsSuccess","fixtureLms","fixtureLoader","fixtureLookandfeelError","fixtureLookandfeelModified","fixtureLookandfeelPending","fixtureLookandfeelSuccess","fixtureLookandfeel","fixtureManageusersEdit","fixtureManageusersList","fixtureManageusers","fixtureSsoActivate","fixtureSso","fixtureUploadusersLoading","fixtureUploadusersSuccessful","fixtureUploadusers","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;A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,IAAI,CAAC,uFAAD,EAA0FE,oBAA1F,EAAgHC,6BAAhH,EAA+ImB,kBAA/I,CAAJ;AACAtB,IAAI,CAAC,2FAAD,EAA8FE,oBAA9F,EAAoHC,6BAApH,EAAmJoB,sBAAnJ,CAAJ;AACAvB,IAAI,CAAC,2FAAD,EAA8FE,oBAA9F,EAAoHC,6BAApH,EAAmJqB,sBAAnJ,CAAJ;AACAxB,IAAI,CAAC,uFAAD,EAA0FE,oBAA1F,EAAgHC,6BAAhH,EAA+IsB,kBAA/I,CAAJ;AACAzB,IAAI,CAAC,uFAAD,EAA0FE,oBAA1F,EAAgHC,6BAAhH,EAA+IuB,kBAA/I,CAAJ;AACA1B,IAAI,CAAC,+EAAD,EAAkFE,oBAAlF,EAAwGC,6BAAxG,EAAuIwB,UAAvI,CAAJ;AACA3B,IAAI,CAAC,8FAAD,EAAiGE,oBAAjG,EAAuHC,6BAAvH,EAAsJyB,yBAAtJ,CAAJ;AACA5B,IAAI,CAAC,iGAAD,EAAoGE,oBAApG,EAA0HC,6BAA1H,EAAyJ0B,4BAAzJ,CAAJ;AACA7B,IAAI,CAAC,uFAAD,EAA0FE,oBAA1F,EAAgHC,6BAAhH,EAA+I2B,kBAA/I,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 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 fixtureManageusers from './fixtures/manageusers';\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';\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 › 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 › Manageusers › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureManageusers);\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);\n"],"file":"fixtures.js"}
@@ -4,7 +4,6 @@ import renderComponentMacro from '../../../test/helpers/render-component';
4
4
  import TemplateTeamsDashboard from '..';
5
5
  import fixtureDefault from './fixtures/default';
6
6
  import fixtureIsLoading from './fixtures/is-loading';
7
- import fixtureMobile from './fixtures/mobile';
8
7
  test('Template › TemplateTeamsDashboard > should have valid propTypes', t => {
9
8
  t.pass();
10
9
  forEach(TemplateTeamsDashboard.propTypes, (value, key) => {
@@ -13,5 +12,4 @@ test('Template › TemplateTeamsDashboard > should have valid propTypes', t => {
13
12
  });
14
13
  test('Template › TemplateTeamsDashboard › Default › should be rendered', renderComponentMacro, TemplateTeamsDashboard, fixtureDefault);
15
14
  test('Template › TemplateTeamsDashboard › IsLoading › should be rendered', renderComponentMacro, TemplateTeamsDashboard, fixtureIsLoading);
16
- test('Template › TemplateTeamsDashboard › Mobile › should be rendered', renderComponentMacro, TemplateTeamsDashboard, fixtureMobile);
17
15
  //# sourceMappingURL=fixtures.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/template/teams-dashboard/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","TemplateTeamsDashboard","fixtureDefault","fixtureIsLoading","fixtureMobile","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,cAAP,MAA2B,oBAA3B;AACA,OAAOC,gBAAP,MAA6B,uBAA7B;AACA,OAAOC,aAAP,MAA0B,mBAA1B;AAEAN,IAAI,CAAC,iEAAD,EAAoEO,CAAC,IAAI;AAC3EA,EAAAA,CAAC,CAACC,IAAF;AACAP,EAAAA,OAAO,CAACE,sBAAsB,CAACM,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;AAOAX,IAAI,CAAC,kEAAD,EAAqEE,oBAArE,EAA2FC,sBAA3F,EAAmHC,cAAnH,CAAJ;AACAJ,IAAI,CAAC,oEAAD,EAAuEE,oBAAvE,EAA6FC,sBAA7F,EAAqHE,gBAArH,CAAJ;AACAL,IAAI,CAAC,iEAAD,EAAoEE,oBAApE,EAA0FC,sBAA1F,EAAkHG,aAAlH,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport TemplateTeamsDashboard from '..';\nimport fixtureDefault from './fixtures/default';\nimport fixtureIsLoading from './fixtures/is-loading';\nimport fixtureMobile from './fixtures/mobile';\n\ntest('Template › TemplateTeamsDashboard > should have valid propTypes', t => {\n t.pass();\n forEach(TemplateTeamsDashboard.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Template.TemplateTeamsDashboard.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Template › TemplateTeamsDashboard › Default › should be rendered', renderComponentMacro, TemplateTeamsDashboard, fixtureDefault);\ntest('Template › TemplateTeamsDashboard › IsLoading › should be rendered', renderComponentMacro, TemplateTeamsDashboard, fixtureIsLoading);\ntest('Template › TemplateTeamsDashboard › Mobile › should be rendered', renderComponentMacro, TemplateTeamsDashboard, fixtureMobile);\n"],"file":"fixtures.js"}
1
+ {"version":3,"sources":["../../../../src/template/teams-dashboard/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","TemplateTeamsDashboard","fixtureDefault","fixtureIsLoading","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,cAAP,MAA2B,oBAA3B;AACA,OAAOC,gBAAP,MAA6B,uBAA7B;AAEAL,IAAI,CAAC,iEAAD,EAAoEM,CAAC,IAAI;AAC3EA,EAAAA,CAAC,CAACC,IAAF;AACAN,EAAAA,OAAO,CAACE,sBAAsB,CAACK,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;AAOAV,IAAI,CAAC,kEAAD,EAAqEE,oBAArE,EAA2FC,sBAA3F,EAAmHC,cAAnH,CAAJ;AACAJ,IAAI,CAAC,oEAAD,EAAuEE,oBAAvE,EAA6FC,sBAA7F,EAAqHE,gBAArH,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport TemplateTeamsDashboard from '..';\nimport fixtureDefault from './fixtures/default';\nimport fixtureIsLoading from './fixtures/is-loading';\n\ntest('Template › TemplateTeamsDashboard > should have valid propTypes', t => {\n t.pass();\n forEach(TemplateTeamsDashboard.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Template.TemplateTeamsDashboard.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Template › TemplateTeamsDashboard › Default › should be rendered', renderComponentMacro, TemplateTeamsDashboard, fixtureDefault);\ntest('Template › TemplateTeamsDashboard › IsLoading › should be rendered', renderComponentMacro, TemplateTeamsDashboard, fixtureIsLoading);\n"],"file":"fixtures.js"}
@@ -28,8 +28,6 @@
28
28
  font-weight: bold;
29
29
  font-size: 20px;
30
30
  color: dark;
31
- width: 180px;
32
- margin-right: 20px;
33
31
  min-height: 50px;
34
32
  display: flex;
35
33
  align-items: center;
@@ -43,8 +41,8 @@
43
41
  display: flex;
44
42
  justify-content: center;
45
43
  align-items: center;
46
- width: 23px;
47
- height: 23px;
44
+ width: 24px;
45
+ height: 24px;
48
46
  border-radius: 5px;
49
47
  font-size: 14px;
50
48
  color: dark;
@@ -8,24 +8,16 @@ var _renderComponent = _interopRequireDefault(require("../../../test/helpers/ren
8
8
 
9
9
  var _ = _interopRequireDefault(require(".."));
10
10
 
11
- var _cleanAndModified = _interopRequireDefault(require("./fixtures/clean-and-modified"));
12
-
13
11
  var _default = _interopRequireDefault(require("./fixtures/default"));
14
12
 
15
- var _error = _interopRequireDefault(require("./fixtures/error"));
16
-
17
13
  var _loading = _interopRequireDefault(require("./fixtures/loading"));
18
14
 
19
- var _modified = _interopRequireDefault(require("./fixtures/modified"));
20
-
21
15
  var _withChildren = _interopRequireDefault(require("./fixtures/with-children"));
22
16
 
23
17
  var _withImageReset = _interopRequireDefault(require("./fixtures/with-image-reset"));
24
18
 
25
19
  var _withImage = _interopRequireDefault(require("./fixtures/with-image"));
26
20
 
27
- var _withLongDescription = _interopRequireDefault(require("./fixtures/with-long-description"));
28
-
29
21
  var _withVideo = _interopRequireDefault(require("./fixtures/with-video"));
30
22
 
31
23
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -36,14 +28,10 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
36
28
  t.not(value, undefined, `PropType for "Atom.AtomDragAndDrop.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
37
29
  });
38
30
  });
39
- (0, _ava.default)('Atom › AtomDragAndDrop › CleanAndModified › should be rendered', _renderComponent.default, _.default, _cleanAndModified.default);
40
31
  (0, _ava.default)('Atom › AtomDragAndDrop › Default › should be rendered', _renderComponent.default, _.default, _default.default);
41
- (0, _ava.default)('Atom › AtomDragAndDrop › Error › should be rendered', _renderComponent.default, _.default, _error.default);
42
32
  (0, _ava.default)('Atom › AtomDragAndDrop › Loading › should be rendered', _renderComponent.default, _.default, _loading.default);
43
- (0, _ava.default)('Atom › AtomDragAndDrop › Modified › should be rendered', _renderComponent.default, _.default, _modified.default);
44
33
  (0, _ava.default)('Atom › AtomDragAndDrop › WithChildren › should be rendered', _renderComponent.default, _.default, _withChildren.default);
45
34
  (0, _ava.default)('Atom › AtomDragAndDrop › WithImageReset › should be rendered', _renderComponent.default, _.default, _withImageReset.default);
46
35
  (0, _ava.default)('Atom › AtomDragAndDrop › WithImage › should be rendered', _renderComponent.default, _.default, _withImage.default);
47
- (0, _ava.default)('Atom › AtomDragAndDrop › WithLongDescription › should be rendered', _renderComponent.default, _.default, _withLongDescription.default);
48
36
  (0, _ava.default)('Atom › AtomDragAndDrop › WithVideo › should be rendered', _renderComponent.default, _.default, _withVideo.default);
49
37
  //# sourceMappingURL=fixtures.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/atom/drag-and-drop/test/fixtures.js"],"names":["t","pass","AtomDragAndDrop","propTypes","value","key","not","undefined","renderComponentMacro","fixtureCleanAndModified","fixtureDefault","fixtureError","fixtureLoading","fixtureModified","fixtureWithChildren","fixtureWithImageReset","fixtureWithImage","fixtureWithLongDescription","fixtureWithVideo"],"mappings":";;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;AAEA,kBAAK,sDAAL,EAA6DA,CAAC,IAAI;AAChEA,EAAAA,CAAC,CAACC,IAAF;AACA,wBAAQC,UAAgBC,SAAxB,EAAmC,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACjDL,IAAAA,CAAC,CAACM,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,gDAA+CF,GAAI,mEAA5E;AACD,GAFD;AAGD,CALD;AAOA,kBAAK,gEAAL,EAAuEG,wBAAvE,EAA6FN,SAA7F,EAA8GO,yBAA9G;AACA,kBAAK,uDAAL,EAA8DD,wBAA9D,EAAoFN,SAApF,EAAqGQ,gBAArG;AACA,kBAAK,qDAAL,EAA4DF,wBAA5D,EAAkFN,SAAlF,EAAmGS,cAAnG;AACA,kBAAK,uDAAL,EAA8DH,wBAA9D,EAAoFN,SAApF,EAAqGU,gBAArG;AACA,kBAAK,wDAAL,EAA+DJ,wBAA/D,EAAqFN,SAArF,EAAsGW,iBAAtG;AACA,kBAAK,4DAAL,EAAmEL,wBAAnE,EAAyFN,SAAzF,EAA0GY,qBAA1G;AACA,kBAAK,8DAAL,EAAqEN,wBAArE,EAA2FN,SAA3F,EAA4Ga,uBAA5G;AACA,kBAAK,yDAAL,EAAgEP,wBAAhE,EAAsFN,SAAtF,EAAuGc,kBAAvG;AACA,kBAAK,mEAAL,EAA0ER,wBAA1E,EAAgGN,SAAhG,EAAiHe,4BAAjH;AACA,kBAAK,yDAAL,EAAgET,wBAAhE,EAAsFN,SAAtF,EAAuGgB,kBAAvG","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport AtomDragAndDrop from '..';\nimport fixtureCleanAndModified from './fixtures/clean-and-modified';\nimport fixtureDefault from './fixtures/default';\nimport fixtureError from './fixtures/error';\nimport fixtureLoading from './fixtures/loading';\nimport fixtureModified from './fixtures/modified';\nimport fixtureWithChildren from './fixtures/with-children';\nimport fixtureWithImageReset from './fixtures/with-image-reset';\nimport fixtureWithImage from './fixtures/with-image';\nimport fixtureWithLongDescription from './fixtures/with-long-description';\nimport fixtureWithVideo from './fixtures/with-video';\n\ntest('Atom › AtomDragAndDrop > should have valid propTypes', t => {\n t.pass();\n forEach(AtomDragAndDrop.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Atom.AtomDragAndDrop.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Atom › AtomDragAndDrop › CleanAndModified › should be rendered', renderComponentMacro, AtomDragAndDrop, fixtureCleanAndModified);\ntest('Atom › AtomDragAndDrop › Default › should be rendered', renderComponentMacro, AtomDragAndDrop, fixtureDefault);\ntest('Atom › AtomDragAndDrop › Error › should be rendered', renderComponentMacro, AtomDragAndDrop, fixtureError);\ntest('Atom › AtomDragAndDrop › Loading › should be rendered', renderComponentMacro, AtomDragAndDrop, fixtureLoading);\ntest('Atom › AtomDragAndDrop › Modified › should be rendered', renderComponentMacro, AtomDragAndDrop, fixtureModified);\ntest('Atom › AtomDragAndDrop › WithChildren › should be rendered', renderComponentMacro, AtomDragAndDrop, fixtureWithChildren);\ntest('Atom › AtomDragAndDrop › WithImageReset › should be rendered', renderComponentMacro, AtomDragAndDrop, fixtureWithImageReset);\ntest('Atom › AtomDragAndDrop › WithImage › should be rendered', renderComponentMacro, AtomDragAndDrop, fixtureWithImage);\ntest('Atom › AtomDragAndDrop › WithLongDescription › should be rendered', renderComponentMacro, AtomDragAndDrop, fixtureWithLongDescription);\ntest('Atom › AtomDragAndDrop › WithVideo › should be rendered', renderComponentMacro, AtomDragAndDrop, fixtureWithVideo);\n"],"file":"fixtures.js"}
1
+ {"version":3,"sources":["../../../../src/atom/drag-and-drop/test/fixtures.js"],"names":["t","pass","AtomDragAndDrop","propTypes","value","key","not","undefined","renderComponentMacro","fixtureDefault","fixtureLoading","fixtureWithChildren","fixtureWithImageReset","fixtureWithImage","fixtureWithVideo"],"mappings":";;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;AAEA,kBAAK,sDAAL,EAA6DA,CAAC,IAAI;AAChEA,EAAAA,CAAC,CAACC,IAAF;AACA,wBAAQC,UAAgBC,SAAxB,EAAmC,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACjDL,IAAAA,CAAC,CAACM,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,gDAA+CF,GAAI,mEAA5E;AACD,GAFD;AAGD,CALD;AAOA,kBAAK,uDAAL,EAA8DG,wBAA9D,EAAoFN,SAApF,EAAqGO,gBAArG;AACA,kBAAK,uDAAL,EAA8DD,wBAA9D,EAAoFN,SAApF,EAAqGQ,gBAArG;AACA,kBAAK,4DAAL,EAAmEF,wBAAnE,EAAyFN,SAAzF,EAA0GS,qBAA1G;AACA,kBAAK,8DAAL,EAAqEH,wBAArE,EAA2FN,SAA3F,EAA4GU,uBAA5G;AACA,kBAAK,yDAAL,EAAgEJ,wBAAhE,EAAsFN,SAAtF,EAAuGW,kBAAvG;AACA,kBAAK,yDAAL,EAAgEL,wBAAhE,EAAsFN,SAAtF,EAAuGY,kBAAvG","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport AtomDragAndDrop from '..';\nimport fixtureDefault from './fixtures/default';\nimport fixtureLoading from './fixtures/loading';\nimport fixtureWithChildren from './fixtures/with-children';\nimport fixtureWithImageReset from './fixtures/with-image-reset';\nimport fixtureWithImage from './fixtures/with-image';\nimport fixtureWithVideo from './fixtures/with-video';\n\ntest('Atom › AtomDragAndDrop > should have valid propTypes', t => {\n t.pass();\n forEach(AtomDragAndDrop.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Atom.AtomDragAndDrop.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Atom › AtomDragAndDrop › Default › should be rendered', renderComponentMacro, AtomDragAndDrop, fixtureDefault);\ntest('Atom › AtomDragAndDrop › Loading › should be rendered', renderComponentMacro, AtomDragAndDrop, fixtureLoading);\ntest('Atom › AtomDragAndDrop › WithChildren › should be rendered', renderComponentMacro, AtomDragAndDrop, fixtureWithChildren);\ntest('Atom › AtomDragAndDrop › WithImageReset › should be rendered', renderComponentMacro, AtomDragAndDrop, fixtureWithImageReset);\ntest('Atom › AtomDragAndDrop › WithImage › should be rendered', renderComponentMacro, AtomDragAndDrop, fixtureWithImage);\ntest('Atom › AtomDragAndDrop › WithVideo › should be rendered', renderComponentMacro, AtomDragAndDrop, fixtureWithVideo);\n"],"file":"fixtures.js"}
@@ -8,10 +8,6 @@ var _renderComponent = _interopRequireDefault(require("../../../test/helpers/ren
8
8
 
9
9
  var _ = _interopRequireDefault(require(".."));
10
10
 
11
- var _cleanModified = _interopRequireDefault(require("./fixtures/clean-modified"));
12
-
13
- var _default = _interopRequireDefault(require("./fixtures/default"));
14
-
15
11
  var _desktopResetDescriptionMultiple = _interopRequireDefault(require("./fixtures/desktop-reset-description-multiple"));
16
12
 
17
13
  var _desktopResetDescriptionOnlyPng = _interopRequireDefault(require("./fixtures/desktop-reset-description-only-png"));
@@ -28,6 +24,8 @@ var _mobile = _interopRequireDefault(require("./fixtures/mobile"));
28
24
 
29
25
  var _modified = _interopRequireDefault(require("./fixtures/modified"));
30
26
 
27
+ var _withoutImage = _interopRequireDefault(require("./fixtures/without-image"));
28
+
31
29
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
32
30
 
33
31
  (0, _ava.default)('Atom › AtomImageUpload > should have valid propTypes', t => {
@@ -36,8 +34,6 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
36
34
  t.not(value, undefined, `PropType for "Atom.AtomImageUpload.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
37
35
  });
38
36
  });
39
- (0, _ava.default)('Atom › AtomImageUpload › CleanModified › should be rendered', _renderComponent.default, _.default, _cleanModified.default);
40
- (0, _ava.default)('Atom › AtomImageUpload › Default › should be rendered', _renderComponent.default, _.default, _default.default);
41
37
  (0, _ava.default)('Atom › AtomImageUpload › DesktopResetDescriptionMultiple › should be rendered', _renderComponent.default, _.default, _desktopResetDescriptionMultiple.default);
42
38
  (0, _ava.default)('Atom › AtomImageUpload › DesktopResetDescriptionOnlyPng › should be rendered', _renderComponent.default, _.default, _desktopResetDescriptionOnlyPng.default);
43
39
  (0, _ava.default)('Atom › AtomImageUpload › DesktopResetDescription › should be rendered', _renderComponent.default, _.default, _desktopResetDescription.default);
@@ -46,4 +42,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
46
42
  (0, _ava.default)('Atom › AtomImageUpload › Email › should be rendered', _renderComponent.default, _.default, _email.default);
47
43
  (0, _ava.default)('Atom › AtomImageUpload › Mobile › should be rendered', _renderComponent.default, _.default, _mobile.default);
48
44
  (0, _ava.default)('Atom › AtomImageUpload › Modified › should be rendered', _renderComponent.default, _.default, _modified.default);
45
+ (0, _ava.default)('Atom › AtomImageUpload › WithoutImage › should be rendered', _renderComponent.default, _.default, _withoutImage.default);
49
46
  //# sourceMappingURL=fixtures.js.map