@cuemath/leap 2.9.7-rj-3 → 2.9.8-as1

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 (316) hide show
  1. package/dist/assets/illustrations/illustrations.js +9 -0
  2. package/dist/assets/illustrations/illustrations.js.map +1 -1
  3. package/dist/assets/line-icons/icons/alarm.js +41 -0
  4. package/dist/assets/line-icons/icons/alarm.js.map +1 -0
  5. package/dist/assets/line-icons/icons/bin2.js +7 -8
  6. package/dist/assets/line-icons/icons/bin2.js.map +1 -1
  7. package/dist/assets/line-icons/icons/chevron-left.js.map +1 -1
  8. package/dist/assets/line-icons/icons/dart.js +23 -0
  9. package/dist/assets/line-icons/icons/dart.js.map +1 -0
  10. package/dist/assets/line-icons/icons/exclamation.js +26 -0
  11. package/dist/assets/line-icons/icons/exclamation.js.map +1 -0
  12. package/dist/assets/line-icons/icons/home2.js +25 -0
  13. package/dist/assets/line-icons/icons/home2.js.map +1 -0
  14. package/dist/assets/line-icons/icons/important.js +23 -0
  15. package/dist/assets/line-icons/icons/important.js.map +1 -0
  16. package/dist/assets/line-icons/icons/puzzle.js +25 -0
  17. package/dist/assets/line-icons/icons/puzzle.js.map +1 -0
  18. package/dist/assets/line-icons/icons/recap.js +32 -0
  19. package/dist/assets/line-icons/icons/recap.js.map +1 -0
  20. package/dist/assets/line-icons/icons/skip-colored.js +43 -0
  21. package/dist/assets/line-icons/icons/skip-colored.js.map +1 -0
  22. package/dist/assets/line-icons/icons/status.js +41 -0
  23. package/dist/assets/line-icons/icons/status.js.map +1 -0
  24. package/dist/assets/line-icons/icons/testtube.js +33 -0
  25. package/dist/assets/line-icons/icons/testtube.js.map +1 -0
  26. package/dist/assets/lottie/lottie.js +9 -1
  27. package/dist/assets/lottie/lottie.js.map +1 -1
  28. package/dist/constants/api.js +3 -2
  29. package/dist/constants/api.js.map +1 -1
  30. package/dist/features/analytics-events/platform-events-student.js +3 -3
  31. package/dist/features/analytics-events/platform-events-student.js.map +1 -1
  32. package/dist/features/analytics-events/whitelist-events.js +13 -11
  33. package/dist/features/analytics-events/whitelist-events.js.map +1 -1
  34. package/dist/features/chapters/chapters-list/chapter-item/chapter-item-styled.js +99 -33
  35. package/dist/features/chapters/chapters-list/chapter-item/chapter-item-styled.js.map +1 -1
  36. package/dist/features/chapters/chapters-list/chapter-item/chapter-item.js +92 -49
  37. package/dist/features/chapters/chapters-list/chapter-item/chapter-item.js.map +1 -1
  38. package/dist/features/chapters/chapters-list/chapters-list-styled.js +5 -5
  39. package/dist/features/chapters/chapters-list/chapters-list-styled.js.map +1 -1
  40. package/dist/features/chapters/chapters-list/chapters-list.js +64 -70
  41. package/dist/features/chapters/chapters-list/chapters-list.js.map +1 -1
  42. package/dist/features/chapters-v2/api/chapter.js +10 -0
  43. package/dist/features/chapters-v2/api/chapter.js.map +1 -0
  44. package/dist/features/chapters-v2/chapter-details/block-sections/block-section-view.js +112 -0
  45. package/dist/features/chapters-v2/chapter-details/block-sections/block-section-view.js.map +1 -0
  46. package/dist/features/chapters-v2/chapter-details/block-sections/block-sections-styled.js +35 -0
  47. package/dist/features/chapters-v2/chapter-details/block-sections/block-sections-styled.js.map +1 -0
  48. package/dist/features/chapters-v2/chapter-details/block-sections/block-sections.js +83 -0
  49. package/dist/features/chapters-v2/chapter-details/block-sections/block-sections.js.map +1 -0
  50. package/dist/features/chapters-v2/chapter-details/chapter-banner/chapter-banner-styled.js +90 -0
  51. package/dist/features/chapters-v2/chapter-details/chapter-banner/chapter-banner-styled.js.map +1 -0
  52. package/dist/features/chapters-v2/chapter-details/chapter-banner/chapter-banner.js +98 -0
  53. package/dist/features/chapters-v2/chapter-details/chapter-banner/chapter-banner.js.map +1 -0
  54. package/dist/features/chapters-v2/chapter-details/chapter-details-styled.js +51 -0
  55. package/dist/features/chapters-v2/chapter-details/chapter-details-styled.js.map +1 -0
  56. package/dist/features/chapters-v2/chapter-details/chapter-details.js +129 -0
  57. package/dist/features/chapters-v2/chapter-details/chapter-details.js.map +1 -0
  58. package/dist/features/chapters-v2/comps/node-card/border-path-animation.js +13 -0
  59. package/dist/features/chapters-v2/comps/node-card/border-path-animation.js.map +1 -0
  60. package/dist/features/chapters-v2/comps/node-card/node-card-styled.js +159 -0
  61. package/dist/features/chapters-v2/comps/node-card/node-card-styled.js.map +1 -0
  62. package/dist/features/chapters-v2/comps/node-card/node-card-tags.js +16 -0
  63. package/dist/features/chapters-v2/comps/node-card/node-card-tags.js.map +1 -0
  64. package/dist/features/chapters-v2/comps/node-card/node-card.js +12 -0
  65. package/dist/features/chapters-v2/comps/node-card/node-card.js.map +1 -0
  66. package/dist/features/chapters-v2/comps/node-card/node-menu-options/node-menu-option.js +30 -0
  67. package/dist/features/chapters-v2/comps/node-card/node-menu-options/node-menu-option.js.map +1 -0
  68. package/dist/features/chapters-v2/comps/node-card/node-menu-options/node-menu-options-styled.js +32 -0
  69. package/dist/features/chapters-v2/comps/node-card/node-menu-options/node-menu-options-styled.js.map +1 -0
  70. package/dist/features/chapters-v2/comps/node-card/node-menu-options/node-menu-options.js +9 -0
  71. package/dist/features/chapters-v2/comps/node-card/node-menu-options/node-menu-options.js.map +1 -0
  72. package/dist/features/chapters-v2/comps/node-card/student-actions/student-actions.js +189 -0
  73. package/dist/features/chapters-v2/comps/node-card/student-actions/student-actions.js.map +1 -0
  74. package/dist/features/chapters-v2/comps/node-card/teacher-actions/teacher-actions.js +194 -0
  75. package/dist/features/chapters-v2/comps/node-card/teacher-actions/teacher-actions.js.map +1 -0
  76. package/dist/features/chapters-v2/comps/tag/tag-styled.js +13 -0
  77. package/dist/features/chapters-v2/comps/tag/tag-styled.js.map +1 -0
  78. package/dist/features/chapters-v2/comps/tag/tag.js +28 -0
  79. package/dist/features/chapters-v2/comps/tag/tag.js.map +1 -0
  80. package/dist/features/chapters-v2/constants/block-constants.js +20 -0
  81. package/dist/features/chapters-v2/constants/block-constants.js.map +1 -0
  82. package/dist/features/chapters-v2/constants/node-constants.js +14 -0
  83. package/dist/features/chapters-v2/constants/node-constants.js.map +1 -0
  84. package/dist/features/chapters-v2/utils/index.js +38 -0
  85. package/dist/features/chapters-v2/utils/index.js.map +1 -0
  86. package/dist/features/chapters-v2/utils/node-card-utils.js +177 -0
  87. package/dist/features/chapters-v2/utils/node-card-utils.js.map +1 -0
  88. package/dist/features/circle-games/game-launcher/hooks/use-game-launcher-journey/use-game-launcher-journey.js +100 -107
  89. package/dist/features/circle-games/game-launcher/hooks/use-game-launcher-journey/use-game-launcher-journey.js.map +1 -1
  90. package/dist/features/circle-games/game-launcher/hooks/use-table-launcher-journey/use-table-launcher-journey.js +93 -96
  91. package/dist/features/circle-games/game-launcher/hooks/use-table-launcher-journey/use-table-launcher-journey.js.map +1 -1
  92. package/dist/features/circle-games/games/tutorial/constants.js +2 -3
  93. package/dist/features/circle-games/games/tutorial/constants.js.map +1 -1
  94. package/dist/features/circle-games/games/tutorial/tutorial-styled.js +17 -21
  95. package/dist/features/circle-games/games/tutorial/tutorial-styled.js.map +1 -1
  96. package/dist/features/circle-games/games/tutorial/tutorial.js +41 -47
  97. package/dist/features/circle-games/games/tutorial/tutorial.js.map +1 -1
  98. package/dist/features/circle-games/games/web-view/web-view.js +52 -45
  99. package/dist/features/circle-games/games/web-view/web-view.js.map +1 -1
  100. package/dist/features/circle-games/leaderboard/comps/banner/banner.js +6 -6
  101. package/dist/features/circle-games/leaderboard/comps/banner/banner.js.map +1 -1
  102. package/dist/features/circle-games/leaderboard/comps/navigation-button/navigation-button-styled.js +1 -1
  103. package/dist/features/circle-games/leaderboard/comps/navigation-button/navigation-button-styled.js.map +1 -1
  104. package/dist/features/circle-games/leaderboard/leaderboard-styled.js +1 -1
  105. package/dist/features/circle-games/leaderboard/leaderboard-styled.js.map +1 -1
  106. package/dist/features/circle-games/leaderboard/leaderboard.js +9 -9
  107. package/dist/features/circle-games/leaderboard/leaderboard.js.map +1 -1
  108. package/dist/features/circle-games/sign-up/comp/circular-steps/circular-steps-styled.js +8 -8
  109. package/dist/features/circle-games/sign-up/comp/circular-steps/circular-steps-styled.js.map +1 -1
  110. package/dist/features/circle-games/sign-up/constants.js +9 -9
  111. package/dist/features/circle-games/sign-up/constants.js.map +1 -1
  112. package/dist/features/communication/pub-sub/constants.js +12 -6
  113. package/dist/features/communication/pub-sub/constants.js.map +1 -1
  114. package/dist/features/homework/card-menu-option.js +28 -0
  115. package/dist/features/homework/card-menu-option.js.map +1 -0
  116. package/dist/features/homework/card-menu-options.js +22 -0
  117. package/dist/features/homework/card-menu-options.js.map +1 -0
  118. package/dist/features/homework/card-title.js +16 -0
  119. package/dist/features/homework/card-title.js.map +1 -0
  120. package/dist/features/homework/homework-analytics-events.js +10 -0
  121. package/dist/features/homework/homework-analytics-events.js.map +1 -0
  122. package/dist/features/homework/homework-card-view.js +143 -0
  123. package/dist/features/homework/homework-card-view.js.map +1 -0
  124. package/dist/features/homework/homework-card.js +245 -0
  125. package/dist/features/homework/homework-card.js.map +1 -0
  126. package/dist/features/homework/hw-card-list/api/get-homeworks.js +10 -0
  127. package/dist/features/homework/hw-card-list/api/get-homeworks.js.map +1 -0
  128. package/dist/features/homework/hw-card-list/hw-card-list-styled.js +63 -0
  129. package/dist/features/homework/hw-card-list/hw-card-list-styled.js.map +1 -0
  130. package/dist/features/homework/hw-card-list/hw-card-list.js +191 -0
  131. package/dist/features/homework/hw-card-list/hw-card-list.js.map +1 -0
  132. package/dist/features/homework/node-progress.js +29 -0
  133. package/dist/features/homework/node-progress.js.map +1 -0
  134. package/dist/features/homework/styles.js +130 -0
  135. package/dist/features/homework/styles.js.map +1 -0
  136. package/dist/features/homework/utils.js +48 -0
  137. package/dist/features/homework/utils.js.map +1 -0
  138. package/dist/features/journey/comps/coachmark/coachmark-styled.js +12 -5
  139. package/dist/features/journey/comps/coachmark/coachmark-styled.js.map +1 -1
  140. package/dist/features/journey/comps/coachmark/coachmark.js +23 -24
  141. package/dist/features/journey/comps/coachmark/coachmark.js.map +1 -1
  142. package/dist/features/journey/hooks/use-chapter-journey.js +194 -0
  143. package/dist/features/journey/hooks/use-chapter-journey.js.map +1 -0
  144. package/dist/features/journey/hooks/use-home-page-journey.js +189 -0
  145. package/dist/features/journey/hooks/use-home-page-journey.js.map +1 -0
  146. package/dist/features/journey/journey-id/journey-id-student.js +1 -1
  147. package/dist/features/journey/journey-id/journey-id-student.js.map +1 -1
  148. package/dist/features/journey/journey-id/journey-id-teacher.js +5 -0
  149. package/dist/features/journey/journey-id/journey-id-teacher.js.map +1 -0
  150. package/dist/features/journey/mocks/chapter-page-journey-mock-data.js +587 -0
  151. package/dist/features/journey/mocks/chapter-page-journey-mock-data.js.map +1 -0
  152. package/dist/features/journey/use-journey/constants.js +4 -2
  153. package/dist/features/journey/use-journey/constants.js.map +1 -1
  154. package/dist/features/journey/use-journey/journey-context-provider.js +36 -28
  155. package/dist/features/journey/use-journey/journey-context-provider.js.map +1 -1
  156. package/dist/features/journey/use-journey/journey-styled.js +10 -4
  157. package/dist/features/journey/use-journey/journey-styled.js.map +1 -1
  158. package/dist/features/milestone/create/api/goal-submit.js +1 -1
  159. package/dist/features/milestone/create/api/goal-submit.js.map +1 -1
  160. package/dist/features/milestone/create/comps/chapter-item/chapter-item.js +42 -49
  161. package/dist/features/milestone/create/comps/chapter-item/chapter-item.js.map +1 -1
  162. package/dist/features/milestone/create/comps/chapters-selection-step/chapters-selection-step-styled.js +12 -4
  163. package/dist/features/milestone/create/comps/chapters-selection-step/chapters-selection-step-styled.js.map +1 -1
  164. package/dist/features/milestone/create/comps/chapters-selection-step/chapters-selection-step.js +128 -105
  165. package/dist/features/milestone/create/comps/chapters-selection-step/chapters-selection-step.js.map +1 -1
  166. package/dist/features/milestone/create/comps/sheets-list/sheets-list-styled.js +14 -20
  167. package/dist/features/milestone/create/comps/sheets-list/sheets-list-styled.js.map +1 -1
  168. package/dist/features/milestone/create/comps/sheets-list/sheets-list.js +26 -50
  169. package/dist/features/milestone/create/comps/sheets-list/sheets-list.js.map +1 -1
  170. package/dist/features/milestone/create/milestone-create.js +49 -43
  171. package/dist/features/milestone/create/milestone-create.js.map +1 -1
  172. package/dist/features/milestone/create/utils/index.js +33 -38
  173. package/dist/features/milestone/create/utils/index.js.map +1 -1
  174. package/dist/features/milestone/edit/comps/edit-milestone-modal/api/get-milestone.js +1 -1
  175. package/dist/features/milestone/edit/comps/edit-milestone-modal/api/get-milestone.js.map +1 -1
  176. package/dist/features/milestone/edit/comps/edit-milestone-modal/api/patch-goal-plan.js +1 -1
  177. package/dist/features/milestone/edit/comps/edit-milestone-modal/api/patch-goal-plan.js.map +1 -1
  178. package/dist/features/milestone/edit/comps/edit-milestone-modal/index.js +51 -53
  179. package/dist/features/milestone/edit/comps/edit-milestone-modal/index.js.map +1 -1
  180. package/dist/features/milestone/edit/goal-drafts/goal-draft-edit-container.js +42 -40
  181. package/dist/features/milestone/edit/goal-drafts/goal-draft-edit-container.js.map +1 -1
  182. package/dist/features/milestone/edit/goal-edit-container.js +64 -62
  183. package/dist/features/milestone/edit/goal-edit-container.js.map +1 -1
  184. package/dist/features/milestone/edit/goal-edit-helpers.js +50 -53
  185. package/dist/features/milestone/edit/goal-edit-helpers.js.map +1 -1
  186. package/dist/features/milestone/edit/milestone-edit-container.js +54 -52
  187. package/dist/features/milestone/edit/milestone-edit-container.js.map +1 -1
  188. package/dist/features/milestone/milestone-list-container/api/get-milestone-resources.js +1 -1
  189. package/dist/features/milestone/milestone-list-container/api/get-milestone-resources.js.map +1 -1
  190. package/dist/features/milestone/milestone-list-container/api/get-milestones.js +9 -17
  191. package/dist/features/milestone/milestone-list-container/api/get-milestones.js.map +1 -1
  192. package/dist/features/milestone/milestone-list-container/api/get-tests-list.js +1 -1
  193. package/dist/features/milestone/milestone-list-container/api/get-tests-list.js.map +1 -1
  194. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-list.js +138 -105
  195. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-list.js.map +1 -1
  196. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/goals/goal-action-ctas.js +107 -123
  197. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/goals/goal-action-ctas.js.map +1 -1
  198. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-info.js +157 -176
  199. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-info.js.map +1 -1
  200. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-tabs/milestone-tabs-styled.js +24 -10
  201. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-tabs/milestone-tabs-styled.js.map +1 -1
  202. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-tabs/milestone-tabs.js +80 -86
  203. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-tabs/milestone-tabs.js.map +1 -1
  204. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-utils.js +10 -22
  205. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-utils.js.map +1 -1
  206. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-widget-styled.js +70 -37
  207. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-widget-styled.js.map +1 -1
  208. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-widget.js +114 -176
  209. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-widget.js.map +1 -1
  210. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/outcome/outcome-rank.js +29 -16
  211. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/outcome/outcome-rank.js.map +1 -1
  212. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/outcome/outcome-styled.js +17 -25
  213. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/outcome/outcome-styled.js.map +1 -1
  214. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/outcome/outcome.js +23 -35
  215. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/outcome/outcome.js.map +1 -1
  216. package/dist/features/milestone/milestone-list-container/milestone-list-container.js +110 -113
  217. package/dist/features/milestone/milestone-list-container/milestone-list-container.js.map +1 -1
  218. package/dist/features/milestone/milestone-resources/resources-assign/api/goal-resource-assign.js +1 -1
  219. package/dist/features/milestone/milestone-resources/resources-assign/api/goal-resource-assign.js.map +1 -1
  220. package/dist/features/milestone/milestone-resources/resources-assign/resources-assign.js +8 -8
  221. package/dist/features/milestone/milestone-resources/resources-assign/resources-assign.js.map +1 -1
  222. package/dist/features/milestone/milestone-resources/resources-list/resources-list-styled.js +1 -1
  223. package/dist/features/milestone/milestone-resources/resources-list/resources-list-styled.js.map +1 -1
  224. package/dist/features/milestone/milestone-resources/resources-list/resources-list.js +116 -113
  225. package/dist/features/milestone/milestone-resources/resources-list/resources-list.js.map +1 -1
  226. package/dist/features/milestone/milestone-tests/test-list-v2/test-list-container.js +165 -0
  227. package/dist/features/milestone/milestone-tests/test-list-v2/test-list-container.js.map +1 -0
  228. package/dist/features/milestone/milestone-tests/test-list-v2/test-list-view-styled.js +25 -0
  229. package/dist/features/milestone/milestone-tests/test-list-v2/test-list-view-styled.js.map +1 -0
  230. package/dist/features/milestone/milestone-tests/test-list-v2/test-list-view.js +87 -0
  231. package/dist/features/milestone/milestone-tests/test-list-v2/test-list-view.js.map +1 -0
  232. package/dist/features/milestone/milestone-tests/tests-creation/api/test-sheet-assign.js +5 -5
  233. package/dist/features/milestone/milestone-tests/tests-creation/api/test-sheet-assign.js.map +1 -1
  234. package/dist/features/milestone/milestone-tests/tests-creation/tests-creation.js +46 -50
  235. package/dist/features/milestone/milestone-tests/tests-creation/tests-creation.js.map +1 -1
  236. package/dist/features/recent-chapters/api/get-recent-chapters.js +9 -0
  237. package/dist/features/recent-chapters/api/get-recent-chapters.js.map +1 -0
  238. package/dist/features/recent-chapters/recent-chapters-styled.js +16 -0
  239. package/dist/features/recent-chapters/recent-chapters-styled.js.map +1 -0
  240. package/dist/features/recent-chapters/recent-chapters.js +39 -0
  241. package/dist/features/recent-chapters/recent-chapters.js.map +1 -0
  242. package/dist/features/sheet-v2/resource-list/resource-list.js +45 -0
  243. package/dist/features/sheet-v2/resource-list/resource-list.js.map +1 -0
  244. package/dist/features/sheets/resources-list/resource-item/styled.js +1 -1
  245. package/dist/features/sheets/resources-list/resource-item/styled.js.map +1 -1
  246. package/dist/features/sheets/sheets-list/sheet-item/reward-n-actions/teacher-actions/teacher-actions-constant.js +4 -3
  247. package/dist/features/sheets/sheets-list/sheet-item/reward-n-actions/teacher-actions/teacher-actions-constant.js.map +1 -1
  248. package/dist/features/ui/arc-button/constants.js +4 -4
  249. package/dist/features/ui/arc-button/constants.js.map +1 -1
  250. package/dist/features/ui/arrow-tooltip/arrow-tooltip.js +30 -29
  251. package/dist/features/ui/arrow-tooltip/arrow-tooltip.js.map +1 -1
  252. package/dist/features/ui/constants/z-index.js +2 -3
  253. package/dist/features/ui/constants/z-index.js.map +1 -1
  254. package/dist/features/ui/context-menu/context-menu-styled.js +28 -14
  255. package/dist/features/ui/context-menu/context-menu-styled.js.map +1 -1
  256. package/dist/features/ui/context-menu/context-menu.js +30 -15
  257. package/dist/features/ui/context-menu/context-menu.js.map +1 -1
  258. package/dist/features/ui/lottie-animation/lottie-animation.js +19 -13
  259. package/dist/features/ui/lottie-animation/lottie-animation.js.map +1 -1
  260. package/dist/features/ui/theme/button.js +22 -107
  261. package/dist/features/ui/theme/button.js.map +1 -1
  262. package/dist/features/ui/theme/get-theme.js +18 -20
  263. package/dist/features/ui/theme/get-theme.js.map +1 -1
  264. package/dist/index.d.ts +357 -47
  265. package/dist/index.js +503 -471
  266. package/dist/index.js.map +1 -1
  267. package/dist/node_modules/date-fns/differenceInDays.js +17 -0
  268. package/dist/node_modules/date-fns/differenceInDays.js.map +1 -0
  269. package/dist/static/chapter-header-bg-2.c8d96894.svg +1 -0
  270. package/dist/static/competitive-arena.b9c40801.json +1 -0
  271. package/dist/static/learn.71b13323.json +1 -0
  272. package/dist/static/node-custom-test-bg.d3b757be.svg +1 -0
  273. package/dist/static/node-learn-bg.b61f815c.svg +1 -0
  274. package/dist/static/node-practice-bg.16cbaf2a.svg +1 -0
  275. package/dist/static/node-project-bg.e6a33e28.svg +1 -0
  276. package/dist/static/node-puzzle-bg.3422135c.svg +1 -0
  277. package/dist/static/node-recap-bg.546154e4.svg +1 -0
  278. package/dist/static/node-test-prep-bg.42c0b9c4.svg +1 -0
  279. package/dist/static/node-video-bg.3df3f73a.svg +1 -0
  280. package/dist/static/practice.158dd488.json +1 -0
  281. package/dist/static/project.eb665827.json +1 -0
  282. package/dist/static/puzzle.b298c7e4.json +1 -0
  283. package/dist/static/recap.0dd2c1e2.json +1 -0
  284. package/dist/static/test.803d6036.json +1 -0
  285. package/dist/static/video.b41451e2.json +1 -0
  286. package/package.json +1 -1
  287. package/dist/features/milestone/create/comps/milestone-progress-v2/milestone-progress-v2.js +0 -92
  288. package/dist/features/milestone/create/comps/milestone-progress-v2/milestone-progress-v2.js.map +0 -1
  289. package/dist/features/milestone/create/comps/milestone-progress-v2/styled.js +0 -25
  290. package/dist/features/milestone/create/comps/milestone-progress-v2/styled.js.map +0 -1
  291. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/context-menu-helper/menu-element-styled.js +0 -13
  292. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/context-menu-helper/menu-element-styled.js.map +0 -1
  293. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/context-menu-helper/menu-element.js +0 -38
  294. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/context-menu-helper/menu-element.js.map +0 -1
  295. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-widget-status.js +0 -53
  296. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-widget-status.js.map +0 -1
  297. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/outcome/outcome-info.js +0 -25
  298. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/outcome/outcome-info.js.map +0 -1
  299. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item-cta.js +0 -71
  300. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item-cta.js.map +0 -1
  301. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item-styled.js +0 -31
  302. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item-styled.js.map +0 -1
  303. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item-utils.js +0 -38
  304. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item-utils.js.map +0 -1
  305. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item.js +0 -79
  306. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item.js.map +0 -1
  307. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheets-list-styled.js +0 -18
  308. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheets-list-styled.js.map +0 -1
  309. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheets-list.js +0 -51
  310. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheets-list.js.map +0 -1
  311. package/dist/features/milestone/milestone-tests/tests-list/tests-list-styled.js +0 -11
  312. package/dist/features/milestone/milestone-tests/tests-list/tests-list-styled.js.map +0 -1
  313. package/dist/features/milestone/milestone-tests/tests-list/tests-list.js +0 -135
  314. package/dist/features/milestone/milestone-tests/tests-list/tests-list.js.map +0 -1
  315. package/dist/features/ui/theme/breakpoints.js +0 -11
  316. package/dist/features/ui/theme/breakpoints.js.map +0 -1
