@cuemath/leap 2.9.8-as3 → 2.9.8

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 (301) hide show
  1. package/dist/assets/illustrations/illustrations.js +0 -9
  2. package/dist/assets/illustrations/illustrations.js.map +1 -1
  3. package/dist/assets/line-icons/icons/bin2.js +8 -7
  4. package/dist/assets/line-icons/icons/bin2.js.map +1 -1
  5. package/dist/assets/line-icons/icons/chevron-left.js.map +1 -1
  6. package/dist/assets/lottie/lottie.js +1 -9
  7. package/dist/assets/lottie/lottie.js.map +1 -1
  8. package/dist/constants/api.js +2 -3
  9. package/dist/constants/api.js.map +1 -1
  10. package/dist/features/analytics-events/platform-events-student.js +3 -3
  11. package/dist/features/analytics-events/platform-events-student.js.map +1 -1
  12. package/dist/features/analytics-events/whitelist-events.js +11 -13
  13. package/dist/features/analytics-events/whitelist-events.js.map +1 -1
  14. package/dist/features/chapters/chapters-list/chapter-item/chapter-item-styled.js +33 -99
  15. package/dist/features/chapters/chapters-list/chapter-item/chapter-item-styled.js.map +1 -1
  16. package/dist/features/chapters/chapters-list/chapter-item/chapter-item.js +49 -92
  17. package/dist/features/chapters/chapters-list/chapter-item/chapter-item.js.map +1 -1
  18. package/dist/features/chapters/chapters-list/chapters-list-styled.js +5 -5
  19. package/dist/features/chapters/chapters-list/chapters-list-styled.js.map +1 -1
  20. package/dist/features/chapters/chapters-list/chapters-list.js +70 -64
  21. package/dist/features/chapters/chapters-list/chapters-list.js.map +1 -1
  22. package/dist/features/communication/pub-sub/constants.js +6 -12
  23. package/dist/features/communication/pub-sub/constants.js.map +1 -1
  24. package/dist/features/journey/comps/coachmark/coachmark-styled.js +8 -26
  25. package/dist/features/journey/comps/coachmark/coachmark-styled.js.map +1 -1
  26. package/dist/features/journey/comps/coachmark/coachmark.js +24 -24
  27. package/dist/features/journey/comps/coachmark/coachmark.js.map +1 -1
  28. package/dist/features/journey/journey-id/journey-id-student.js +1 -1
  29. package/dist/features/journey/journey-id/journey-id-student.js.map +1 -1
  30. package/dist/features/journey/use-journey/journey-context-provider.js +28 -36
  31. package/dist/features/journey/use-journey/journey-context-provider.js.map +1 -1
  32. package/dist/features/journey/use-journey/journey-styled.js +5 -10
  33. package/dist/features/journey/use-journey/journey-styled.js.map +1 -1
  34. package/dist/features/milestone/create/api/goal-submit.js +1 -1
  35. package/dist/features/milestone/create/api/goal-submit.js.map +1 -1
  36. package/dist/features/milestone/create/comps/chapter-item/chapter-item.js +49 -42
  37. package/dist/features/milestone/create/comps/chapter-item/chapter-item.js.map +1 -1
  38. package/dist/features/milestone/create/comps/chapters-selection-step/chapters-selection-step-styled.js +4 -12
  39. package/dist/features/milestone/create/comps/chapters-selection-step/chapters-selection-step-styled.js.map +1 -1
  40. package/dist/features/milestone/create/comps/chapters-selection-step/chapters-selection-step.js +105 -128
  41. package/dist/features/milestone/create/comps/chapters-selection-step/chapters-selection-step.js.map +1 -1
  42. package/dist/features/milestone/create/comps/milestone-progress-v2/milestone-progress-v2.js +92 -0
  43. package/dist/features/milestone/create/comps/milestone-progress-v2/milestone-progress-v2.js.map +1 -0
  44. package/dist/features/milestone/create/comps/milestone-progress-v2/styled.js +25 -0
  45. package/dist/features/milestone/create/comps/milestone-progress-v2/styled.js.map +1 -0
  46. package/dist/features/milestone/create/comps/sheets-list/sheets-list-styled.js +20 -14
  47. package/dist/features/milestone/create/comps/sheets-list/sheets-list-styled.js.map +1 -1
  48. package/dist/features/milestone/create/comps/sheets-list/sheets-list.js +50 -26
  49. package/dist/features/milestone/create/comps/sheets-list/sheets-list.js.map +1 -1
  50. package/dist/features/milestone/create/milestone-create.js +43 -49
  51. package/dist/features/milestone/create/milestone-create.js.map +1 -1
  52. package/dist/features/milestone/create/utils/index.js +38 -33
  53. package/dist/features/milestone/create/utils/index.js.map +1 -1
  54. package/dist/features/milestone/edit/comps/edit-milestone-modal/api/get-milestone.js +1 -1
  55. package/dist/features/milestone/edit/comps/edit-milestone-modal/api/get-milestone.js.map +1 -1
  56. package/dist/features/milestone/edit/comps/edit-milestone-modal/api/patch-goal-plan.js +1 -1
  57. package/dist/features/milestone/edit/comps/edit-milestone-modal/api/patch-goal-plan.js.map +1 -1
  58. package/dist/features/milestone/edit/comps/edit-milestone-modal/index.js +53 -51
  59. package/dist/features/milestone/edit/comps/edit-milestone-modal/index.js.map +1 -1
  60. package/dist/features/milestone/edit/goal-drafts/goal-draft-edit-container.js +40 -42
  61. package/dist/features/milestone/edit/goal-drafts/goal-draft-edit-container.js.map +1 -1
  62. package/dist/features/milestone/edit/goal-edit-container.js +62 -64
  63. package/dist/features/milestone/edit/goal-edit-container.js.map +1 -1
  64. package/dist/features/milestone/edit/goal-edit-helpers.js +53 -50
  65. package/dist/features/milestone/edit/goal-edit-helpers.js.map +1 -1
  66. package/dist/features/milestone/edit/milestone-edit-container.js +52 -54
  67. package/dist/features/milestone/edit/milestone-edit-container.js.map +1 -1
  68. package/dist/features/milestone/milestone-list-container/api/get-milestone-resources.js +1 -1
  69. package/dist/features/milestone/milestone-list-container/api/get-milestone-resources.js.map +1 -1
  70. package/dist/features/milestone/milestone-list-container/api/get-milestones.js +17 -9
  71. package/dist/features/milestone/milestone-list-container/api/get-milestones.js.map +1 -1
  72. package/dist/features/milestone/milestone-list-container/api/get-tests-list.js +1 -1
  73. package/dist/features/milestone/milestone-list-container/api/get-tests-list.js.map +1 -1
  74. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-list.js +105 -138
  75. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-list.js.map +1 -1
  76. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/context-menu-helper/menu-element-styled.js +13 -0
  77. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/context-menu-helper/menu-element-styled.js.map +1 -0
  78. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/context-menu-helper/menu-element.js +38 -0
  79. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/context-menu-helper/menu-element.js.map +1 -0
  80. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/goals/goal-action-ctas.js +123 -107
  81. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/goals/goal-action-ctas.js.map +1 -1
  82. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-info.js +176 -157
  83. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-info.js.map +1 -1
  84. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-tabs/milestone-tabs-styled.js +10 -24
  85. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-tabs/milestone-tabs-styled.js.map +1 -1
  86. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-tabs/milestone-tabs.js +86 -80
  87. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-tabs/milestone-tabs.js.map +1 -1
  88. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-utils.js +22 -10
  89. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-utils.js.map +1 -1
  90. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-widget-status.js +53 -0
  91. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-widget-status.js.map +1 -0
  92. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-widget-styled.js +37 -70
  93. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-widget-styled.js.map +1 -1
  94. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-widget.js +176 -114
  95. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-widget.js.map +1 -1
  96. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/outcome/outcome-info.js +25 -0
  97. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/outcome/outcome-info.js.map +1 -0
  98. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/outcome/outcome-rank.js +16 -29
  99. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/outcome/outcome-rank.js.map +1 -1
  100. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/outcome/outcome-styled.js +25 -17
  101. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/outcome/outcome-styled.js.map +1 -1
  102. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/outcome/outcome.js +35 -23
  103. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/outcome/outcome.js.map +1 -1
  104. package/dist/features/milestone/milestone-list-container/milestone-list-container.js +113 -110
  105. package/dist/features/milestone/milestone-list-container/milestone-list-container.js.map +1 -1
  106. package/dist/features/milestone/milestone-resources/resources-assign/api/goal-resource-assign.js +1 -1
  107. package/dist/features/milestone/milestone-resources/resources-assign/api/goal-resource-assign.js.map +1 -1
  108. package/dist/features/milestone/milestone-resources/resources-assign/resources-assign.js +8 -8
  109. package/dist/features/milestone/milestone-resources/resources-assign/resources-assign.js.map +1 -1
  110. package/dist/features/milestone/milestone-resources/resources-list/resources-list-styled.js +1 -1
  111. package/dist/features/milestone/milestone-resources/resources-list/resources-list-styled.js.map +1 -1
  112. package/dist/features/milestone/milestone-resources/resources-list/resources-list.js +113 -116
  113. package/dist/features/milestone/milestone-resources/resources-list/resources-list.js.map +1 -1
  114. package/dist/features/milestone/milestone-tests/tests-creation/api/test-sheet-assign.js +5 -5
  115. package/dist/features/milestone/milestone-tests/tests-creation/api/test-sheet-assign.js.map +1 -1
  116. package/dist/features/milestone/milestone-tests/tests-creation/test-stages/chapter-selection/chapter-item/chapter-item.js.map +1 -1
  117. package/dist/features/milestone/milestone-tests/tests-creation/tests-creation.js +50 -46
  118. package/dist/features/milestone/milestone-tests/tests-creation/tests-creation.js.map +1 -1
  119. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item-cta.js +71 -0
  120. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item-cta.js.map +1 -0
  121. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item-styled.js +31 -0
  122. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item-styled.js.map +1 -0
  123. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item-utils.js +38 -0
  124. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item-utils.js.map +1 -0
  125. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item.js +79 -0
  126. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item.js.map +1 -0
  127. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheets-list-styled.js +18 -0
  128. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheets-list-styled.js.map +1 -0
  129. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheets-list.js +51 -0
  130. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheets-list.js.map +1 -0
  131. package/dist/features/milestone/milestone-tests/tests-list/tests-list-styled.js +11 -0
  132. package/dist/features/milestone/milestone-tests/tests-list/tests-list-styled.js.map +1 -0
  133. package/dist/features/milestone/milestone-tests/tests-list/tests-list.js +135 -0
  134. package/dist/features/milestone/milestone-tests/tests-list/tests-list.js.map +1 -0
  135. package/dist/features/sheets/resources-list/resource-item/styled.js +1 -1
  136. package/dist/features/sheets/resources-list/resource-item/styled.js.map +1 -1
  137. package/dist/features/sheets/sheets-list/sheet-item/reward-n-actions/teacher-actions/teacher-actions-constant.js +3 -4
  138. package/dist/features/sheets/sheets-list/sheet-item/reward-n-actions/teacher-actions/teacher-actions-constant.js.map +1 -1
  139. package/dist/features/trial-session/comps/learning-plan/index.js.map +1 -1
  140. package/dist/features/ui/arrow-tooltip/arrow-tooltip.js +29 -30
  141. package/dist/features/ui/arrow-tooltip/arrow-tooltip.js.map +1 -1
  142. package/dist/features/ui/constants/z-index.js +1 -1
  143. package/dist/features/ui/constants/z-index.js.map +1 -1
  144. package/dist/features/ui/context-menu/context-menu-styled.js +14 -28
  145. package/dist/features/ui/context-menu/context-menu-styled.js.map +1 -1
  146. package/dist/features/ui/context-menu/context-menu.js +15 -30
  147. package/dist/features/ui/context-menu/context-menu.js.map +1 -1
  148. package/dist/features/ui/lottie-animation/lottie-animation.js +13 -19
  149. package/dist/features/ui/lottie-animation/lottie-animation.js.map +1 -1
  150. package/dist/features/ui/theme/button.js +107 -22
  151. package/dist/features/ui/theme/button.js.map +1 -1
  152. package/dist/features/worksheet/worksheet/hooks/use-create-imperative-handle.js +96 -78
  153. package/dist/features/worksheet/worksheet/hooks/use-create-imperative-handle.js.map +1 -1
  154. package/dist/features/worksheet/worksheet/worksheet-question/learnosity-question.js +79 -47
  155. package/dist/features/worksheet/worksheet/worksheet-question/learnosity-question.js.map +1 -1
  156. package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question.js +150 -147
  157. package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question.js.map +1 -1
  158. package/dist/features/worksheet/worksheet/worksheet-types.js.map +1 -1
  159. package/dist/features/worksheet/worksheet/worksheet.js +325 -300
  160. package/dist/features/worksheet/worksheet/worksheet.js.map +1 -1
  161. package/dist/index.d.ts +46 -351
  162. package/dist/index.js +471 -503
  163. package/dist/index.js.map +1 -1
  164. package/package.json +1 -1
  165. package/dist/assets/line-icons/icons/alarm.js +0 -41
  166. package/dist/assets/line-icons/icons/alarm.js.map +0 -1
  167. package/dist/assets/line-icons/icons/dart.js +0 -23
  168. package/dist/assets/line-icons/icons/dart.js.map +0 -1
  169. package/dist/assets/line-icons/icons/exclamation.js +0 -26
  170. package/dist/assets/line-icons/icons/exclamation.js.map +0 -1
  171. package/dist/assets/line-icons/icons/home2.js +0 -25
  172. package/dist/assets/line-icons/icons/home2.js.map +0 -1
  173. package/dist/assets/line-icons/icons/important.js +0 -23
  174. package/dist/assets/line-icons/icons/important.js.map +0 -1
  175. package/dist/assets/line-icons/icons/puzzle.js +0 -25
  176. package/dist/assets/line-icons/icons/puzzle.js.map +0 -1
  177. package/dist/assets/line-icons/icons/recap.js +0 -32
  178. package/dist/assets/line-icons/icons/recap.js.map +0 -1
  179. package/dist/assets/line-icons/icons/skip-colored.js +0 -43
  180. package/dist/assets/line-icons/icons/skip-colored.js.map +0 -1
  181. package/dist/assets/line-icons/icons/status.js +0 -41
  182. package/dist/assets/line-icons/icons/status.js.map +0 -1
  183. package/dist/assets/line-icons/icons/testtube.js +0 -33
  184. package/dist/assets/line-icons/icons/testtube.js.map +0 -1
  185. package/dist/features/chapters-v2/api/chapter.js +0 -10
  186. package/dist/features/chapters-v2/api/chapter.js.map +0 -1
  187. package/dist/features/chapters-v2/chapter-details/block-sections/block-section-view.js +0 -112
  188. package/dist/features/chapters-v2/chapter-details/block-sections/block-section-view.js.map +0 -1
  189. package/dist/features/chapters-v2/chapter-details/block-sections/block-sections-styled.js +0 -35
  190. package/dist/features/chapters-v2/chapter-details/block-sections/block-sections-styled.js.map +0 -1
  191. package/dist/features/chapters-v2/chapter-details/block-sections/block-sections.js +0 -83
  192. package/dist/features/chapters-v2/chapter-details/block-sections/block-sections.js.map +0 -1
  193. package/dist/features/chapters-v2/chapter-details/chapter-banner/chapter-banner-styled.js +0 -90
  194. package/dist/features/chapters-v2/chapter-details/chapter-banner/chapter-banner-styled.js.map +0 -1
  195. package/dist/features/chapters-v2/chapter-details/chapter-banner/chapter-banner.js +0 -98
  196. package/dist/features/chapters-v2/chapter-details/chapter-banner/chapter-banner.js.map +0 -1
  197. package/dist/features/chapters-v2/chapter-details/chapter-details-styled.js +0 -51
  198. package/dist/features/chapters-v2/chapter-details/chapter-details-styled.js.map +0 -1
  199. package/dist/features/chapters-v2/chapter-details/chapter-details.js +0 -129
  200. package/dist/features/chapters-v2/chapter-details/chapter-details.js.map +0 -1
  201. package/dist/features/chapters-v2/comps/node-card/border-path-animation.js +0 -13
  202. package/dist/features/chapters-v2/comps/node-card/border-path-animation.js.map +0 -1
  203. package/dist/features/chapters-v2/comps/node-card/node-card-styled.js +0 -159
  204. package/dist/features/chapters-v2/comps/node-card/node-card-styled.js.map +0 -1
  205. package/dist/features/chapters-v2/comps/node-card/node-card-tags.js +0 -16
  206. package/dist/features/chapters-v2/comps/node-card/node-card-tags.js.map +0 -1
  207. package/dist/features/chapters-v2/comps/node-card/node-card.js +0 -12
  208. package/dist/features/chapters-v2/comps/node-card/node-card.js.map +0 -1
  209. package/dist/features/chapters-v2/comps/node-card/node-menu-options/node-menu-option.js +0 -30
  210. package/dist/features/chapters-v2/comps/node-card/node-menu-options/node-menu-option.js.map +0 -1
  211. package/dist/features/chapters-v2/comps/node-card/node-menu-options/node-menu-options-styled.js +0 -32
  212. package/dist/features/chapters-v2/comps/node-card/node-menu-options/node-menu-options-styled.js.map +0 -1
  213. package/dist/features/chapters-v2/comps/node-card/node-menu-options/node-menu-options.js +0 -9
  214. package/dist/features/chapters-v2/comps/node-card/node-menu-options/node-menu-options.js.map +0 -1
  215. package/dist/features/chapters-v2/comps/node-card/student-actions/student-actions.js +0 -189
  216. package/dist/features/chapters-v2/comps/node-card/student-actions/student-actions.js.map +0 -1
  217. package/dist/features/chapters-v2/comps/node-card/teacher-actions/teacher-actions.js +0 -194
  218. package/dist/features/chapters-v2/comps/node-card/teacher-actions/teacher-actions.js.map +0 -1
  219. package/dist/features/chapters-v2/comps/tag/tag-styled.js +0 -13
  220. package/dist/features/chapters-v2/comps/tag/tag-styled.js.map +0 -1
  221. package/dist/features/chapters-v2/comps/tag/tag.js +0 -28
  222. package/dist/features/chapters-v2/comps/tag/tag.js.map +0 -1
  223. package/dist/features/chapters-v2/constants/block-constants.js +0 -20
  224. package/dist/features/chapters-v2/constants/block-constants.js.map +0 -1
  225. package/dist/features/chapters-v2/constants/node-constants.js +0 -14
  226. package/dist/features/chapters-v2/constants/node-constants.js.map +0 -1
  227. package/dist/features/chapters-v2/utils/index.js +0 -38
  228. package/dist/features/chapters-v2/utils/index.js.map +0 -1
  229. package/dist/features/chapters-v2/utils/node-card-utils.js +0 -177
  230. package/dist/features/chapters-v2/utils/node-card-utils.js.map +0 -1
  231. package/dist/features/homework/card-menu-option.js +0 -28
  232. package/dist/features/homework/card-menu-option.js.map +0 -1
  233. package/dist/features/homework/card-menu-options.js +0 -22
  234. package/dist/features/homework/card-menu-options.js.map +0 -1
  235. package/dist/features/homework/card-title.js +0 -16
  236. package/dist/features/homework/card-title.js.map +0 -1
  237. package/dist/features/homework/homework-analytics-events.js +0 -10
  238. package/dist/features/homework/homework-analytics-events.js.map +0 -1
  239. package/dist/features/homework/homework-card-view.js +0 -143
  240. package/dist/features/homework/homework-card-view.js.map +0 -1
  241. package/dist/features/homework/homework-card.js +0 -245
  242. package/dist/features/homework/homework-card.js.map +0 -1
  243. package/dist/features/homework/hw-card-list/api/get-homeworks.js +0 -10
  244. package/dist/features/homework/hw-card-list/api/get-homeworks.js.map +0 -1
  245. package/dist/features/homework/hw-card-list/hw-card-list-styled.js +0 -63
  246. package/dist/features/homework/hw-card-list/hw-card-list-styled.js.map +0 -1
  247. package/dist/features/homework/hw-card-list/hw-card-list-view.js +0 -157
  248. package/dist/features/homework/hw-card-list/hw-card-list-view.js.map +0 -1
  249. package/dist/features/homework/hw-card-list/hw-card-list.js +0 -67
  250. package/dist/features/homework/hw-card-list/hw-card-list.js.map +0 -1
  251. package/dist/features/homework/node-progress.js +0 -29
  252. package/dist/features/homework/node-progress.js.map +0 -1
  253. package/dist/features/homework/styles.js +0 -130
  254. package/dist/features/homework/styles.js.map +0 -1
  255. package/dist/features/homework/utils.js +0 -48
  256. package/dist/features/homework/utils.js.map +0 -1
  257. package/dist/features/journey/hooks/use-chapter-journey.js +0 -194
  258. package/dist/features/journey/hooks/use-chapter-journey.js.map +0 -1
  259. package/dist/features/journey/hooks/use-home-page-journey.js +0 -289
  260. package/dist/features/journey/hooks/use-home-page-journey.js.map +0 -1
  261. package/dist/features/journey/journey-id/journey-id-teacher.js +0 -5
  262. package/dist/features/journey/journey-id/journey-id-teacher.js.map +0 -1
  263. package/dist/features/journey/mocks/chapter-page-journey-mock-data.js +0 -587
  264. package/dist/features/journey/mocks/chapter-page-journey-mock-data.js.map +0 -1
  265. package/dist/features/journey/mocks/home-page-homwworks-mock.js +0 -268
  266. package/dist/features/journey/mocks/home-page-homwworks-mock.js.map +0 -1
  267. package/dist/features/journey/mocks/recent-chapters-mock.js +0 -531
  268. package/dist/features/journey/mocks/recent-chapters-mock.js.map +0 -1
  269. package/dist/features/milestone/milestone-tests/test-list-v2/test-list-container.js +0 -165
  270. package/dist/features/milestone/milestone-tests/test-list-v2/test-list-container.js.map +0 -1
  271. package/dist/features/milestone/milestone-tests/test-list-v2/test-list-view-styled.js +0 -25
  272. package/dist/features/milestone/milestone-tests/test-list-v2/test-list-view-styled.js.map +0 -1
  273. package/dist/features/milestone/milestone-tests/test-list-v2/test-list-view.js +0 -87
  274. package/dist/features/milestone/milestone-tests/test-list-v2/test-list-view.js.map +0 -1
  275. package/dist/features/recent-chapters/api/get-recent-chapters.js +0 -9
  276. package/dist/features/recent-chapters/api/get-recent-chapters.js.map +0 -1
  277. package/dist/features/recent-chapters/recent-chapters-styled.js +0 -16
  278. package/dist/features/recent-chapters/recent-chapters-styled.js.map +0 -1
  279. package/dist/features/recent-chapters/recent-chapters.js +0 -39
  280. package/dist/features/recent-chapters/recent-chapters.js.map +0 -1
  281. package/dist/features/sheet-v2/resource-list/resource-list.js +0 -45
  282. package/dist/features/sheet-v2/resource-list/resource-list.js.map +0 -1
  283. package/dist/node_modules/date-fns/differenceInDays.js +0 -17
  284. package/dist/node_modules/date-fns/differenceInDays.js.map +0 -1
  285. package/dist/static/chapter-header-bg-2.c8d96894.svg +0 -1
  286. package/dist/static/competitive-arena.b9c40801.json +0 -1
  287. package/dist/static/learn.71b13323.json +0 -1
  288. package/dist/static/node-custom-test-bg.d3b757be.svg +0 -1
  289. package/dist/static/node-learn-bg.b61f815c.svg +0 -1
  290. package/dist/static/node-practice-bg.16cbaf2a.svg +0 -1
  291. package/dist/static/node-project-bg.e6a33e28.svg +0 -1
  292. package/dist/static/node-puzzle-bg.3422135c.svg +0 -1
  293. package/dist/static/node-recap-bg.546154e4.svg +0 -1
  294. package/dist/static/node-test-prep-bg.42c0b9c4.svg +0 -1
  295. package/dist/static/node-video-bg.3df3f73a.svg +0 -1
  296. package/dist/static/practice.158dd488.json +0 -1
  297. package/dist/static/project.eb665827.json +0 -1
  298. package/dist/static/puzzle.b298c7e4.json +0 -1
  299. package/dist/static/recap.0dd2c1e2.json +0 -1
  300. package/dist/static/test.803d6036.json +0 -1
  301. package/dist/static/video.b41451e2.json +0 -1
