@cuemath/leap 3.5.30-gg4 → 3.5.30-j1

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 (271) hide show
  1. package/dist/assets/illustrations/illustrations.js +12 -0
  2. package/dist/assets/illustrations/illustrations.js.map +1 -1
  3. package/dist/assets/images/images.js +8 -0
  4. package/dist/assets/images/images.js.map +1 -1
  5. package/dist/assets/line-icons/icons/carat-right.js +26 -0
  6. package/dist/assets/line-icons/icons/carat-right.js.map +1 -0
  7. package/dist/features/chapters/chapters-list/chapter-item/chapter-circular-progress/chapter-circular-progress.js +3 -3
  8. package/dist/features/chapters/chapters-list/chapter-item/chapter-circular-progress/chapter-circular-progress.js.map +1 -1
  9. package/dist/features/circle-games/game-launcher/comps/carousel/carousel-styled.js +16 -32
  10. package/dist/features/circle-games/game-launcher/comps/carousel/carousel-styled.js.map +1 -1
  11. package/dist/features/circle-games/game-launcher/comps/carousel/carousel.js +88 -87
  12. package/dist/features/circle-games/game-launcher/comps/carousel/carousel.js.map +1 -1
  13. package/dist/features/circle-games/game-launcher/hooks/use-game-launcher-journey/use-game-launcher-journey.js +35 -35
  14. package/dist/features/circle-games/game-launcher/hooks/use-game-launcher-journey/use-game-launcher-journey.js.map +1 -1
  15. package/dist/features/stickers/hooks/use-handle-sticker-send/use-handle-sticker-send.js +0 -1
  16. package/dist/features/stickers/hooks/use-handle-sticker-send/use-handle-sticker-send.js.map +1 -1
  17. package/dist/features/timeline/daily-timeline-styled.js +13 -9
  18. package/dist/features/timeline/daily-timeline-styled.js.map +1 -1
  19. package/dist/features/timeline/daily-timeline-view.js +9 -10
  20. package/dist/features/timeline/daily-timeline-view.js.map +1 -1
  21. package/dist/features/timeline/monthly-report/api/use-monthly-report-get.js +13 -0
  22. package/dist/features/timeline/monthly-report/api/use-monthly-report-get.js.map +1 -0
  23. package/dist/features/timeline/monthly-report/comps/achievements/achievements.js +68 -0
  24. package/dist/features/timeline/monthly-report/comps/achievements/achievements.js.map +1 -0
  25. package/dist/features/timeline/monthly-report/comps/achievements/achievements.styled.js +15 -0
  26. package/dist/features/timeline/monthly-report/comps/achievements/achievements.styled.js.map +1 -0
  27. package/dist/features/timeline/monthly-report/comps/activities/activities-card/activities-card.js +128 -0
  28. package/dist/features/timeline/monthly-report/comps/activities/activities-card/activities-card.js.map +1 -0
  29. package/dist/features/timeline/monthly-report/comps/activities/activities-card/activities-card.styled.js +53 -0
  30. package/dist/features/timeline/monthly-report/comps/activities/activities-card/activities-card.styled.js.map +1 -0
  31. package/dist/features/timeline/monthly-report/comps/activities/activities-card-puzzles/activities-card-puzzles.js +121 -0
  32. package/dist/features/timeline/monthly-report/comps/activities/activities-card-puzzles/activities-card-puzzles.js.map +1 -0
  33. package/dist/features/timeline/monthly-report/comps/activities/activities-card-puzzles/activities-card-puzzles.styled.js +58 -0
  34. package/dist/features/timeline/monthly-report/comps/activities/activities-card-puzzles/activities-card-puzzles.styled.js.map +1 -0
  35. package/dist/features/timeline/monthly-report/comps/activities/activities.js +27 -0
  36. package/dist/features/timeline/monthly-report/comps/activities/activities.js.map +1 -0
  37. package/dist/features/timeline/monthly-report/comps/activities/constants.js +95 -0
  38. package/dist/features/timeline/monthly-report/comps/activities/constants.js.map +1 -0
  39. package/dist/features/timeline/monthly-report/comps/activities/utils.js +15 -0
  40. package/dist/features/timeline/monthly-report/comps/activities/utils.js.map +1 -0
  41. package/dist/features/timeline/monthly-report/comps/attendance/attendance-constants.js +29 -0
  42. package/dist/features/timeline/monthly-report/comps/attendance/attendance-constants.js.map +1 -0
  43. package/dist/features/timeline/monthly-report/comps/attendance/attendance-utils.js +92 -0
  44. package/dist/features/timeline/monthly-report/comps/attendance/attendance-utils.js.map +1 -0
  45. package/dist/features/timeline/monthly-report/comps/attendance/attendance.js +44 -0
  46. package/dist/features/timeline/monthly-report/comps/attendance/attendance.js.map +1 -0
  47. package/dist/features/timeline/monthly-report/comps/attendance/attendance.styled.js +39 -0
  48. package/dist/features/timeline/monthly-report/comps/attendance/attendance.styled.js.map +1 -0
  49. package/dist/features/timeline/monthly-report/comps/attendance/attendence-view.js +52 -0
  50. package/dist/features/timeline/monthly-report/comps/attendance/attendence-view.js.map +1 -0
  51. package/dist/features/timeline/monthly-report/comps/feedback/feedback-styled.js +9 -0
  52. package/dist/features/timeline/monthly-report/comps/feedback/feedback-styled.js.map +1 -0
  53. package/dist/features/timeline/monthly-report/comps/feedback/feedback.js +94 -0
  54. package/dist/features/timeline/monthly-report/comps/feedback/feedback.js.map +1 -0
  55. package/dist/features/timeline/monthly-report/comps/goals/goals-card/goal-chapter-card.js +48 -0
  56. package/dist/features/timeline/monthly-report/comps/goals/goals-card/goal-chapter-card.js.map +1 -0
  57. package/dist/features/timeline/monthly-report/comps/goals/goals-card/goals-card-styled.js +28 -0
  58. package/dist/features/timeline/monthly-report/comps/goals/goals-card/goals-card-styled.js.map +1 -0
  59. package/dist/features/timeline/monthly-report/comps/goals/goals-card/goals-card.js +113 -0
  60. package/dist/features/timeline/monthly-report/comps/goals/goals-card/goals-card.js.map +1 -0
  61. package/dist/features/timeline/monthly-report/comps/goals/goals-constants.js +30 -0
  62. package/dist/features/timeline/monthly-report/comps/goals/goals-constants.js.map +1 -0
  63. package/dist/features/timeline/monthly-report/comps/goals/goals.js +22 -0
  64. package/dist/features/timeline/monthly-report/comps/goals/goals.js.map +1 -0
  65. package/dist/features/timeline/monthly-report/monthly-report-styled.js +14 -0
  66. package/dist/features/timeline/monthly-report/monthly-report-styled.js.map +1 -0
  67. package/dist/features/timeline/monthly-report/monthly-report-types.js +5 -0
  68. package/dist/features/timeline/monthly-report/monthly-report-types.js.map +1 -0
  69. package/dist/features/timeline/monthly-report/monthly-report.js +69 -0
  70. package/dist/features/timeline/monthly-report/monthly-report.js.map +1 -0
  71. package/dist/features/timeline/monthly-timeline/api/use-monthly-timeline-get.js +10 -0
  72. package/dist/features/timeline/monthly-timeline/api/use-monthly-timeline-get.js.map +1 -0
  73. package/dist/features/timeline/monthly-timeline/comps/monthly-card/monthly-card.js +87 -0
  74. package/dist/features/timeline/monthly-timeline/comps/monthly-card/monthly-card.js.map +1 -0
  75. package/dist/features/timeline/monthly-timeline/comps/monthly-card/monthly-card.styled.js +9 -0
  76. package/dist/features/timeline/monthly-timeline/comps/monthly-card/monthly-card.styled.js.map +1 -0
  77. package/dist/features/timeline/monthly-timeline/constants.js +41 -0
  78. package/dist/features/timeline/monthly-timeline/constants.js.map +1 -0
  79. package/dist/features/timeline/monthly-timeline/monthly-timeline-styled.js +13 -0
  80. package/dist/features/timeline/monthly-timeline/monthly-timeline-styled.js.map +1 -0
  81. package/dist/features/timeline/monthly-timeline/monthly-timeline-types.js +6 -0
  82. package/dist/features/timeline/monthly-timeline/monthly-timeline-types.js.map +1 -0
  83. package/dist/features/timeline/monthly-timeline/monthly-timeline-view.js +28 -0
  84. package/dist/features/timeline/monthly-timeline/monthly-timeline-view.js.map +1 -0
  85. package/dist/features/timeline/monthly-timeline/monthly-timeline.js +62 -0
  86. package/dist/features/timeline/monthly-timeline/monthly-timeline.js.map +1 -0
  87. package/dist/features/timeline/ptm-report/api/use-ptm-report-get.js +9 -0
  88. package/dist/features/timeline/ptm-report/api/use-ptm-report-get.js.map +1 -0
  89. package/dist/features/timeline/ptm-report/comps/key-need/key-need-styled.js +9 -0
  90. package/dist/features/timeline/ptm-report/comps/key-need/key-need-styled.js.map +1 -0
  91. package/dist/features/timeline/ptm-report/comps/key-need/key-need.js +35 -0
  92. package/dist/features/timeline/ptm-report/comps/key-need/key-need.js.map +1 -0
  93. package/dist/features/timeline/ptm-report/comps/parent-support/parent-support.js +53 -0
  94. package/dist/features/timeline/ptm-report/comps/parent-support/parent-support.js.map +1 -0
  95. package/dist/features/timeline/ptm-report/comps/real-world-projects/real-world-projects-styled.js +19 -0
  96. package/dist/features/timeline/ptm-report/comps/real-world-projects/real-world-projects-styled.js.map +1 -0
  97. package/dist/features/timeline/ptm-report/comps/real-world-projects/real-world-projects.js +50 -0
  98. package/dist/features/timeline/ptm-report/comps/real-world-projects/real-world-projects.js.map +1 -0
  99. package/dist/features/timeline/ptm-report/comps/report-card/report-card-styled.js +9 -0
  100. package/dist/features/timeline/ptm-report/comps/report-card/report-card-styled.js.map +1 -0
  101. package/dist/features/timeline/ptm-report/comps/report-card/report-card.js +22 -0
  102. package/dist/features/timeline/ptm-report/comps/report-card/report-card.js.map +1 -0
  103. package/dist/features/timeline/ptm-report/comps/school-support/school-support-styled.js +9 -0
  104. package/dist/features/timeline/ptm-report/comps/school-support/school-support-styled.js.map +1 -0
  105. package/dist/features/timeline/ptm-report/comps/school-support/school-support.js +84 -0
  106. package/dist/features/timeline/ptm-report/comps/school-support/school-support.js.map +1 -0
  107. package/dist/features/timeline/ptm-report/comps/strategies/strategies-constant.js +11 -0
  108. package/dist/features/timeline/ptm-report/comps/strategies/strategies-constant.js.map +1 -0
  109. package/dist/features/timeline/ptm-report/comps/strategies/strategies.js +36 -0
  110. package/dist/features/timeline/ptm-report/comps/strategies/strategies.js.map +1 -0
  111. package/dist/features/timeline/ptm-report/comps/strategy-card/strategy-card-styled.js +55 -0
  112. package/dist/features/timeline/ptm-report/comps/strategy-card/strategy-card-styled.js.map +1 -0
  113. package/dist/features/timeline/ptm-report/comps/strategy-card/strategy-card.js +35 -0
  114. package/dist/features/timeline/ptm-report/comps/strategy-card/strategy-card.js.map +1 -0
  115. package/dist/features/timeline/ptm-report/comps/student-info/student-info-styled.js +21 -0
  116. package/dist/features/timeline/ptm-report/comps/student-info/student-info-styled.js.map +1 -0
  117. package/dist/features/timeline/ptm-report/comps/student-info/student-info.js +21 -0
  118. package/dist/features/timeline/ptm-report/comps/student-info/student-info.js.map +1 -0
  119. package/dist/features/timeline/ptm-report/comps/support-card/support-card-styled.js +9 -0
  120. package/dist/features/timeline/ptm-report/comps/support-card/support-card-styled.js.map +1 -0
  121. package/dist/features/timeline/ptm-report/comps/support-card/support-card.js +30 -0
  122. package/dist/features/timeline/ptm-report/comps/support-card/support-card.js.map +1 -0
  123. package/dist/features/timeline/ptm-report/comps/teacher-observations/teacher-observations-constant.js +9 -0
  124. package/dist/features/timeline/ptm-report/comps/teacher-observations/teacher-observations-constant.js.map +1 -0
  125. package/dist/features/timeline/ptm-report/comps/teacher-observations/teacher-observations.js +56 -0
  126. package/dist/features/timeline/ptm-report/comps/teacher-observations/teacher-observations.js.map +1 -0
  127. package/dist/features/timeline/ptm-report/comps/upcoming-chapters/upcoming-chapters.js +15 -0
  128. package/dist/features/timeline/ptm-report/comps/upcoming-chapters/upcoming-chapters.js.map +1 -0
  129. package/dist/features/timeline/ptm-report/ptm-report-constants.js +16 -0
  130. package/dist/features/timeline/ptm-report/ptm-report-constants.js.map +1 -0
  131. package/dist/features/timeline/ptm-report/ptm-report-helpers.js +8 -0
  132. package/dist/features/timeline/ptm-report/ptm-report-helpers.js.map +1 -0
  133. package/dist/features/timeline/ptm-report/ptm-report-styled.js +11 -0
  134. package/dist/features/timeline/ptm-report/ptm-report-styled.js.map +1 -0
  135. package/dist/features/timeline/ptm-report/ptm-report-types.js +5 -0
  136. package/dist/features/timeline/ptm-report/ptm-report-types.js.map +1 -0
  137. package/dist/features/timeline/ptm-report/ptm-report.js +113 -0
  138. package/dist/features/timeline/ptm-report/ptm-report.js.map +1 -0
  139. package/dist/features/timeline/timeline-tabs/timeline-tabs-types.js +5 -0
  140. package/dist/features/timeline/timeline-tabs/timeline-tabs-types.js.map +1 -0
  141. package/dist/features/timeline/timeline-tabs/timeline-tabs.js +42 -0
  142. package/dist/features/timeline/timeline-tabs/timeline-tabs.js.map +1 -0
  143. package/dist/features/timeline/timeline-tabs/timeline-tabs.styled.js +37 -0
  144. package/dist/features/timeline/timeline-tabs/timeline-tabs.styled.js.map +1 -0
  145. package/dist/features/ui/arrow-tooltip/comps/tooltip-body-styled.js.map +1 -1
  146. package/dist/features/ui/arrow-tooltip/comps/tooltip-body.js +11 -11
  147. package/dist/features/ui/arrow-tooltip/comps/tooltip-body.js.map +1 -1
  148. package/dist/features/ui/swipable-carousel/swipable-carousel-styled.js +57 -0
  149. package/dist/features/ui/swipable-carousel/swipable-carousel-styled.js.map +1 -0
  150. package/dist/features/ui/swipable-carousel/swipable-carousel.js +132 -0
  151. package/dist/features/ui/swipable-carousel/swipable-carousel.js.map +1 -0
  152. package/dist/features/ui/swipeable-component/swipeable-component-styled.js.map +1 -0
  153. package/dist/features/ui/swipeable-component/swipeable-component.js +27 -0
  154. package/dist/features/ui/swipeable-component/swipeable-component.js.map +1 -0
  155. package/dist/features/worksheet/user-pointer-pin/hooks/use-user-location.js +20 -21
  156. package/dist/features/worksheet/user-pointer-pin/hooks/use-user-location.js.map +1 -1
  157. package/dist/features/worksheet/user-pointer-pin/user-pin.js +35 -37
  158. package/dist/features/worksheet/user-pointer-pin/user-pin.js.map +1 -1
  159. package/dist/features/worksheet/worksheet/hooks/use-create-imperative-handle.js +132 -132
  160. package/dist/features/worksheet/worksheet/hooks/use-create-imperative-handle.js.map +1 -1
  161. package/dist/features/worksheet/worksheet/hooks/use-get-active-question-id.js +62 -0
  162. package/dist/features/worksheet/worksheet/hooks/use-get-active-question-id.js.map +1 -0
  163. package/dist/features/worksheet/worksheet/hooks/use-time-on-questions.js +19 -24
  164. package/dist/features/worksheet/worksheet/hooks/use-time-on-questions.js.map +1 -1
  165. package/dist/features/worksheet/worksheet/question-tips.js +47 -48
  166. package/dist/features/worksheet/worksheet/question-tips.js.map +1 -1
  167. package/dist/features/worksheet/worksheet/worksheet-action-bar/worksheet-action-bar.js +132 -88
  168. package/dist/features/worksheet/worksheet/worksheet-action-bar/worksheet-action-bar.js.map +1 -1
  169. package/dist/features/worksheet/worksheet/worksheet-blocker/worksheet-blocker.js +55 -44
  170. package/dist/features/worksheet/worksheet/worksheet-blocker/worksheet-blocker.js.map +1 -1
  171. package/dist/features/worksheet/worksheet/worksheet-container.js +87 -0
  172. package/dist/features/worksheet/worksheet/worksheet-container.js.map +1 -0
  173. package/dist/features/worksheet/worksheet/worksheet-helpers.js +112 -109
  174. package/dist/features/worksheet/worksheet/worksheet-helpers.js.map +1 -1
  175. package/dist/features/worksheet/worksheet/worksheet-navigation/worksheet-item-navigation/worksheet-item-navigation.js +27 -25
  176. package/dist/features/worksheet/worksheet/worksheet-navigation/worksheet-item-navigation/worksheet-item-navigation.js.map +1 -1
  177. package/dist/features/worksheet/worksheet/worksheet-navigation/worksheet-item-number/worksheet-item-number.js +47 -47
  178. package/dist/features/worksheet/worksheet/worksheet-navigation/worksheet-item-number/worksheet-item-number.js.map +1 -1
  179. package/dist/features/worksheet/worksheet/worksheet-navigation/worksheet-navigation.js +64 -66
  180. package/dist/features/worksheet/worksheet/worksheet-navigation/worksheet-navigation.js.map +1 -1
  181. package/dist/features/worksheet/worksheet/worksheet-navigation/worksheet-section-navigation/worksheet-section-navigation.js +40 -38
  182. package/dist/features/worksheet/worksheet/worksheet-navigation/worksheet-section-navigation/worksheet-section-navigation.js.map +1 -1
  183. package/dist/features/worksheet/worksheet/worksheet-permissions/error.js.map +1 -1
  184. package/dist/features/worksheet/worksheet/worksheet-question/header/header.js +71 -73
  185. package/dist/features/worksheet/worksheet/worksheet-question/header/header.js.map +1 -1
  186. package/dist/features/worksheet/worksheet/worksheet-question/learnosity-question.js +59 -61
  187. package/dist/features/worksheet/worksheet/worksheet-question/learnosity-question.js.map +1 -1
  188. package/dist/features/worksheet/worksheet/worksheet-question/subjective-review.js +18 -21
  189. package/dist/features/worksheet/worksheet/worksheet-question/subjective-review.js.map +1 -1
  190. package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question.js +272 -269
  191. package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question.js.map +1 -1
  192. package/dist/features/worksheet/worksheet/worksheet-questions-controller/scribble-switch.js +31 -32
  193. package/dist/features/worksheet/worksheet/worksheet-questions-controller/scribble-switch.js.map +1 -1
  194. package/dist/features/worksheet/worksheet/worksheet-questions-controller/use-handler-callbacks.js +149 -147
  195. package/dist/features/worksheet/worksheet/worksheet-questions-controller/use-handler-callbacks.js.map +1 -1
  196. package/dist/features/worksheet/worksheet/worksheet-questions-controller/worksheet-questions-controller.js +223 -212
  197. package/dist/features/worksheet/worksheet/worksheet-questions-controller/worksheet-questions-controller.js.map +1 -1
  198. package/dist/features/worksheet/worksheet/worksheet-questions-summary/worksheet-questions-summary.js +20 -22
  199. package/dist/features/worksheet/worksheet/worksheet-questions-summary/worksheet-questions-summary.js.map +1 -1
  200. package/dist/features/worksheet/worksheet/worksheet-sidebar/question-guide.js +55 -57
  201. package/dist/features/worksheet/worksheet/worksheet-sidebar/question-guide.js.map +1 -1
  202. package/dist/features/worksheet/worksheet/worksheet-sidebar/sidebar.js +42 -47
  203. package/dist/features/worksheet/worksheet/worksheet-sidebar/sidebar.js.map +1 -1
  204. package/dist/features/worksheet/worksheet/worksheet-styled.js +34 -24
  205. package/dist/features/worksheet/worksheet/worksheet-styled.js.map +1 -1
  206. package/dist/features/worksheet/worksheet/worksheet-summary/worksheet-summary.js +12 -16
  207. package/dist/features/worksheet/worksheet/worksheet-summary/worksheet-summary.js.map +1 -1
  208. package/dist/features/worksheet/worksheet/worksheet-summary-controller/worksheet-summary-controller.js +7 -8
  209. package/dist/features/worksheet/worksheet/worksheet-summary-controller/worksheet-summary-controller.js.map +1 -1
  210. package/dist/features/worksheet/worksheet/worksheet-types.js.map +1 -1
  211. package/dist/features/worksheet/worksheet/worksheet.js +441 -203
  212. package/dist/features/worksheet/worksheet/worksheet.js.map +1 -1
  213. package/dist/features/worksheet/worksheet-preview/hooks/use-worksheet-layout.js.map +1 -1
  214. package/dist/features/worksheet/worksheet-preview/worksheet-preview-view.js +1 -1
  215. package/dist/features/worksheet/worksheet-preview/worksheet-preview-view.js.map +1 -1
  216. package/dist/index.d.ts +276 -31
  217. package/dist/index.js +465 -451
  218. package/dist/index.js.map +1 -1
  219. package/dist/static/2021.0683b580.png +0 -0
  220. package/dist/static/2022.d34ad7a5.png +0 -0
  221. package/dist/static/2023.fce87149.png +0 -0
  222. package/dist/static/2024.a275ee85.png +0 -0
  223. package/dist/static/2025.677cc187.png +0 -0
  224. package/dist/static/2026.63763214.png +0 -0
  225. package/dist/static/2027.b82dc039.png +0 -0
  226. package/dist/static/2028.580b8cc0.png +0 -0
  227. package/dist/static/coding-report-icon.91a1e900.svg +1 -0
  228. package/dist/static/elp-icon.d45b457d.svg +1 -0
  229. package/dist/static/empty-reports.fe92faad.svg +1 -0
  230. package/dist/static/english-icon.50c2e005.svg +1 -0
  231. package/dist/static/full-report.00112c74.svg +1 -0
  232. package/dist/static/math-fit-grey.c32f37b3.svg +1 -0
  233. package/dist/static/no-report.4158fad3.svg +1 -0
  234. package/dist/static/ptm-report-icon.5089218f.svg +1 -0
  235. package/dist/static/sat-report-icon.4331be86.svg +1 -0
  236. package/dist/static/science-report-icon.a0014c40.svg +1 -0
  237. package/dist/static/thumps-down.a1192a62.svg +1 -0
  238. package/dist/static/thumps-up.caa35a98.svg +1 -0
  239. package/package.json +3 -4
  240. package/dist/features/circle-games/game-launcher/comps/swipable-component/swipeable-component-styled.js.map +0 -1
  241. package/dist/features/circle-games/game-launcher/comps/swipable-component/swipeable-component.js +0 -26
  242. package/dist/features/circle-games/game-launcher/comps/swipable-component/swipeable-component.js.map +0 -1
  243. package/dist/features/worksheet/worksheet/hooks/use-active-question-observer.js +0 -59
  244. package/dist/features/worksheet/worksheet/hooks/use-active-question-observer.js.map +0 -1
  245. package/dist/features/worksheet/worksheet/hooks/use-worksheet-store.js +0 -13
  246. package/dist/features/worksheet/worksheet/hooks/use-worksheet-store.js.map +0 -1
  247. package/dist/features/worksheet/worksheet/worksheet-blocker/worksheet-blocker-view.js +0 -68
  248. package/dist/features/worksheet/worksheet/worksheet-blocker/worksheet-blocker-view.js.map +0 -1
  249. package/dist/features/worksheet/worksheet/worksheet-calculator/worksheet-calculator.js +0 -17
  250. package/dist/features/worksheet/worksheet/worksheet-calculator/worksheet-calculator.js.map +0 -1
  251. package/dist/features/worksheet/worksheet/worksheet-nudge-banner/worksheet-nudge-banner-styled.js +0 -20
  252. package/dist/features/worksheet/worksheet/worksheet-nudge-banner/worksheet-nudge-banner-styled.js.map +0 -1
  253. package/dist/features/worksheet/worksheet/worksheet-nudge-banner/worksheet-nudge-banner.js +0 -49
  254. package/dist/features/worksheet/worksheet/worksheet-nudge-banner/worksheet-nudge-banner.js.map +0 -1
  255. package/dist/features/worksheet/worksheet/worksheet-provider.js +0 -21
  256. package/dist/features/worksheet/worksheet/worksheet-provider.js.map +0 -1
  257. package/dist/features/worksheet/worksheet/worksheet-questions/worksheet-questions-styled.js +0 -16
  258. package/dist/features/worksheet/worksheet/worksheet-questions/worksheet-questions-styled.js.map +0 -1
  259. package/dist/features/worksheet/worksheet/worksheet-questions/worksheet-questions.js +0 -73
  260. package/dist/features/worksheet/worksheet/worksheet-questions/worksheet-questions.js.map +0 -1
  261. package/dist/features/worksheet/worksheet/worksheet-store.js +0 -301
  262. package/dist/features/worksheet/worksheet/worksheet-store.js.map +0 -1
  263. package/dist/features/worksheet/worksheet/worksheet-view.js +0 -141
  264. package/dist/features/worksheet/worksheet/worksheet-view.js.map +0 -1
  265. package/dist/node_modules/zustand/esm/middleware.js +0 -22
  266. package/dist/node_modules/zustand/esm/middleware.js.map +0 -1
  267. package/dist/node_modules/zustand/esm/react/shallow.js +0 -13
  268. package/dist/node_modules/zustand/esm/react/shallow.js.map +0 -1
  269. package/dist/node_modules/zustand/esm/vanilla/shallow.js +0 -31
  270. package/dist/node_modules/zustand/esm/vanilla/shallow.js.map +0 -1
  271. /package/dist/features/{circle-games/game-launcher/comps/swipable-component → ui/swipeable-component}/swipeable-component-styled.js +0 -0