@@ -0,0 +1,194 @@
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
@@ -0,0 +1 @@
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;AAAA,EAAA,GACtC,CAACA,GAAWO,CAAa,CAAC,GAEvBM,IAAmBD,EAAY,MAAM;AACzC,IAAAH,EAAWT,CAAS;AAAA,EAAA,GACnB,CAACS,GAAYT,CAAS,CAAC,GAEpBc,IAAeF;AAAA,IACnB,CAAC,EAAE,gBAAAG,GAAgB,eAAAC,GAAe,WAAAC,GAAW,UAAAC,QAA0C;AACrF,YAAM,EAAE,MAAAC,GAAM,WAAWC,GAAU,WAAWC,EAAa,IAAAN;AAEvD,UAAA,EAACb,KAAA,QAAAA,EAAgB,YAAW,EAACE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U;EAAC,GAEtB,CAAE,CAAA,GAEE8B;AACT;"}
@@ -0,0 +1,189 @@
1
+ import { jsx as e, jsxs as p, Fragment as B } from "react/jsx-runtime";
2
+ import { useRef as s, useCallback as L, useMemo as I, useEffect as N } from "react";
3
+ import G from "../../homework/homework-card.js";
4
+ import P from "../../homework/hw-card-list/hw-card-list.js";
5
+ import $ from "../../recent-chapters/recent-chapters.js";
6
+ import h from "../../ui/buttons/button/button.js";
7
+ import c from "../../ui/layout/flex-view.js";
8
+ import u from "../../ui/text/text.js";
9
+ import { ELementWrapper as H } from "../comps/coachmark/coachmark-styled.js";
10
+ import { JOURNEY_ID_STUDENT as T } from "../journey-id/journey-id-student.js";
11
+ import { IndicatorType as C } from "../use-journey/constants.js";
12
+ import { useJourney as J } from "../use-journey/use-journey.js";
13
+ const V = () => {
14
+ const o = T.HOMEPAGE_JOURNEY, i = s(null), n = s(null), l = s(null), d = s(null), f = s([]), { nextCoachmark: r, setJourney: A, endJourney: w, addCoachmark: E } = J(), b = L(
15
+ (t, a, m) => {
16
+ d.current ? (E(T.HOMEPAGE_JOURNEY, {
17
+ originalElementToHighlightRef: d,
18
+ elementToHighlight: /* @__PURE__ */ e(c, { $widthX: 45, children: /* @__PURE__ */ e(
19
+ $,
20
+ {
21
+ studentId: t,
22
+ courseStream: m,
23
+ userType: a ? "STUDENT" : "TEACHER",
24
+ onChapterClick: () => null
25
+ }
26
+ ) }),
27
+ isActive: !1,
28
+ type: C.TOOLTIP,
29
+ indicator: {
30
+ tooltipItem: /* @__PURE__ */ p(c, { $flexRowGapX: 0.75, $justifyContent: "flex-start", children: [
31
+ /* @__PURE__ */ e(u, { $renderAs: "ab2-bold", children: "Access all your recent chapters in one place." }),
32
+ /* @__PURE__ */ e(
33
+ h,
34
+ {
35
+ label: "Got it",
36
+ size: "xsmall",
37
+ widthX: 6,
38
+ renderAs: "secondary",
39
+ onClick: () => w(T.HOMEPAGE_JOURNEY)
40
+ }
41
+ )
42
+ ] }),
43
+ position: "top",
44
+ renderAs: "primary",
45
+ tooltipXCoOrdinates: -227,
46
+ tooltipYCoOrdinates: 12,
47
+ arrowXCoOrdinates: -110,
48
+ backgroundColor: "YELLOW_4",
49
+ borderColor: "BLACK",
50
+ arrowColor: "BLACK",
51
+ arrowSize: 12,
52
+ width: 264
53
+ }
54
+ }), r(o, !1, 0, !0)) : w(o);
55
+ },
56
+ [r, o, E, w]
57
+ ), y = L(
58
+ ({ hwDetails: t, studentId: a, stream: m, userType: g }) => {
59
+ const { title: k, subtext: X } = t[0], O = g === "STUDENT";
60
+ if (!(i != null && i.current) || !(n != null && n.current) || !(l != null && l.current))
61
+ return;
62
+ const S = [
63
+ {
64
+ originalElementToHighlightRef: i,
65
+ isActive: !1,
66
+ type: C.TOOLTIP,
67
+ elementToHighlight: /* @__PURE__ */ e(B, {}),
68
+ indicator: {
69
+ position: "top",
70
+ tooltipXCoOrdinates: 360,
71
+ tooltipYCoOrdinates: 30,
72
+ backgroundColor: "BLUE_4",
73
+ borderColor: "BLACK",
74
+ arrowColor: "BLACK",
75
+ arrowSize: 12,
76
+ width: 264,
77
+ tooltipItem: /* @__PURE__ */ p(c, { $flexRowGapX: 0.75, children: [
78
+ /* @__PURE__ */ e(u, { $renderAs: "ab2-bold", children: O ? "Welcome to the all new learning homepage." : "Welcome to the all new tutoring homepage." }),
79
+ /* @__PURE__ */ e(
80
+ h,
81
+ {
82
+ label: "Next",
83
+ size: "xsmall",
84
+ widthX: 6,
85
+ renderAs: "secondary",
86
+ onClick: () => r(o, !1, 0, !0)
87
+ }
88
+ )
89
+ ] })
90
+ }
91
+ },
92
+ {
93
+ originalElementToHighlightRef: n,
94
+ elementToHighlight: /* @__PURE__ */ e(H, { children: /* @__PURE__ */ e(P, { userType: g, studentId: a, stream: m }) }),
95
+ type: C.TOOLTIP,
96
+ indicator: {
97
+ position: "top",
98
+ tooltipXCoOrdinates: -197,
99
+ tooltipYCoOrdinates: -12,
100
+ arrowXCoOrdinates: -110,
101
+ backgroundColor: "GREEN_4",
102
+ borderColor: "BLACK",
103
+ arrowColor: "BLACK",
104
+ width: 264,
105
+ arrowSize: 12,
106
+ tooltipItem: /* @__PURE__ */ p(c, { $flexRowGapX: 0.75, children: [
107
+ /* @__PURE__ */ e(u, { $renderAs: "ab2-bold", children: O ? "Homework is now easy to access and easy to complete!" : "Homework is now easy to access and easy to review!" }),
108
+ /* @__PURE__ */ e(
109
+ h,
110
+ {
111
+ label: "Next",
112
+ size: "xsmall",
113
+ widthX: 6,
114
+ renderAs: "secondary",
115
+ onClick: () => r(o, !1, 0, !0)
116
+ }
117
+ )
118
+ ] })
119
+ },
120
+ isActive: !1
121
+ },
122
+ {
123
+ originalElementToHighlightRef: l,
124
+ elementToHighlight: /* @__PURE__ */ e(H, { children: /* @__PURE__ */ e(
125
+ G,
126
+ {
127
+ isInQueue: !1,
128
+ userType: g,
129
+ header: k,
130
+ subHeader: X || "",
131
+ nodeData: t[0],
132
+ renderAs: "homework",
133
+ studentId: a,
134
+ shouldOpenOnRight: !1
135
+ }
136
+ ) }),
137
+ type: C.TOOLTIP,
138
+ indicator: {
139
+ position: "top",
140
+ tooltipXCoOrdinates: -35,
141
+ tooltipYCoOrdinates: -7,
142
+ backgroundColor: "PURPLE_4",
143
+ borderColor: "BLACK",
144
+ arrowColor: "BLACK",
145
+ arrowXCoOrdinates: -97,
146
+ arrowSize: 12,
147
+ width: 264,
148
+ tooltipItem: /* @__PURE__ */ p(c, { $flexRowGapX: 0.75, children: [
149
+ /* @__PURE__ */ e(u, { $renderAs: "ab2-bold", children: "Track homework status and their due dates." }),
150
+ /* @__PURE__ */ e(
151
+ h,
152
+ {
153
+ label: d.current ? "Next" : "Got it",
154
+ size: "xsmall",
155
+ widthX: 6,
156
+ renderAs: "secondary",
157
+ onClick: () => b(a, O, m)
158
+ }
159
+ )
160
+ ] })
161
+ },
162
+ isActive: !1
163
+ }
164
+ ];
165
+ A(o, S);
166
+ const x = setTimeout(() => {
167
+ clearTimeout(x), r(o);
168
+ }, 200);
169
+ f.current.push(x);
170
+ },
171
+ [A, o, r, b]
172
+ ), R = I(
173
+ () => ({
174
+ homepageRef: i,
175
+ homeworkRef: n,
176
+ individualHomeworkRef: l,
177
+ recentChaptersRef: d,
178
+ startJourney: y
179
+ }),
180
+ [y]
181
+ );
182
+ return N(() => () => {
183
+ f.current.forEach((t) => clearTimeout(t)), f.current = [];
184
+ }, []), R;
185
+ };
186
+ export {
187
+ V as useHomePageJourney
188
+ };
189
+ //# sourceMappingURL=use-home-page-journey.js.map
@@ -0,0 +1 @@
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 { 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 HomeworkCard from '../../homework/homework-card';\nimport HWCardList from '../../homework/hw-card-list/hw-card-list';\nimport RecentChapters from '../../recent-chapters/recent-chapters';\nimport Button from '../../ui/buttons/button/button';\nimport FlexView from '../../ui/layout/flex-view';\nimport Text from '../../ui/text/text';\nimport { ELementWrapper } from '../comps/coachmark/coachmark-styled';\nimport { JOURNEY_ID_STUDENT } from '../journey-id/journey-id-student';\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 individualHomeworkRef = useRef<HTMLDivElement>(null);\n const recentChaptersRef = useRef<HTMLDivElement>(null);\n const timerRefs = useRef<ReturnType<typeof setTimeout>[]>([]);\n const { nextCoachmark, setJourney, endJourney, addCoachmark } = useJourney();\n\n const handleLastStep = useCallback(\n (userId: string, isStudent: boolean, courseValue: string) => {\n if (recentChaptersRef.current) {\n addCoachmark(JOURNEY_ID_STUDENT.HOMEPAGE_JOURNEY, {\n originalElementToHighlightRef: recentChaptersRef,\n elementToHighlight: (\n <FlexView $widthX={45}>\n <RecentChapters\n studentId={userId}\n courseStream={courseValue as TCourseStream}\n userType={isStudent ? 'STUDENT' : 'TEACHER'}\n onChapterClick={() => null}\n />\n </FlexView>\n ),\n isActive: false,\n type: IndicatorType.TOOLTIP,\n indicator: {\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={() => endJourney(JOURNEY_ID_STUDENT.HOMEPAGE_JOURNEY)}\n />\n </FlexView>\n ),\n position: 'top',\n renderAs: 'primary',\n tooltipXCoOrdinates: -227,\n tooltipYCoOrdinates: 12,\n arrowXCoOrdinates: -110,\n backgroundColor: 'YELLOW_4',\n borderColor: 'BLACK',\n arrowColor: 'BLACK',\n arrowSize: 12,\n width: 264,\n } as IArrowTooltipProps,\n });\n nextCoachmark(journeyId, false, 0, true);\n } else {\n endJourney(journeyId);\n }\n },\n [nextCoachmark, journeyId, addCoachmark, endJourney],\n );\n\n const startJourney = useCallback(\n ({ hwDetails, studentId, stream, userType }: IHomepageStartJourneyProps) => {\n const { title, subtext } = hwDetails[0] as INodeDataProps;\n const isStudent = userType === 'STUDENT';\n\n if (!homepageRef?.current || !homeworkRef?.current || !individualHomeworkRef?.current) {\n return;\n }\n\n const homepageSteps: ICoachmarkProps[] = [\n {\n originalElementToHighlightRef: homepageRef,\n isActive: false,\n type: IndicatorType.TOOLTIP,\n elementToHighlight: <></>,\n indicator: {\n position: 'top',\n tooltipXCoOrdinates: 360,\n tooltipYCoOrdinates: 30,\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={() => nextCoachmark(journeyId, false, 0, true)}\n />\n </FlexView>\n ),\n } as IArrowTooltipProps,\n },\n {\n originalElementToHighlightRef: homeworkRef,\n elementToHighlight: (\n <ELementWrapper>\n <HWCardList userType={userType} studentId={studentId} stream={stream} />\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={() => nextCoachmark(journeyId, false, 0, true)}\n />\n </FlexView>\n ),\n } as IArrowTooltipProps,\n isActive: false,\n },\n {\n originalElementToHighlightRef: individualHomeworkRef,\n elementToHighlight: (\n <ELementWrapper>\n <HomeworkCard\n isInQueue={false}\n userType={userType}\n header={title}\n subHeader={subtext || ''}\n nodeData={hwDetails[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={recentChaptersRef.current ? 'Next' : 'Got it'}\n size=\"xsmall\"\n widthX={6}\n renderAs=\"secondary\"\n onClick={() => handleLastStep(studentId, isStudent, stream)}\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 nextCoachmark(journeyId);\n }, 200);\n\n timerRefs.current.push(delayBeforeStart); // Store to cleanup later\n },\n [setJourney, journeyId, nextCoachmark, handleLastStep],\n );\n\n const data = useMemo(\n () => ({\n homepageRef,\n homeworkRef,\n individualHomeworkRef,\n recentChaptersRef,\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","individualHomeworkRef","recentChaptersRef","timerRefs","nextCoachmark","setJourney","endJourney","addCoachmark","useJourney","handleLastStep","useCallback","userId","isStudent","courseValue","jsx","FlexView","RecentChapters","IndicatorType","jsxs","Text","Button","startJourney","hwDetails","studentId","stream","userType","title","subtext","homepageSteps","Fragment","ELementWrapper","HWCardList","HomeworkCard","delayBeforeStart","data","useMemo","useEffect","timer"],"mappings":";;;;;;;;;;;;AAmBO,MAAMA,IAAqB,MAAM;AACtC,QAAMC,IAAYC,EAAmB,kBAE/BC,IAAcC,EAAuB,IAAI,GACzCC,IAAcD,EAAuB,IAAI,GACzCE,IAAwBF,EAAuB,IAAI,GACnDG,IAAoBH,EAAuB,IAAI,GAC/CI,IAAYJ,EAAwC,CA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BACR,UAAS;AAAA,kBACT,SAAS,MAAMO,EAAec,GAAWX,GAAWY,CAAM;AAAA,gBAAA;AAAA,cAC5D;AAAA,YAAA,GACF;AAAA,UAEJ;AAAA,UACA,UAAU;AAAA,QACZ;AAAA,MAAA;AAGF,MAAAnB,EAAWT,GAAWgC,CAAa;AAE7B,YAAAK,IAAmB,WAAW,MAAM;AACxC,qBAAaA,CAAgB,GAC7B7B,EAAcR,CAAS;AAAA,SACtB,GAAG;AAEI,MAAAO,EAAA,QAAQ,KAAK8B,CAAgB;AAAA,IACzC;AAAA,IACA,CAAC5B,GAAYT,GAAWQ,GAAeK,CAAc;AAAA,EAAA,GAGjDyB,IAAOC;AAAA,IACX,OAAO;AAAA,MACL,aAAArC;AAAA,MACA,aAAAE;AAAA,MACA,uBAAAC;AAAA,MACA,mBAAAC;AAAA,MACA,cAAAmB;AAAA,IAAA;AAAA,IAEF,CAACA,CAAY;AAAA,EAAA;AAIf,SAAAe,EAAU,MACD,MAAM;AACX,IAAAjC,EAAU,QAAQ,QAAQ,CAASkC,MAAA,aAAaA,CAAK,CAAC,GACtDlC,EAAU,UAAU;EAAC,GAEtB,CAAE,CAAA,GAEE+B;AACT;"}
@@ -1,4 +1,4 @@
1
- var E = /* @__PURE__ */ ((R) => (R.CIRCLE_ACTIVITIES_INTRO_JOURNEY = "CIRCLE_ACTIVITIES_INTRO_JOURNEY", R.CIRCLE_LEADERBOARD_INTRO_JOURNEY = "CIRCLE_LEADERBOARD_INTRO_JOURNEY", R.CIRCLE_POINTS_REWARD_JOURNEY = "CIRCLE_POINTS_REWARD_JOURNEY", R.CIRCLE_STREAK_UPDATE_JOURNEY = "CIRCLE_STREAK_UPDATE_JOURNEY", R.CIRCLE_TUTORIAL_JOURNEY = "CIRCLE_TUTORIAL_JOURNEY", R.CIRCLE_TABLES_INTRO_JOURNEY = "CIRCLE_TABLES_INTRO_JOURNEY", R.CIRCLE_STREAK_REDUCTION_JOURNEY = "CIRCLE_STREAK_REDUCTION_JOURNEY", R))(E || {});
1
+ var E = /* @__PURE__ */ ((R) => (R.CIRCLE_ACTIVITIES_INTRO_JOURNEY = "CIRCLE_ACTIVITIES_INTRO_JOURNEY", R.CIRCLE_LEADERBOARD_INTRO_JOURNEY = "CIRCLE_LEADERBOARD_INTRO_JOURNEY", R.CIRCLE_POINTS_REWARD_JOURNEY = "CIRCLE_POINTS_REWARD_JOURNEY", R.CIRCLE_STREAK_UPDATE_JOURNEY = "CIRCLE_STREAK_UPDATE_JOURNEY", R.CIRCLE_TUTORIAL_JOURNEY = "CIRCLE_TUTORIAL_JOURNEY", R.CIRCLE_TABLES_INTRO_JOURNEY = "CIRCLE_TABLES_INTRO_JOURNEY", R.CIRCLE_STREAK_REDUCTION_JOURNEY = "CIRCLE_STREAK_REDUCTION_JOURNEY", R.HOMEPAGE_JOURNEY = "HOMEPAGE_JOURNEY", R.CHAPTER_PAGE_JOURNEY = "CHAPTER_PAGE_JOURNEY", R))(E || {});
2
2
  export {
3
3
  E as JOURNEY_ID_STUDENT
4
4
  };
@@ -1 +1 @@
1
- {"version":3,"file":"journey-id-student.js","sources":["../../../../src/features/journey/journey-id/journey-id-student.ts"],"sourcesContent":["export enum JOURNEY_ID_STUDENT {\n CIRCLE_ACTIVITIES_INTRO_JOURNEY = 'CIRCLE_ACTIVITIES_INTRO_JOURNEY',\n CIRCLE_LEADERBOARD_INTRO_JOURNEY = 'CIRCLE_LEADERBOARD_INTRO_JOURNEY',\n CIRCLE_POINTS_REWARD_JOURNEY = 'CIRCLE_POINTS_REWARD_JOURNEY',\n CIRCLE_STREAK_UPDATE_JOURNEY = 'CIRCLE_STREAK_UPDATE_JOURNEY',\n CIRCLE_TUTORIAL_JOURNEY = 'CIRCLE_TUTORIAL_JOURNEY',\n CIRCLE_TABLES_INTRO_JOURNEY = 'CIRCLE_TABLES_INTRO_JOURNEY',\n\n // TODO: Deprecate bottom journeys, they are not actually journeys\n CIRCLE_STREAK_REDUCTION_JOURNEY = 'CIRCLE_STREAK_REDUCTION_JOURNEY',\n}\n"],"names":["JOURNEY_ID_STUDENT"],"mappings":"AAAY,IAAAA,sBAAAA,OACVA,EAAA,kCAAkC,mCAClCA,EAAA,mCAAmC,oCACnCA,EAAA,+BAA+B,gCAC/BA,EAAA,+BAA+B,gCAC/BA,EAAA,0BAA0B,2BAC1BA,EAAA,8BAA8B,+BAG9BA,EAAA,kCAAkC,mCATxBA,IAAAA,KAAA,CAAA,CAAA;"}
1
+ {"version":3,"file":"journey-id-student.js","sources":["../../../../src/features/journey/journey-id/journey-id-student.ts"],"sourcesContent":["export enum JOURNEY_ID_STUDENT {\n CIRCLE_ACTIVITIES_INTRO_JOURNEY = 'CIRCLE_ACTIVITIES_INTRO_JOURNEY',\n CIRCLE_LEADERBOARD_INTRO_JOURNEY = 'CIRCLE_LEADERBOARD_INTRO_JOURNEY',\n CIRCLE_POINTS_REWARD_JOURNEY = 'CIRCLE_POINTS_REWARD_JOURNEY',\n CIRCLE_STREAK_UPDATE_JOURNEY = 'CIRCLE_STREAK_UPDATE_JOURNEY',\n CIRCLE_TUTORIAL_JOURNEY = 'CIRCLE_TUTORIAL_JOURNEY',\n CIRCLE_TABLES_INTRO_JOURNEY = 'CIRCLE_TABLES_INTRO_JOURNEY',\n\n // TODO: Deprecate bottom journeys, they are not actually journeys\n CIRCLE_STREAK_REDUCTION_JOURNEY = 'CIRCLE_STREAK_REDUCTION_JOURNEY',\n HOMEPAGE_JOURNEY = 'HOMEPAGE_JOURNEY',\n CHAPTER_PAGE_JOURNEY = 'CHAPTER_PAGE_JOURNEY',\n}\n"],"names":["JOURNEY_ID_STUDENT"],"mappings":"AAAY,IAAAA,sBAAAA,OACVA,EAAA,kCAAkC,mCAClCA,EAAA,mCAAmC,oCACnCA,EAAA,+BAA+B,gCAC/BA,EAAA,+BAA+B,gCAC/BA,EAAA,0BAA0B,2BAC1BA,EAAA,8BAA8B,+BAG9BA,EAAA,kCAAkC,mCAClCA,EAAA,mBAAmB,oBACnBA,EAAA,uBAAuB,wBAXbA,IAAAA,KAAA,CAAA,CAAA;"}
@@ -0,0 +1,5 @@
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
@@ -0,0 +1 @@
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;"}