@@ -1,194 +0,0 @@
1
- import { jsx as e, jsxs as n } from "react/jsx-runtime";
2
- import { useRef as s, useCallback as C, useMemo as P, useEffect as _ } from "react";
3
- import X from "../../chapters-v2/chapter-details/block-sections/block-sections.js";
4
- import x from "../../chapters-v2/chapter-details/chapter-banner/chapter-banner.js";
5
- import I from "../../chapters-v2/chapter-details/chapter-details.js";
6
- import a from "../../ui/buttons/button/button.js";
7
- import l from "../../ui/layout/flex-view.js";
8
- import c from "../../ui/text/text.js";
9
- import { JOURNEY_ID_STUDENT as K } from "../journey-id/journey-id-student.js";
10
- import { PROGRESS_STAT_MOCK as y, BLOCK_MOCKS as H } from "../mocks/chapter-page-journey-mock-data.js";
11
- import { IndicatorType as d } from "../use-journey/constants.js";
12
- import { useJourney as $ } from "../use-journey/use-journey.js";
13
- const q = () => {
14
- const o = K.CHAPTER_PAGE_JOURNEY, t = s(null), r = s(null), m = s(null), h = s([]), { nextCoachmark: g, setJourney: f, endJourney: A } = $(), i = C(() => {
15
- g(o, !1, 0, !0);
16
- }, [o, g]), w = C(() => {
17
- A(o);
18
- }, [A, o]), T = C(
19
- ({ chapterDetails: p, userChapterId: B, studentId: L, userType: b }) => {
20
- const { name: O, image_hue: u, image_url: R } = p;
21
- if (!(t != null && t.current) || !(r != null && r.current) || !m.current)
22
- return;
23
- const S = t.current.getBoundingClientRect(), N = [
24
- {
25
- originalElementToHighlightRef: t,
26
- isActive: !1,
27
- type: d.TOOLTIP,
28
- elementToHighlight: /* @__PURE__ */ e(
29
- I,
30
- {
31
- userChapterId: B,
32
- studentId: L,
33
- userType: b,
34
- onBlockSkipUnskip: () => null,
35
- onNodeAttempt: () => null,
36
- onNodeAttemptLocationChange: () => null,
37
- onNodeMarkAsDone: () => null,
38
- onNodeReattempt: () => null,
39
- onNodeReview: () => null,
40
- onNodeView: () => null,
41
- onExit: () => null
42
- }
43
- ),
44
- indicator: {
45
- position: "left",
46
- tooltipYCoOrdinates: -(S.height / 2) + 178,
47
- backgroundColor: "BLUE_4",
48
- borderColor: "BLACK",
49
- arrowColor: "BLACK",
50
- arrowSize: 12,
51
- width: 264,
52
- tooltipItem: /* @__PURE__ */ n(l, { $flexRowGapX: 0.75, children: [
53
- /* @__PURE__ */ e(c, { $renderAs: "ab2-bold", children: "Welcome to the all new chapter experience." }),
54
- /* @__PURE__ */ e(
55
- a,
56
- {
57
- label: "Next",
58
- size: "xsmall",
59
- widthX: 6,
60
- renderAs: "secondary",
61
- onClick: i
62
- }
63
- )
64
- ] })
65
- }
66
- },
67
- {
68
- originalElementToHighlightRef: r,
69
- elementToHighlight: /* @__PURE__ */ e(
70
- x,
71
- {
72
- title: O,
73
- progressStats: y,
74
- imageUrl: R,
75
- imageHue: u
76
- }
77
- ),
78
- type: d.TOOLTIP,
79
- indicator: {
80
- position: "bottom",
81
- tooltipXCoOrdinates: -45,
82
- tooltipYCoOrdinates: -40,
83
- backgroundColor: "ORANGE_4",
84
- borderColor: "BLACK",
85
- arrowColor: "BLACK",
86
- width: 264,
87
- arrowSize: 12,
88
- tooltipItem: /* @__PURE__ */ n(l, { $flexRowGapX: 0.75, children: [
89
- /* @__PURE__ */ e(c, { $renderAs: "ab2-bold", children: "A chapter is divided into *core sheets (compulsory), and supplementary sheets." }),
90
- /* @__PURE__ */ e(
91
- a,
92
- {
93
- label: "Next",
94
- size: "xsmall",
95
- widthX: 6,
96
- renderAs: "secondary",
97
- onClick: i
98
- }
99
- )
100
- ] })
101
- },
102
- isActive: !1
103
- },
104
- {
105
- originalElementToHighlightRef: r,
106
- elementToHighlight: /* @__PURE__ */ e(
107
- x,
108
- {
109
- title: O,
110
- progressStats: y,
111
- imageUrl: R,
112
- imageHue: u
113
- }
114
- ),
115
- type: d.TOOLTIP,
116
- indicator: {
117
- position: "bottom",
118
- tooltipXCoOrdinates: -275,
119
- tooltipYCoOrdinates: -15,
120
- backgroundColor: "PURPLE_4",
121
- borderColor: "BLACK",
122
- arrowColor: "BLACK",
123
- arrowSize: 12,
124
- width: 264,
125
- tooltipItem: /* @__PURE__ */ n(l, { $flexRowGapX: 0.75, children: [
126
- /* @__PURE__ */ e(c, { $renderAs: "ab2-bold", children: "Easily track the progress of the core sheets." }),
127
- /* @__PURE__ */ e(
128
- a,
129
- {
130
- label: "Next",
131
- size: "xsmall",
132
- widthX: 6,
133
- renderAs: "secondary",
134
- onClick: i
135
- }
136
- )
137
- ] })
138
- },
139
- isActive: !1
140
- },
141
- {
142
- originalElementToHighlightRef: m,
143
- elementToHighlight: /* @__PURE__ */ e(l, { $widthX: 50, children: /* @__PURE__ */ e(X, { userType: b, blocks: H, imageHue: u }) }),
144
- type: d.TOOLTIP,
145
- indicator: {
146
- position: "top",
147
- tooltipXCoOrdinates: -150,
148
- tooltipYCoOrdinates: -260,
149
- backgroundColor: "PURPLE_4",
150
- borderColor: "BLACK",
151
- arrowColor: "BLACK",
152
- arrowSize: 12,
153
- width: 264,
154
- tooltipItem: /* @__PURE__ */ n(l, { $flexRowGapX: 0.75, children: [
155
- /* @__PURE__ */ e(c, { $renderAs: "ab2-bold", children: "Easily track the progress of the core sheets." }),
156
- /* @__PURE__ */ e(
157
- a,
158
- {
159
- label: "Got it",
160
- size: "xsmall",
161
- widthX: 6,
162
- renderAs: "secondary",
163
- onClick: w
164
- }
165
- )
166
- ] })
167
- },
168
- isActive: !1
169
- }
170
- ];
171
- f(o, N);
172
- const k = setTimeout(() => {
173
- clearTimeout(k), i();
174
- }, 500);
175
- h.current.push(k);
176
- },
177
- [i, w, f, o]
178
- ), E = P(
179
- () => ({
180
- chapterPageRef: t,
181
- bannerRef: r,
182
- coreBlocksRef: m,
183
- startJourney: T
184
- }),
185
- [T]
186
- );
187
- return _(() => () => {
188
- h.current.forEach((p) => clearTimeout(p)), h.current = [];
189
- }, []), E;
190
- };
191
- export {
192
- q as useChapterPageJourney
193
- };
194
- //# sourceMappingURL=use-chapter-journey.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-chapter-journey.js","sources":["../../../../src/features/journey/hooks/use-chapter-journey.tsx"],"sourcesContent":["import type { IUserChapterData } from '../../chapters-v2/chapter-details/chapter-details-types';\nimport type { IArrowTooltipProps } from '../../ui/arrow-tooltip/arrow-tooltip-types';\nimport type { TUserTypes } from '../../ui/types';\nimport type { ICoachmarkProps } from '../use-journey/journey-context-types';\n\nimport { useCallback, useEffect, useMemo, useRef } from 'react';\n\nimport BlockSections from '../../chapters-v2/chapter-details/block-sections/block-sections';\nimport ChapterBanner from '../../chapters-v2/chapter-details/chapter-banner/chapter-banner';\nimport ChapterDetails from '../../chapters-v2/chapter-details/chapter-details';\nimport Button from '../../ui/buttons/button/button';\nimport FlexView from '../../ui/layout/flex-view';\nimport Text from '../../ui/text/text';\nimport { JOURNEY_ID_STUDENT } from '../journey-id/journey-id-student';\nimport { BLOCK_MOCKS, PROGRESS_STAT_MOCK } from '../mocks/chapter-page-journey-mock-data';\nimport { IndicatorType } from '../use-journey/constants';\nimport { useJourney } from '../use-journey/use-journey';\n\ninterface IChapterStartJourneyProps {\n chapterDetails: IUserChapterData;\n userChapterId: string;\n studentId: string;\n userType: TUserTypes;\n}\n\nexport const useChapterPageJourney = () => {\n const journeyId = JOURNEY_ID_STUDENT.CHAPTER_PAGE_JOURNEY;\n\n const chapterPageRef = useRef<HTMLDivElement>(null);\n const bannerRef = useRef<HTMLDivElement>(null);\n const coreBlocksRef = useRef<HTMLDivElement>(null);\n const timerRefs = useRef<ReturnType<typeof setTimeout>[]>([]);\n const { nextCoachmark, setJourney, endJourney } = useJourney();\n\n const handleNextCoachmark = useCallback(() => {\n nextCoachmark(journeyId, false, 0, true);\n }, [journeyId, nextCoachmark]);\n\n const handleEndJourney = useCallback(() => {\n endJourney(journeyId);\n }, [endJourney, journeyId]);\n\n const startJourney = useCallback(\n ({ chapterDetails, userChapterId, studentId, userType }: IChapterStartJourneyProps) => {\n const { name, image_hue: imageHue, image_url: imageUrl } = chapterDetails;\n\n if (!chapterPageRef?.current || !bannerRef?.current || !coreBlocksRef.current) {\n return;\n }\n\n const chapterPageRect = chapterPageRef.current.getBoundingClientRect();\n\n const chapterPageSteps: ICoachmarkProps[] = [\n {\n originalElementToHighlightRef: chapterPageRef,\n isActive: false,\n type: IndicatorType.TOOLTIP,\n elementToHighlight: (\n <ChapterDetails\n userChapterId={userChapterId}\n studentId={studentId}\n userType={userType}\n onBlockSkipUnskip={() => null}\n onNodeAttempt={() => null}\n onNodeAttemptLocationChange={() => null}\n onNodeMarkAsDone={() => null}\n onNodeReattempt={() => null}\n onNodeReview={() => null}\n onNodeView={() => null}\n onExit={() => null}\n />\n ),\n indicator: {\n position: 'left',\n tooltipYCoOrdinates: -(chapterPageRect.height / 2) + 178,\n backgroundColor: 'BLUE_4',\n borderColor: 'BLACK',\n arrowColor: 'BLACK',\n arrowSize: 12,\n width: 264,\n tooltipItem: (\n <FlexView $flexRowGapX={0.75}>\n <Text $renderAs=\"ab2-bold\">Welcome to the all new chapter experience.</Text>\n <Button\n label=\"Next\"\n size=\"xsmall\"\n widthX={6}\n renderAs=\"secondary\"\n onClick={handleNextCoachmark}\n />\n </FlexView>\n ),\n } as IArrowTooltipProps,\n },\n {\n originalElementToHighlightRef: bannerRef,\n elementToHighlight: (\n <ChapterBanner\n title={name}\n progressStats={PROGRESS_STAT_MOCK}\n imageUrl={imageUrl}\n imageHue={imageHue}\n />\n ),\n type: IndicatorType.TOOLTIP,\n indicator: {\n position: 'bottom',\n tooltipXCoOrdinates: -45,\n tooltipYCoOrdinates: -40,\n backgroundColor: 'ORANGE_4',\n borderColor: 'BLACK',\n arrowColor: 'BLACK',\n width: 264,\n arrowSize: 12,\n tooltipItem: (\n <FlexView $flexRowGapX={0.75}>\n <Text $renderAs=\"ab2-bold\">\n A chapter is divided into *core sheets (compulsory), and supplementary sheets.\n </Text>\n <Button\n label=\"Next\"\n size=\"xsmall\"\n widthX={6}\n renderAs=\"secondary\"\n onClick={handleNextCoachmark}\n />\n </FlexView>\n ),\n } as IArrowTooltipProps,\n isActive: false,\n },\n {\n originalElementToHighlightRef: bannerRef,\n elementToHighlight: (\n <ChapterBanner\n title={name}\n progressStats={PROGRESS_STAT_MOCK}\n imageUrl={imageUrl}\n imageHue={imageHue}\n />\n ),\n type: IndicatorType.TOOLTIP,\n indicator: {\n position: 'bottom',\n tooltipXCoOrdinates: -275,\n tooltipYCoOrdinates: -15,\n backgroundColor: 'PURPLE_4',\n borderColor: 'BLACK',\n arrowColor: 'BLACK',\n arrowSize: 12,\n width: 264,\n tooltipItem: (\n <FlexView $flexRowGapX={0.75}>\n <Text $renderAs=\"ab2-bold\">Easily track the progress of the core sheets.</Text>\n <Button\n label=\"Next\"\n size=\"xsmall\"\n widthX={6}\n renderAs=\"secondary\"\n onClick={handleNextCoachmark}\n />\n </FlexView>\n ),\n } as IArrowTooltipProps,\n isActive: false,\n },\n {\n originalElementToHighlightRef: coreBlocksRef,\n elementToHighlight: (\n <FlexView $widthX={50}>\n <BlockSections userType={userType} blocks={BLOCK_MOCKS} imageHue={imageHue} />\n </FlexView>\n ),\n type: IndicatorType.TOOLTIP,\n indicator: {\n position: 'top',\n tooltipXCoOrdinates: -150,\n tooltipYCoOrdinates: -260,\n backgroundColor: 'PURPLE_4',\n borderColor: 'BLACK',\n arrowColor: 'BLACK',\n arrowSize: 12,\n width: 264,\n tooltipItem: (\n <FlexView $flexRowGapX={0.75}>\n <Text $renderAs=\"ab2-bold\">Easily track the progress of the core sheets.</Text>\n <Button\n label=\"Got it\"\n size=\"xsmall\"\n widthX={6}\n renderAs=\"secondary\"\n onClick={handleEndJourney}\n />\n </FlexView>\n ),\n } as IArrowTooltipProps,\n isActive: false,\n },\n ];\n\n setJourney(journeyId, chapterPageSteps);\n\n const delayBeforeStart = setTimeout(() => {\n clearTimeout(delayBeforeStart);\n handleNextCoachmark();\n }, 500);\n\n timerRefs.current.push(delayBeforeStart);\n },\n [handleNextCoachmark, handleEndJourney, setJourney, journeyId],\n );\n\n const data = useMemo(\n () => ({\n chapterPageRef,\n bannerRef,\n coreBlocksRef,\n startJourney,\n }),\n [startJourney],\n );\n\n useEffect(() => {\n return () => {\n timerRefs.current.forEach(timer => clearTimeout(timer));\n timerRefs.current = [];\n };\n }, []);\n\n return data;\n};\n"],"names":["useChapterPageJourney","journeyId","JOURNEY_ID_STUDENT","chapterPageRef","useRef","bannerRef","coreBlocksRef","timerRefs","nextCoachmark","setJourney","endJourney","useJourney","handleNextCoachmark","useCallback","handleEndJourney","startJourney","chapterDetails","userChapterId","studentId","userType","name","imageHue","imageUrl","chapterPageRect","chapterPageSteps","IndicatorType","jsx","ChapterDetails","jsxs","FlexView","Text","Button","ChapterBanner","PROGRESS_STAT_MOCK","BlockSections","BLOCK_MOCKS","delayBeforeStart","data","useMemo","useEffect","timer"],"mappings":";;;;;;;;;;;;AAyBO,MAAMA,IAAwB,MAAM;AACzC,QAAMC,IAAYC,EAAmB,sBAE/BC,IAAiBC,EAAuB,IAAI,GAC5CC,IAAYD,EAAuB,IAAI,GACvCE,IAAgBF,EAAuB,IAAI,GAC3CG,IAAYH,EAAwC,CAAA,CAAE,GACtD,EAAE,eAAAI,GAAe,YAAAC,GAAY,YAAAC,MAAeC,EAAW,GAEvDC,IAAsBC,EAAY,MAAM;AAC9B,IAAAL,EAAAP,GAAW,IAAO,GAAG,EAAI;AAA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AAgB;AAAA,IACzC;AAAA,IACA,CAACxB,GAAqBE,GAAkBL,GAAYR,CAAS;AAAA,EAAA,GAGzDoC,IAAOC;AAAA,IACX,OAAO;AAAA,MACL,gBAAAnC;AAAA,MACA,WAAAE;AAAA,MACA,eAAAC;AAAA,MACA,cAAAS;AAAA,IAAA;AAAA,IAEF,CAACA,CAAY;AAAA,EAAA;AAGf,SAAAwB,EAAU,MACD,MAAM;AACX,IAAAhC,EAAU,QAAQ,QAAQ,CAASiC,MAAA,aAAaA,CAAK,CAAC,GACtDjC,EAAU,UAAU;EAAC,GAEtB,CAAE,CAAA,GAEE8B;AACT;"}
@@ -1,289 +0,0 @@
1
- import { jsxs as t, jsx as o } from "react/jsx-runtime";
2
- import { useRef as h, useCallback as p, useMemo as K, useEffect as G } from "react";
3
- import X from "../../chapters/chapters-list/chapter-item/chapter-item.js";
4
- import D from "../../homework/homework-card.js";
5
- import H from "../../homework/hw-card-list/hw-card-list-view.js";
6
- import U from "../../milestone/milestone-list-container/milestone-list-container.js";
7
- import C from "../../ui/buttons/button/button.js";
8
- import r from "../../ui/layout/flex-view.js";
9
- import s from "../../ui/text/text.js";
10
- import { ChaptersWrapper as $, ELementWrapper as A } from "../comps/coachmark/coachmark-styled.js";
11
- import { JOURNEY_ID_STUDENT as z } from "../journey-id/journey-id-student.js";
12
- import { HOMEWORK_DETAILS as w } from "../mocks/home-page-homwworks-mock.js";
13
- import { RECENT_CHAPTERS as f } from "../mocks/recent-chapters-mock.js";
14
- import { IndicatorType as u } from "../use-journey/constants.js";
15
- import { useJourney as J } from "../use-journey/use-journey.js";
16
- const ae = () => {
17
- const n = z.HOMEPAGE_JOURNEY, i = h(null), a = h(null), P = h(null), g = h([]), { nextCoachmark: b, setJourney: O, endJourney: R } = J(), e = p(() => null, []), E = p(() => {
18
- R(n);
19
- }, [R, n]), d = p(() => {
20
- b(n, !1, 0, !0);
21
- }, [b, n]), x = p(
22
- ({ studentId: l, stream: v, userType: c }) => {
23
- var L, y;
24
- const { title: S, subtext: B } = w[0], N = c === "STUDENT";
25
- if (!(i != null && i.current) || !(a != null && a.current))
26
- return;
27
- const _ = [
28
- {
29
- originalElementToHighlightRef: i,
30
- isActive: !1,
31
- type: u.TOOLTIP,
32
- elementToHighlight: /* @__PURE__ */ t(
33
- r,
34
- {
35
- $flexGapX: 2.5,
36
- $marginBottomX: 8,
37
- $background: "WHITE",
38
- $widthX: 47,
39
- $gutterX: 1,
40
- children: [
41
- /* @__PURE__ */ o(
42
- H,
43
- {
44
- userType: c,
45
- studentId: l,
46
- isHwProcessing: !1,
47
- hwDetails: w,
48
- onTestStart: e,
49
- onNodeAttempt: e,
50
- onTestPreview: e,
51
- onNodeView: e,
52
- onTestReview: e,
53
- onNodeReview: e,
54
- onNodeUnassign: e
55
- }
56
- ),
57
- /* @__PURE__ */ t(r, { $flexRowGapX: 1, ref: P, children: [
58
- /* @__PURE__ */ t(s, { $renderAs: "ac4-black", $color: "BLACK_T_60", children: [
59
- "Recent Chapters (",
60
- (L = f) == null ? void 0 : L.length,
61
- ")"
62
- ] }),
63
- /* @__PURE__ */ o($, { children: f.map((m, T) => /* @__PURE__ */ o(
64
- X,
65
- {
66
- chapter: m,
67
- onChapterClick: e,
68
- itemIndex: T
69
- },
70
- m.id
71
- )) })
72
- ] }),
73
- /* @__PURE__ */ o(
74
- U,
75
- {
76
- milestoneType: "ACTIVE",
77
- activeMilestoneId: "",
78
- activeTabId: "",
79
- canCreatePlan: !1,
80
- courseStream: v,
81
- isClassOngoing: !1,
82
- isStudentPresent: !1,
83
- parentName: "",
84
- studentId: l,
85
- studentName: "",
86
- teacherName: "",
87
- userType: c,
88
- onAddChapter: e,
89
- onAddOutcome: e,
90
- onChapterClick: e,
91
- onCreatePlan: e,
92
- onDelete: e,
93
- onDraftPublish: e,
94
- onEdit: e,
95
- onExpandPastMilestones: e,
96
- onNodeView: e,
97
- onNodeReview: e,
98
- onWidgetTabSelection: e,
99
- onAssignResources: e,
100
- onNodeReset: e,
101
- onNodeUnassign: e,
102
- onCreateMilestoneTest: e,
103
- onTestPreview: e,
104
- onTestReview: e
105
- }
106
- )
107
- ]
108
- }
109
- ),
110
- indicator: {
111
- position: "top",
112
- tooltipXCoOrdinates: 0,
113
- tooltipYCoOrdinates: 0,
114
- backgroundColor: "BLUE_4",
115
- borderColor: "BLACK",
116
- arrowColor: "BLACK",
117
- arrowSize: 12,
118
- width: 264,
119
- tooltipItem: /* @__PURE__ */ t(r, { $flexRowGapX: 0.75, children: [
120
- /* @__PURE__ */ o(s, { $renderAs: "ab2-bold", children: N ? "Welcome to the all new learning homepage." : "Welcome to the all new tutoring homepage." }),
121
- /* @__PURE__ */ o(
122
- C,
123
- {
124
- label: "Next",
125
- size: "xsmall",
126
- widthX: 6,
127
- renderAs: "secondary",
128
- onClick: d
129
- }
130
- )
131
- ] })
132
- }
133
- },
134
- {
135
- originalElementToHighlightRef: a,
136
- elementToHighlight: /* @__PURE__ */ o(A, { children: /* @__PURE__ */ o(
137
- H,
138
- {
139
- userType: c,
140
- studentId: l,
141
- isHwProcessing: !1,
142
- hwDetails: w,
143
- onTestStart: e,
144
- onNodeAttempt: e,
145
- onTestPreview: e,
146
- onNodeView: e,
147
- onTestReview: e,
148
- onNodeReview: e,
149
- onNodeUnassign: e
150
- }
151
- ) }),
152
- type: u.TOOLTIP,
153
- indicator: {
154
- position: "top",
155
- tooltipXCoOrdinates: -197,
156
- tooltipYCoOrdinates: -12,
157
- arrowXCoOrdinates: -110,
158
- backgroundColor: "GREEN_4",
159
- borderColor: "BLACK",
160
- arrowColor: "BLACK",
161
- width: 264,
162
- arrowSize: 12,
163
- tooltipItem: /* @__PURE__ */ t(r, { $flexRowGapX: 0.75, children: [
164
- /* @__PURE__ */ o(s, { $renderAs: "ab2-bold", children: N ? "Homework is now easy to access and easy to complete!" : "Homework is now easy to access and easy to review!" }),
165
- /* @__PURE__ */ o(
166
- C,
167
- {
168
- label: "Next",
169
- size: "xsmall",
170
- widthX: 6,
171
- renderAs: "secondary",
172
- onClick: d
173
- }
174
- )
175
- ] })
176
- },
177
- isActive: !1
178
- },
179
- {
180
- originalElementToHighlightRef: a,
181
- elementToHighlight: /* @__PURE__ */ o(A, { children: /* @__PURE__ */ o(
182
- D,
183
- {
184
- isInQueue: !1,
185
- userType: c,
186
- header: S,
187
- subHeader: B || "",
188
- nodeData: w[0],
189
- renderAs: "homework",
190
- studentId: l,
191
- shouldOpenOnRight: !1
192
- }
193
- ) }),
194
- type: u.TOOLTIP,
195
- indicator: {
196
- position: "top",
197
- tooltipXCoOrdinates: -35,
198
- tooltipYCoOrdinates: -7,
199
- backgroundColor: "PURPLE_4",
200
- borderColor: "BLACK",
201
- arrowColor: "BLACK",
202
- arrowXCoOrdinates: -97,
203
- arrowSize: 12,
204
- width: 264,
205
- tooltipItem: /* @__PURE__ */ t(r, { $flexRowGapX: 0.75, children: [
206
- /* @__PURE__ */ o(s, { $renderAs: "ab2-bold", children: "Track homework status and their due dates." }),
207
- /* @__PURE__ */ o(
208
- C,
209
- {
210
- label: "Next",
211
- size: "xsmall",
212
- widthX: 6,
213
- renderAs: "secondary",
214
- onClick: d
215
- }
216
- )
217
- ] })
218
- },
219
- isActive: !1
220
- },
221
- {
222
- originalElementToHighlightRef: i,
223
- elementToHighlight: /* @__PURE__ */ o(A, { children: /* @__PURE__ */ t(r, { $flexRowGapX: 1, children: [
224
- /* @__PURE__ */ t(s, { $renderAs: "ac4-black", $color: "BLACK_T_60", children: [
225
- "Recent Chapters (",
226
- (y = f) == null ? void 0 : y.length,
227
- ")"
228
- ] }),
229
- /* @__PURE__ */ o($, { children: f.map((m, T) => /* @__PURE__ */ o(
230
- X,
231
- {
232
- chapter: m,
233
- onChapterClick: e,
234
- itemIndex: T
235
- },
236
- m.id
237
- )) })
238
- ] }) }),
239
- type: u.TOOLTIP,
240
- indicator: {
241
- position: "top",
242
- tooltipXCoOrdinates: -200,
243
- tooltipYCoOrdinates: -10,
244
- backgroundColor: "YELLOW_4",
245
- borderColor: "BLACK",
246
- arrowColor: "BLACK",
247
- arrowXCoOrdinates: -97,
248
- arrowSize: 12,
249
- width: 264,
250
- tooltipItem: /* @__PURE__ */ t(r, { $flexRowGapX: 0.75, $justifyContent: "flex-start", children: [
251
- /* @__PURE__ */ o(s, { $renderAs: "ab2-bold", children: "Access all your recent chapters in one place." }),
252
- /* @__PURE__ */ o(
253
- C,
254
- {
255
- label: "Got it",
256
- size: "xsmall",
257
- widthX: 6,
258
- renderAs: "secondary",
259
- onClick: E
260
- }
261
- )
262
- ] })
263
- },
264
- isActive: !1
265
- }
266
- ];
267
- O(n, _);
268
- const k = setTimeout(() => {
269
- clearTimeout(k), d();
270
- }, 200);
271
- g.current.push(k);
272
- },
273
- [E, e, d, n, O]
274
- ), I = K(
275
- () => ({
276
- homepageRef: i,
277
- homeworkRef: a,
278
- startJourney: x
279
- }),
280
- [x]
281
- );
282
- return G(() => () => {
283
- g.current.forEach((l) => clearTimeout(l)), g.current = [];
284
- }, []), I;
285
- };
286
- export {
287
- ae as useHomePageJourney
288
- };
289
- //# sourceMappingURL=use-home-page-journey.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-home-page-journey.js","sources":["../../../../src/features/journey/hooks/use-home-page-journey.tsx"],"sourcesContent":["import type { INodeDataProps } from '../../chapters-v2/comps/node-card/node-card-types';\nimport type { IChapterDataProps } from '../../chapters/chapter/chapter-types';\nimport type { TCourseStream } from '../../milestone/create/milestone-create-types';\nimport type { IArrowTooltipProps } from '../../ui/arrow-tooltip/arrow-tooltip-types';\nimport type { IHomepageStartJourneyProps } from '../types/homepage-journey-types';\nimport type { ICoachmarkProps } from '../use-journey/journey-context-types';\n\nimport { useCallback, useEffect, useMemo, useRef } from 'react';\n\nimport ChapterItem from '../../chapters/chapters-list/chapter-item/chapter-item';\nimport HomeworkCard from '../../homework/homework-card';\nimport HwCardListView from '../../homework/hw-card-list/hw-card-list-view';\nimport MilestoneListContainer from '../../milestone/milestone-list-container/milestone-list-container';\nimport Button from '../../ui/buttons/button/button';\nimport FlexView from '../../ui/layout/flex-view';\nimport Text from '../../ui/text/text';\nimport { ELementWrapper, ChaptersWrapper } from '../comps/coachmark/coachmark-styled';\nimport { JOURNEY_ID_STUDENT } from '../journey-id/journey-id-student';\nimport { HOMEWORK_DETAILS } from '../mocks/home-page-homwworks-mock';\nimport { RECENT_CHAPTERS } from '../mocks/recent-chapters-mock';\nimport { IndicatorType } from '../use-journey/constants';\nimport { useJourney } from '../use-journey/use-journey';\n\nexport const useHomePageJourney = () => {\n const journeyId = JOURNEY_ID_STUDENT.HOMEPAGE_JOURNEY;\n\n const homepageRef = useRef<HTMLDivElement>(null);\n const homeworkRef = useRef<HTMLDivElement>(null);\n const recentChaptersRef = useRef<HTMLDivElement>(null);\n const timerRefs = useRef<ReturnType<typeof setTimeout>[]>([]);\n const { nextCoachmark, setJourney, endJourney } = useJourney();\n\n const emptyFunction = useCallback(() => null, []);\n\n const handleEndJourney = useCallback(() => {\n endJourney(journeyId);\n }, [endJourney, journeyId]);\n\n const handleNextCoachmark = useCallback(() => {\n nextCoachmark(journeyId, false, 0, true);\n }, [nextCoachmark, journeyId]);\n\n const startJourney = useCallback(\n ({ studentId, stream, userType }: IHomepageStartJourneyProps) => {\n const { title, subtext } = HOMEWORK_DETAILS[0] as INodeDataProps;\n const isStudent = userType === 'STUDENT';\n\n if (!homepageRef?.current || !homeworkRef?.current) {\n return;\n }\n\n const homepageSteps: ICoachmarkProps[] = [\n {\n originalElementToHighlightRef: homepageRef,\n isActive: false,\n type: IndicatorType.TOOLTIP,\n elementToHighlight: (\n <FlexView\n $flexGapX={2.5}\n $marginBottomX={8}\n $background=\"WHITE\"\n $widthX={47}\n $gutterX={1}\n >\n <HwCardListView\n userType={userType}\n studentId={studentId}\n isHwProcessing={false}\n hwDetails={HOMEWORK_DETAILS as INodeDataProps[]}\n onTestStart={emptyFunction}\n onNodeAttempt={emptyFunction}\n onTestPreview={emptyFunction}\n onNodeView={emptyFunction}\n onTestReview={emptyFunction}\n onNodeReview={emptyFunction}\n onNodeUnassign={emptyFunction}\n />\n <FlexView $flexRowGapX={1} ref={recentChaptersRef}>\n <Text $renderAs=\"ac4-black\" $color=\"BLACK_T_60\">\n Recent Chapters ({RECENT_CHAPTERS?.length})\n </Text>\n <ChaptersWrapper>\n {RECENT_CHAPTERS.map((chapter, idx) => (\n <ChapterItem\n key={chapter.id}\n chapter={chapter as unknown as IChapterDataProps}\n onChapterClick={emptyFunction}\n itemIndex={idx}\n />\n ))}\n </ChaptersWrapper>\n </FlexView>\n <MilestoneListContainer\n milestoneType=\"ACTIVE\"\n activeMilestoneId={''}\n activeTabId={''}\n canCreatePlan={false}\n courseStream={stream as TCourseStream}\n isClassOngoing={false}\n isStudentPresent={false}\n parentName={''}\n studentId={studentId}\n studentName={''}\n teacherName={''}\n userType={userType}\n //* Callbacks\n onAddChapter={emptyFunction}\n onAddOutcome={emptyFunction}\n onChapterClick={emptyFunction}\n onCreatePlan={emptyFunction}\n onDelete={emptyFunction}\n onDraftPublish={emptyFunction}\n onEdit={emptyFunction}\n onExpandPastMilestones={emptyFunction}\n onNodeView={emptyFunction}\n onNodeReview={emptyFunction}\n onWidgetTabSelection={emptyFunction}\n //* Resource callbacks\n onAssignResources={emptyFunction}\n onNodeReset={emptyFunction}\n onNodeUnassign={emptyFunction}\n //* Tests callbacks\n onCreateMilestoneTest={emptyFunction}\n onTestPreview={emptyFunction}\n onTestReview={emptyFunction}\n />\n </FlexView>\n ),\n indicator: {\n position: 'top',\n tooltipXCoOrdinates: 0,\n tooltipYCoOrdinates: 0,\n backgroundColor: 'BLUE_4',\n borderColor: 'BLACK',\n arrowColor: 'BLACK',\n arrowSize: 12,\n width: 264,\n tooltipItem: (\n <FlexView $flexRowGapX={0.75}>\n <Text $renderAs=\"ab2-bold\">\n {isStudent\n ? 'Welcome to the all new learning homepage.'\n : 'Welcome to the all new tutoring homepage.'}\n </Text>\n <Button\n label=\"Next\"\n size=\"xsmall\"\n widthX={6}\n renderAs=\"secondary\"\n onClick={handleNextCoachmark}\n />\n </FlexView>\n ),\n } as IArrowTooltipProps,\n },\n {\n originalElementToHighlightRef: homeworkRef,\n elementToHighlight: (\n <ELementWrapper>\n <HwCardListView\n userType={userType}\n studentId={studentId}\n isHwProcessing={false}\n hwDetails={HOMEWORK_DETAILS as INodeDataProps[]}\n onTestStart={emptyFunction}\n onNodeAttempt={emptyFunction}\n onTestPreview={emptyFunction}\n onNodeView={emptyFunction}\n onTestReview={emptyFunction}\n onNodeReview={emptyFunction}\n onNodeUnassign={emptyFunction}\n />\n </ELementWrapper>\n ),\n type: IndicatorType.TOOLTIP,\n indicator: {\n position: 'top',\n tooltipXCoOrdinates: -197,\n tooltipYCoOrdinates: -12,\n arrowXCoOrdinates: -110,\n backgroundColor: 'GREEN_4',\n borderColor: 'BLACK',\n arrowColor: 'BLACK',\n width: 264,\n arrowSize: 12,\n tooltipItem: (\n <FlexView $flexRowGapX={0.75}>\n <Text $renderAs=\"ab2-bold\">\n {isStudent\n ? 'Homework is now easy to access and easy to complete!'\n : 'Homework is now easy to access and easy to review!'}\n </Text>\n <Button\n label=\"Next\"\n size=\"xsmall\"\n widthX={6}\n renderAs=\"secondary\"\n onClick={handleNextCoachmark}\n />\n </FlexView>\n ),\n } as IArrowTooltipProps,\n isActive: false,\n },\n {\n originalElementToHighlightRef: homeworkRef,\n elementToHighlight: (\n <ELementWrapper>\n <HomeworkCard\n isInQueue={false}\n userType={userType}\n header={title}\n subHeader={subtext || ''}\n nodeData={HOMEWORK_DETAILS[0] as INodeDataProps}\n renderAs=\"homework\"\n studentId={studentId}\n shouldOpenOnRight={false}\n />\n </ELementWrapper>\n ),\n type: IndicatorType.TOOLTIP,\n indicator: {\n position: 'top',\n tooltipXCoOrdinates: -35,\n tooltipYCoOrdinates: -7,\n backgroundColor: 'PURPLE_4',\n borderColor: 'BLACK',\n arrowColor: 'BLACK',\n arrowXCoOrdinates: -97,\n arrowSize: 12,\n width: 264,\n tooltipItem: (\n <FlexView $flexRowGapX={0.75}>\n <Text $renderAs=\"ab2-bold\">Track homework status and their due dates.</Text>\n <Button\n label=\"Next\"\n size=\"xsmall\"\n widthX={6}\n renderAs=\"secondary\"\n onClick={handleNextCoachmark}\n />\n </FlexView>\n ),\n } as IArrowTooltipProps,\n isActive: false,\n },\n {\n originalElementToHighlightRef: homepageRef,\n elementToHighlight: (\n <ELementWrapper>\n <FlexView $flexRowGapX={1}>\n <Text $renderAs=\"ac4-black\" $color=\"BLACK_T_60\">\n Recent Chapters ({RECENT_CHAPTERS?.length})\n </Text>\n <ChaptersWrapper>\n {RECENT_CHAPTERS.map((chapter, idx) => (\n <ChapterItem\n key={chapter.id}\n chapter={chapter as unknown as IChapterDataProps}\n onChapterClick={emptyFunction}\n itemIndex={idx}\n />\n ))}\n </ChaptersWrapper>\n </FlexView>\n </ELementWrapper>\n ),\n type: IndicatorType.TOOLTIP,\n indicator: {\n position: 'top',\n tooltipXCoOrdinates: -200,\n tooltipYCoOrdinates: -10,\n backgroundColor: 'YELLOW_4',\n borderColor: 'BLACK',\n arrowColor: 'BLACK',\n arrowXCoOrdinates: -97,\n arrowSize: 12,\n width: 264,\n tooltipItem: (\n <FlexView $flexRowGapX={0.75} $justifyContent=\"flex-start\">\n <Text $renderAs=\"ab2-bold\">Access all your recent chapters in one place.</Text>\n <Button\n label=\"Got it\"\n size=\"xsmall\"\n widthX={6}\n renderAs=\"secondary\"\n onClick={handleEndJourney}\n />\n </FlexView>\n ),\n } as IArrowTooltipProps,\n isActive: false,\n },\n ];\n\n setJourney(journeyId, homepageSteps);\n\n const delayBeforeStart = setTimeout(() => {\n clearTimeout(delayBeforeStart);\n handleNextCoachmark();\n }, 200);\n\n timerRefs.current.push(delayBeforeStart); // Store to cleanup later\n },\n [handleEndJourney, emptyFunction, handleNextCoachmark, journeyId, setJourney],\n );\n\n const data = useMemo(\n () => ({\n homepageRef,\n homeworkRef,\n startJourney,\n }),\n [startJourney],\n );\n\n // Cleanup on unmount\n useEffect(() => {\n return () => {\n timerRefs.current.forEach(timer => clearTimeout(timer));\n timerRefs.current = [];\n };\n }, []);\n\n return data;\n};\n"],"names":["useHomePageJourney","journeyId","JOURNEY_ID_STUDENT","homepageRef","useRef","homeworkRef","recentChaptersRef","timerRefs","nextCoachmark","setJourney","endJourney","useJourney","emptyFunction","useCallback","handleEndJourney","handleNextCoachmark","startJourney","studentId","stream","userType","title","subtext","HOMEWORK_DETAILS","isStudent","homepageSteps","IndicatorType","jsxs","FlexView","jsx","HwCardListView","Text","_a","RECENT_CHAPTERS","ChaptersWrapper","chapter","idx","ChapterItem","MilestoneListContainer","Button","ELementWrapper","HomeworkCard","_b","delayBeforeStart","data","useMemo","useEffect","timer"],"mappings":";;;;;;;;;;;;;;;AAuBO,MAAMA,KAAqB,MAAM;AACtC,QAAMC,IAAYC,EAAmB,kBAE/BC,IAAcC,EAAuB,IAAI,GACzCC,IAAcD,EAAuB,IAAI,GACzCE,IAAoBF,EAAuB,IAAI,GAC/CG,IAAYH,EAAwC,CAAA,CAAE,GACtD,EAAE,eAAAI,GAAe,YAAAC,GAAY,YAAAC,MAAeC,EAAW,GAEvDC,IAAgBC,EAAY,MAAM,MAAM,CAAE,CAAA,GAE1CC,IAAmBD,EAAY,MAAM;AACzC,IAAAH,EAAWT,CAAS;AAAA,EAAA,GACnB,CAACS,GAAYT,CAAS,CAAC,GAEpBc,IAAsBF,EAAY,MAAM;AAC9B,IAAAL,EAAAP,GAAW,IAAO,GAAG,EAAI;AAAA,EAAA,GACtC,CAACO,GAAeP,CAAS,CAAC,GAEvBe,IAAeH;AAAA,IACnB,CAAC,EAAE,WAAAI,GAAW,QAAAC,GAAQ,UAAAC,QAA2C;;AAC/D,YAAM,EAAE,OAAAC,GAAO,SAAAC,EAAQ,IAAIC,EAAiB,CAAC,GACvCC,IAAYJ,MAAa;AAE/B,UAAI,EAAChB,KAAA,QAAAA,EAAa,YAAW,EAACE,KAAA,QAAAA,EAAa;AACzC;AAGF,YAAMmB,IAAmC;AAAA,QAC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N,MAAK;AAAA,kBACL,QAAQ;AAAA,kBACR,UAAS;AAAA,kBACT,SAASxB;AAAA,gBAAA;AAAA,cACX;AAAA,YAAA,GACF;AAAA,UAEJ;AAAA,UACA,UAAU;AAAA,QACZ;AAAA,MAAA;AAGF,MAAAL,EAAWR,GAAWuB,CAAa;AAE7B,YAAAkB,IAAmB,WAAW,MAAM;AACxC,qBAAaA,CAAgB,GACT3B;SACnB,GAAG;AAEI,MAAAR,EAAA,QAAQ,KAAKmC,CAAgB;AAAA,IACzC;AAAA,IACA,CAAC5B,GAAkBF,GAAeG,GAAqBd,GAAWQ,CAAU;AAAA,EAAA,GAGxEkC,IAAOC;AAAA,IACX,OAAO;AAAA,MACL,aAAAzC;AAAA,MACA,aAAAE;AAAA,MACA,cAAAW;AAAA,IAAA;AAAA,IAEF,CAACA,CAAY;AAAA,EAAA;AAIf,SAAA6B,EAAU,MACD,MAAM;AACX,IAAAtC,EAAU,QAAQ,QAAQ,CAASuC,MAAA,aAAaA,CAAK,CAAC,GACtDvC,EAAU,UAAU;EAAC,GAEtB,CAAE,CAAA,GAEEoC;AACT;"}
@@ -1,5 +0,0 @@
1
- var P = /* @__PURE__ */ ((E) => (E.HOMEPAGE_JOURNEY = "HOMEPAGE_JOURNEY", E.CHAPTER_PAGE_JOURNEY = "CHAPTER_PAGE_JOURNEY", E))(P || {});
2
- export {
3
- P as JOURNEY_ID_TEACHER
4
- };
5
- //# sourceMappingURL=journey-id-teacher.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"journey-id-teacher.js","sources":["../../../../src/features/journey/journey-id/journey-id-teacher.ts"],"sourcesContent":["export enum JOURNEY_ID_TEACHER {\n HOMEPAGE_JOURNEY = 'HOMEPAGE_JOURNEY',\n CHAPTER_PAGE_JOURNEY = 'CHAPTER_PAGE_JOURNEY',\n}\n"],"names":["JOURNEY_ID_TEACHER"],"mappings":"AAAY,IAAAA,sBAAAA,OACVA,EAAA,mBAAmB,oBACnBA,EAAA,uBAAuB,wBAFbA,IAAAA,KAAA,CAAA,CAAA;"}