@@ -1,109 +1,107 @@
1
- import { jsxs as Rt, jsx as i } from "react/jsx-runtime";
2
- import { deepEqual as Dt } from "../../../../node_modules/fast-equals/dist/esm/index.js";
3
- import { memo as zt, useState as Q, useEffect as y, useMemo as Qt } from "react";
4
- import Ut from "../../../../assets/line-icons/icons/check2.js";
5
- import Nt from "../../../../assets/line-icons/icons/hand.js";
6
- import Vt from "../../../../assets/line-icons/icons/question.js";
7
- import Lt from "../../../../assets/line-icons/icons/skip.js";
8
- import r from "../../../ui/buttons/button/button.js";
9
- import x from "../../../ui/buttons/icon-button/icon-button.js";
10
- import Wt from "../../../ui/layout/flex-view.js";
11
- import Ht from "./use-handler-callbacks.js";
12
- import { useWorksheetStore as Mt } from "../hooks/use-worksheet-store.js";
13
- const ne = zt(
14
- function(st) {
15
- var et, nt, it;
1
+ import { jsxs as Ht, jsx as i } from "react/jsx-runtime";
2
+ import { deepEqual as Mt } from "../../../../node_modules/fast-equals/dist/esm/index.js";
3
+ import { memo as Xt, useState as N, useEffect as C, useMemo as $t } from "react";
4
+ import Wt from "../../../../assets/line-icons/icons/check2.js";
5
+ import jt from "../../../../assets/line-icons/icons/hand.js";
6
+ import Pt from "../../../../assets/line-icons/icons/question.js";
7
+ import Ft from "../../../../assets/line-icons/icons/skip.js";
8
+ import a from "../../../ui/buttons/button/button.js";
9
+ import A from "../../../ui/buttons/icon-button/icon-button.js";
10
+ import Gt from "../../../ui/layout/flex-view.js";
11
+ import Ot from "./use-handler-callbacks.js";
12
+ const le = Xt(
13
+ function(L) {
14
+ var nt, it, ot;
16
15
  const {
17
- behavior: C,
18
- questions: U,
19
- userType: d,
20
- responses: N,
21
- questionIndex: V,
22
- lastUnlockedQuestionIndex: at,
23
- learnosity: T,
24
- onSkip: A,
25
- canSubmitWorksheet: L,
26
- actionBarRightElement: W
27
- } = Mt((e) => ({
28
- behavior: e.behavior,
29
- questions: e.questions,
30
- userType: e.userType,
31
- responses: e.responses,
32
- questionIndex: e.activeQuestionIndex,
33
- lastUnlockedQuestionIndex: e.lastUnlockedQuestionIndex,
34
- learnosity: e.learnosity,
35
- onSkip: e.onSkip,
36
- canSubmitWorksheet: e.canSubmitWorksheet,
37
- actionBarRightElement: e.actionBarRightElement
38
- })), H = V <= at, { question: l, isQuestionAppended: m, response: t, getTimeSpentOnQuestion: rt, onSubmit: ut } = st, {
16
+ layout: rt,
17
+ learnosity: f,
18
+ question: u,
19
+ questions: T,
20
+ responses: Q,
21
+ questionIndex: U,
22
+ canSubmitWorksheet: H,
23
+ isQuestionUnlocked: M,
24
+ isQuestionAppended: d,
25
+ response: t,
26
+ behavior: p,
27
+ userType: m,
28
+ setActiveQuestionId: at,
29
+ setSummaryVisible: lt,
30
+ setBlocker: ut,
31
+ setResponses: ct,
32
+ getTimeSpentOnQuestion: dt,
33
+ onSkip: g,
34
+ actionBarRightElement: X,
35
+ onSubmit: mt
36
+ } = L, { onHelp: Bt, onResponseChange: ht, onTeacherValidation: kt, loggerRef: ft } = L, {
39
37
  navigationMode: I,
40
38
  canAttempt: o,
41
- hints: lt,
42
- checkButtonLabel: ct,
43
- retryButtonLabel: dt,
39
+ hints: pt,
40
+ checkButtonLabel: bt,
41
+ retryButtonLabel: St,
44
42
  validation: c,
45
- maximumAttempts: g,
46
- canExceedAttempts: M,
47
- teacherValidationEnabled: X,
48
- canTeacherValidate: u,
49
- hintsTimer: v,
50
- skippableTime: $,
51
- skippable: j
52
- } = C, { response_id: E, item_type: mt, type: _, instructor_stimulus: Bt, is_optional: P } = l, p = lt ? ((it = (nt = (et = T.question(E)) == null ? void 0 : et.getMetadata()) == null ? void 0 : nt.hints) == null ? void 0 : it.length) ?? 0 : 0, q = Bt === "SystemIntro", w = mt === "exit-ticket", B = o && p - ((t == null ? void 0 : t.hintsUsed) ?? 0) > 0, [s, F] = Q(!1), [G, O] = Q(!1), [J, f] = Q(!1);
53
- y(() => {
54
- if (v && B) {
55
- const e = setTimeout(() => {
56
- F(!0);
57
- }, v * 1e3);
58
- return () => clearTimeout(e);
43
+ maximumAttempts: v,
44
+ canExceedAttempts: $,
45
+ teacherValidationEnabled: W,
46
+ canTeacherValidate: l,
47
+ hintsTimer: E,
48
+ skippableTime: j,
49
+ skippable: P
50
+ } = p, { response_id: _, item_type: yt, type: R, instructor_stimulus: xt, is_optional: F } = u, b = pt ? ((ot = (it = (nt = f.question(_)) == null ? void 0 : nt.getMetadata()) == null ? void 0 : it.hints) == null ? void 0 : ot.length) ?? 0 : 0, w = xt === "SystemIntro", D = yt === "exit-ticket", B = o && b - ((t == null ? void 0 : t.hintsUsed) ?? 0) > 0, [s, G] = N(!1), [O, J] = N(!1), [K, S] = N(!1);
51
+ C(() => {
52
+ if (E && B) {
53
+ const n = setTimeout(() => {
54
+ G(!0);
55
+ }, E * 1e3);
56
+ return () => clearTimeout(n);
59
57
  }
60
- F(B);
61
- }, [v, B]), y(() => {
62
- const e = !(t != null && t.response) && !(t != null && t.skipped);
63
- if (j)
64
- if (p > 0 && !B)
65
- f(e);
66
- else if (p === 0 && e) {
67
- const S = setTimeout(
58
+ G(B);
59
+ }, [E, B]), C(() => {
60
+ const n = !(t != null && t.response) && !(t != null && t.skipped);
61
+ if (P)
62
+ if (b > 0 && !B)
63
+ S(n);
64
+ else if (b === 0 && n) {
65
+ const x = setTimeout(
68
66
  () => {
69
- f(e);
67
+ S(n);
70
68
  },
71
- ($ ?? 0) * 1e3
69
+ (j ?? 0) * 1e3
72
70
  );
73
- return () => clearTimeout(S);
71
+ return () => clearTimeout(x);
74
72
  } else
75
- f(!1);
76
- }, [p, B, t, j, $]);
73
+ S(!1);
74
+ }, [b, B, t, P, j]);
77
75
  const {
78
- checkButton: k,
79
- checkButtonDisabled: kt,
80
- hintsButton: K,
81
- retryButton: b,
82
- nextButton: ht,
83
- nextButtonDisabled: pt,
84
- startButton: ft,
85
- readyButton: bt,
86
- validateButton: St,
87
- skipSectionButton: yt,
88
- submitAttemptButton: Y,
89
- skipButton: xt
90
- } = Qt(() => {
91
- const e = u && P && (t == null ? void 0 : t.assignStatus) === "assigned", S = () => {
92
- var ot;
93
- if (g === -2)
94
- return d === "STUDENT" && o ? {
76
+ checkButton: h,
77
+ checkButtonDisabled: Ct,
78
+ hintsButton: Y,
79
+ retryButton: y,
80
+ nextButton: At,
81
+ nextButtonDisabled: Tt,
82
+ startButton: gt,
83
+ readyButton: It,
84
+ validateButton: vt,
85
+ skipSectionButton: Et,
86
+ submitAttemptButton: Z,
87
+ skipButton: _t
88
+ } = $t(() => {
89
+ const n = l && F && (t == null ? void 0 : t.assignStatus) === "assigned", x = () => {
90
+ var st;
91
+ if (v === -2)
92
+ return m === "STUDENT" && o ? {
95
93
  hintsButton: s
96
94
  } : {};
97
95
  if (!o)
98
96
  return {
99
97
  nextButton: !0
100
98
  };
101
- if (!c && C.navigationMode === "LINEAR")
99
+ if (!c && p.navigationMode === "LINEAR")
102
100
  return {
103
101
  nextButton: !0,
104
102
  nextButtonDisabled: !(t != null && t.response),
105
103
  hintsButton: s,
106
- skipButton: J
104
+ skipButton: K
107
105
  };
108
106
  if (!c)
109
107
  return {
@@ -116,136 +114,149 @@ const ne = zt(
116
114
  checkButtonDisabled: !0,
117
115
  hintsButton: s
118
116
  };
119
- const { responseEdited: h, score: a, attemptsHistory: n } = t, z = ((n == null ? void 0 : n.length) ?? 0) >= g;
120
- if (z && !M)
117
+ const { responseEdited: k, score: r, attemptsHistory: e } = t, q = ((e == null ? void 0 : e.length) ?? 0) >= v;
118
+ if (q && !$)
121
119
  return {
122
120
  nextButton: !0
123
121
  };
124
- if (h) {
125
- const wt = (ot = n == null ? void 0 : n.slice(-1)[0]) == null ? void 0 : ot.response;
122
+ if (k) {
123
+ const Ut = (st = e == null ? void 0 : e.slice(-1)[0]) == null ? void 0 : st.response;
126
124
  return {
127
- nextButton: z,
125
+ nextButton: q,
128
126
  checkButton: !0,
129
- checkButtonDisabled: Dt(t.response, wt),
127
+ checkButtonDisabled: Mt(t.response, Ut),
130
128
  hintsButton: s
131
129
  };
132
130
  }
133
- return (a.score ?? 0) < a.max_score ? {
134
- nextButton: z,
131
+ return (r.score ?? 0) < r.max_score ? {
132
+ nextButton: q,
135
133
  retryButton: !0,
136
134
  hintsButton: s
137
- } : (a.score ?? 0) === a.max_score ? {
135
+ } : (r.score ?? 0) === r.max_score ? {
138
136
  nextButton: !0
139
137
  } : {};
140
- }, qt = () => U.some(({ response_id: h }) => {
141
- const { assignStatus: a, validatedByTeacher: n } = N[h] ?? {};
142
- return a === "skipped" ? !1 : n !== !0;
138
+ }, Qt = () => T.some(({ response_id: k }) => {
139
+ const { assignStatus: r, validatedByTeacher: e } = Q[k] ?? {};
140
+ return r === "skipped" ? !1 : e !== !0;
143
141
  });
144
- if (X) {
145
- const { validatedByTeacher: h } = t ?? {};
142
+ if (W) {
143
+ const { validatedByTeacher: k } = t ?? {};
146
144
  if (I === "ADAPTIVE" || I === "CURRENT")
147
- return d === "STUDENT" ? {
145
+ return m === "STUDENT" ? {
148
146
  hintsButton: s,
149
147
  validateButton: !1
150
148
  } : {
151
149
  validateButton: !1
152
150
  };
153
- if (h)
151
+ if (k)
154
152
  return {
155
153
  validateButton: !0,
156
- submitAttemptButton: u && o && d === "STUDENT" && L ? !qt() : !1
154
+ submitAttemptButton: l && o && m === "STUDENT" && H ? !Qt() : !1
157
155
  };
158
- if (!H)
156
+ if (!M)
159
157
  return {};
160
- if (d === "STUDENT")
161
- return q ? {
162
- startButton: u && o
163
- } : _ !== "clozetext" ? {
164
- ...S(),
158
+ if (m === "STUDENT")
159
+ return w ? {
160
+ startButton: l && o
161
+ } : R !== "clozetext" ? {
162
+ ...x(),
165
163
  nextButton: !1
166
164
  } : {
167
165
  hintsButton: s,
168
- readyButton: u && w && !(t != null && t.submittedByStudent)
166
+ readyButton: l && D && !(t != null && t.submittedByStudent)
169
167
  };
170
- if (q)
168
+ if (w)
171
169
  return {
172
- skipSectionButton: e
170
+ skipSectionButton: n
173
171
  };
174
- if (_ !== "clozetext") {
175
- const { responseEdited: a, score: n } = t ?? {};
172
+ if (R !== "clozetext") {
173
+ const { responseEdited: r, score: e } = t ?? {};
176
174
  return {
177
- skipSectionButton: e,
178
- validateButton: a || !u ? !1 : !!(n != null && n.score && (n != null && n.max_score) && !((n.score ?? 0) < n.max_score))
175
+ skipSectionButton: n,
176
+ validateButton: r || !l ? !1 : !!(e != null && e.score && (e != null && e.max_score) && !((e.score ?? 0) < e.max_score))
179
177
  };
180
178
  }
181
179
  return {
182
- skipSectionButton: e,
183
- validateButton: u && (w ? t == null ? void 0 : t.submittedByStudent : !0)
180
+ skipSectionButton: n,
181
+ validateButton: l && (D ? t == null ? void 0 : t.submittedByStudent : !0)
184
182
  };
185
183
  }
186
- return S();
184
+ return x();
187
185
  }, [
188
- u,
189
- P,
186
+ l,
187
+ F,
190
188
  t,
191
- X,
189
+ W,
192
190
  o,
193
191
  c,
194
- C.navigationMode,
195
- g,
196
- M,
192
+ p.navigationMode,
193
+ v,
194
+ $,
197
195
  s,
198
- J,
199
- U,
200
- N,
196
+ K,
197
+ T,
198
+ Q,
201
199
  I,
202
- H,
203
- d,
204
- q,
205
- _,
200
+ M,
201
+ m,
206
202
  w,
207
- L
203
+ R,
204
+ D,
205
+ H
208
206
  ]), {
209
- handleResponseChange: R,
210
- handleHelpButtonClick: Z,
211
- handleBackButtonClick: tt,
212
- handleNextButtonClick: D,
213
- handleCheckButtonClick: Ct,
214
- handleRetryButtonClick: Tt,
215
- handleHintButtonClick: At,
216
- handleValidateButtonClick: It,
217
- handleStartButtonClick: gt,
218
- handleSkipSectionButtonClick: vt,
219
- handleReadyButtonClick: Et,
220
- handleSkipButtonClick: _t
221
- } = Ht({
222
- question: l,
223
- setSkipped: O,
224
- getTimeSpentOnQuestion: rt
207
+ handleResponseChange: z,
208
+ handleHelpButtonClick: tt,
209
+ handleBackButtonClick: et,
210
+ handleNextButtonClick: V,
211
+ handleCheckButtonClick: Rt,
212
+ handleRetryButtonClick: wt,
213
+ handleHintButtonClick: Dt,
214
+ handleValidateButtonClick: zt,
215
+ handleStartButtonClick: Vt,
216
+ handleSkipSectionButtonClick: qt,
217
+ handleReadyButtonClick: Nt,
218
+ handleSkipButtonClick: Lt
219
+ } = Ot({
220
+ layout: rt,
221
+ question: u,
222
+ questions: T,
223
+ learnosity: f,
224
+ questionIndex: U,
225
+ setActiveQuestionId: at,
226
+ setSummaryVisible: lt,
227
+ setBlocker: ut,
228
+ setResponses: ct,
229
+ onResponseChange: ht,
230
+ onTeacherValidation: kt,
231
+ onHelp: Bt,
232
+ behavior: p,
233
+ loggerRef: ft,
234
+ setSkipped: J,
235
+ getTimeSpentOnQuestion: dt
225
236
  });
226
- return y(() => {
227
- G && (O(!1), f(!1), D(), A && A(l.item_display_number, l.question_number));
237
+ return C(() => {
238
+ O && (J(!1), S(!1), V(), g && g(u.item_display_number, u.question_number));
228
239
  }, [
229
- D,
230
- A,
231
- l.item_display_number,
232
- l.question_number,
233
- G
234
- ]), y(() => {
235
- const e = m ? T.question(E) : void 0;
236
- return e && o && (!c || k) && (e.on("changed", R), e.enable()), () => {
237
- e && o && (!c || k) && (e.off("changed", R), e.disable());
240
+ V,
241
+ g,
242
+ u.item_display_number,
243
+ u.question_number,
244
+ O
245
+ ]), C(() => {
246
+ const n = d ? f.question(_) : void 0;
247
+ return n && o && (!c || h) && (n.on("changed", z), n.enable()), () => {
248
+ n && o && (!c || h) && (n.off("changed", z), n.disable());
238
249
  };
239
250
  }, [
240
251
  o,
241
- k,
242
- R,
243
- m,
244
- T,
245
- E,
252
+ h,
253
+ z,
254
+ d,
255
+ f,
256
+ _,
246
257
  c
247
- ]), /* @__PURE__ */ Rt(
248
- Wt,
258
+ ]), /* @__PURE__ */ Ht(
259
+ Gt,
249
260
  {
250
261
  $background: "WHITE",
251
262
  $flexDirection: "row",
@@ -253,107 +264,107 @@ const ne = zt(
253
264
  $alignItems: "center",
254
265
  $justifyContent: "flex-end",
255
266
  children: [
256
- K && /* @__PURE__ */ i(
257
- x,
267
+ Y && /* @__PURE__ */ i(
268
+ A,
258
269
  {
259
- Icon: Vt,
270
+ Icon: Pt,
260
271
  analyticsLabel: "Hint",
261
272
  renderAs: "secondary",
262
- disabled: !m,
263
- onClick: At
273
+ disabled: !d,
274
+ onClick: Dt
264
275
  }
265
276
  ),
266
- !K && Z && (k || b) && /* @__PURE__ */ i(
267
- x,
277
+ !Y && tt && (h || y) && /* @__PURE__ */ i(
278
+ A,
268
279
  {
269
- Icon: Nt,
280
+ Icon: jt,
270
281
  analyticsLabel: "Ask for help",
271
282
  renderAs: "secondary",
272
- onClick: Z
283
+ onClick: tt
273
284
  }
274
285
  ),
275
- tt && /* @__PURE__ */ i(
276
- r,
286
+ et && /* @__PURE__ */ i(
287
+ a,
277
288
  {
278
289
  widthX: 6,
279
290
  renderAs: "secondary",
280
291
  size: "small",
281
292
  label: "Back",
282
- disabled: V === 0,
283
- onClick: tt
293
+ disabled: U === 0,
294
+ onClick: et
284
295
  }
285
296
  ),
286
- xt && /* @__PURE__ */ i(
287
- r,
297
+ _t && /* @__PURE__ */ i(
298
+ a,
288
299
  {
289
300
  widthX: 6,
290
- renderAs: b ? "secondary" : "primary",
301
+ renderAs: y ? "secondary" : "primary",
291
302
  size: "small",
292
303
  label: "Skip",
293
- onClick: _t
304
+ onClick: Lt
294
305
  }
295
306
  ),
296
- ht && /* @__PURE__ */ i(
297
- r,
307
+ At && /* @__PURE__ */ i(
308
+ a,
298
309
  {
299
310
  widthX: 6,
300
- renderAs: b ? "secondary" : "primary",
311
+ renderAs: y ? "secondary" : "primary",
301
312
  size: "small",
302
313
  label: "Next",
303
- onClick: D,
304
- disabled: pt === !0
314
+ onClick: V,
315
+ disabled: Tt === !0
305
316
  }
306
317
  ),
307
- b && /* @__PURE__ */ i(
308
- r,
318
+ y && /* @__PURE__ */ i(
319
+ a,
309
320
  {
310
321
  widthX: 6,
311
322
  renderAs: "primary",
312
323
  size: "small",
313
- label: dt,
314
- disabled: !m,
315
- onClick: Tt
324
+ label: St,
325
+ disabled: !d,
326
+ onClick: wt
316
327
  }
317
328
  ),
318
- k && /* @__PURE__ */ i(
319
- r,
329
+ h && /* @__PURE__ */ i(
330
+ a,
320
331
  {
321
332
  renderAs: "primary",
322
333
  size: "small",
323
- label: ct,
324
- disabled: kt === !0 || !m,
325
- onClick: Ct
334
+ label: bt,
335
+ disabled: Ct === !0 || !d,
336
+ onClick: Rt
326
337
  }
327
338
  ),
328
- ft && /* @__PURE__ */ i(r, { renderAs: "primary", size: "small", label: "Start", onClick: gt }),
329
- bt && /* @__PURE__ */ i(r, { renderAs: "primary", size: "small", label: "Submit", onClick: Et }),
330
- yt && /* @__PURE__ */ i(
331
- x,
339
+ gt && /* @__PURE__ */ i(a, { renderAs: "primary", size: "small", label: "Start", onClick: Vt }),
340
+ It && /* @__PURE__ */ i(a, { renderAs: "primary", size: "small", label: "Submit", onClick: Nt }),
341
+ Et && /* @__PURE__ */ i(
342
+ A,
332
343
  {
333
344
  renderAs: "primary",
334
- Icon: Lt,
345
+ Icon: Ft,
335
346
  analyticsLabel: "Skip Section",
336
- onClick: vt
347
+ onClick: qt
337
348
  }
338
349
  ),
339
- !Y && St && /* @__PURE__ */ i(
340
- x,
350
+ !Z && vt && /* @__PURE__ */ i(
351
+ A,
341
352
  {
342
353
  renderAs: "primary",
343
- Icon: Ut,
354
+ Icon: Wt,
344
355
  disabled: t == null ? void 0 : t.validatedByTeacher,
345
356
  analyticsLabel: "Validate",
346
- onClick: It
357
+ onClick: zt
347
358
  }
348
359
  ),
349
- Y && /* @__PURE__ */ i(r, { renderAs: "primary", size: "small", label: "Submit", onClick: ut }),
350
- W && W
360
+ Z && /* @__PURE__ */ i(a, { renderAs: "primary", size: "small", label: "Submit", onClick: mt }),
361
+ X && X
351
362
  ]
352
363
  }
353
364
  );
354
365
  }
355
366
  );
356
367
  export {
357
- ne as default
368
+ le as default
358
369
  };
359
370
  //# sourceMappingURL=worksheet-questions-controller.js.map