@magmamath/students-features 1.2.1-rc.39 → 1.2.1-rc.4

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 (507) hide show
  1. package/dist/commonjs/features/chatbot/components/ChatInput/ChatInput.js +1 -2
  2. package/dist/commonjs/features/chatbot/components/ChatInput/ChatInput.js.map +1 -1
  3. package/dist/commonjs/features/chatbot/components/ChatMessage/MessageContent.js +1 -2
  4. package/dist/commonjs/features/chatbot/components/ChatMessage/MessageContent.js.map +1 -1
  5. package/dist/commonjs/features/endOfAssignment/components/AssessmentScoreCard/AssessmentScoreCard.js +1 -1
  6. package/dist/commonjs/features/endOfAssignment/components/AssessmentScoreCard/AssessmentScoreCard.js.map +1 -1
  7. package/dist/commonjs/features/voice/constants.js +8 -2
  8. package/dist/commonjs/features/voice/constants.js.map +1 -1
  9. package/dist/commonjs/features/voice/recording/components/VoiceRecord.js +16 -5
  10. package/dist/commonjs/features/voice/recording/components/VoiceRecord.js.map +1 -1
  11. package/dist/commonjs/features/voice/recording/components/VoiceRecordButton.js +68 -20
  12. package/dist/commonjs/features/voice/recording/components/VoiceRecordButton.js.map +1 -1
  13. package/dist/commonjs/features/voice/recording/components/VoiceRecordDeleteButton.js +2 -2
  14. package/dist/commonjs/features/voice/recording/hooks/useVoiceRecorderAnimation.js +2 -2
  15. package/dist/commonjs/features/voice/recording/hooks/useVoiceRecorderAnimation.js.map +1 -1
  16. package/dist/commonjs/features/voice/recording/model/VoiceRecord.model.js +5 -0
  17. package/dist/commonjs/features/voice/recording/model/VoiceRecord.model.js.map +1 -1
  18. package/dist/commonjs/features/voice/types.js +6 -0
  19. package/dist/commonjs/features/voice/types.js.map +1 -1
  20. package/dist/commonjs/index.js +3 -15
  21. package/dist/commonjs/index.js.map +1 -1
  22. package/dist/commonjs/shared/translation/localization/ca.json +0 -24
  23. package/dist/commonjs/shared/translation/localization/de.json +0 -24
  24. package/dist/commonjs/shared/translation/localization/en.json +0 -24
  25. package/dist/commonjs/shared/translation/localization/gb.json +0 -24
  26. package/dist/commonjs/shared/translation/localization/sct.json +0 -24
  27. package/dist/commonjs/shared/translation/localization/sw.json +0 -24
  28. package/dist/module/features/chatbot/components/ChatInput/ChatInput.js +1 -2
  29. package/dist/module/features/chatbot/components/ChatInput/ChatInput.js.map +1 -1
  30. package/dist/module/features/chatbot/components/ChatMessage/MessageContent.js +1 -2
  31. package/dist/module/features/chatbot/components/ChatMessage/MessageContent.js.map +1 -1
  32. package/dist/module/features/endOfAssignment/components/AssessmentScoreCard/AssessmentScoreCard.js +2 -2
  33. package/dist/module/features/endOfAssignment/components/AssessmentScoreCard/AssessmentScoreCard.js.map +1 -1
  34. package/dist/module/features/voice/constants.js +8 -2
  35. package/dist/module/features/voice/constants.js.map +1 -1
  36. package/dist/module/features/voice/recording/components/VoiceRecord.js +17 -6
  37. package/dist/module/features/voice/recording/components/VoiceRecord.js.map +1 -1
  38. package/dist/module/features/voice/recording/components/VoiceRecordButton.js +69 -21
  39. package/dist/module/features/voice/recording/components/VoiceRecordButton.js.map +1 -1
  40. package/dist/module/features/voice/recording/components/VoiceRecordDeleteButton.js +2 -2
  41. package/dist/module/features/voice/recording/hooks/useVoiceRecorderAnimation.js +2 -2
  42. package/dist/module/features/voice/recording/hooks/useVoiceRecorderAnimation.js.map +1 -1
  43. package/dist/module/features/voice/recording/model/VoiceRecord.model.js +5 -0
  44. package/dist/module/features/voice/recording/model/VoiceRecord.model.js.map +1 -1
  45. package/dist/module/features/voice/types.js +5 -1
  46. package/dist/module/features/voice/types.js.map +1 -1
  47. package/dist/module/index.js +0 -1
  48. package/dist/module/index.js.map +1 -1
  49. package/dist/module/shared/translation/localization/ca.json +0 -24
  50. package/dist/module/shared/translation/localization/de.json +0 -24
  51. package/dist/module/shared/translation/localization/en.json +0 -24
  52. package/dist/module/shared/translation/localization/gb.json +0 -24
  53. package/dist/module/shared/translation/localization/sct.json +0 -24
  54. package/dist/module/shared/translation/localization/sw.json +0 -24
  55. package/dist/typescript/commonjs/features/chatbot/components/ChatInput/ChatInput.d.ts.map +1 -1
  56. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/MessageContent.d.ts.map +1 -1
  57. package/dist/typescript/commonjs/features/voice/constants.d.ts +8 -2
  58. package/dist/typescript/commonjs/features/voice/constants.d.ts.map +1 -1
  59. package/dist/typescript/commonjs/features/voice/recording/components/VoiceRecord.d.ts.map +1 -1
  60. package/dist/typescript/commonjs/features/voice/recording/components/VoiceRecordButton.d.ts +1 -3
  61. package/dist/typescript/commonjs/features/voice/recording/components/VoiceRecordButton.d.ts.map +1 -1
  62. package/dist/typescript/commonjs/features/voice/recording/hooks/useVoiceRecorderAnimation.d.ts +2 -1
  63. package/dist/typescript/commonjs/features/voice/recording/hooks/useVoiceRecorderAnimation.d.ts.map +1 -1
  64. package/dist/typescript/commonjs/features/voice/recording/model/VoiceRecord.model.d.ts +3 -1
  65. package/dist/typescript/commonjs/features/voice/recording/model/VoiceRecord.model.d.ts.map +1 -1
  66. package/dist/typescript/commonjs/features/voice/types.d.ts +4 -0
  67. package/dist/typescript/commonjs/features/voice/types.d.ts.map +1 -1
  68. package/dist/typescript/commonjs/index.d.ts +0 -1
  69. package/dist/typescript/commonjs/index.d.ts.map +1 -1
  70. package/dist/typescript/commonjs/shared/translation/constants.d.ts +0 -144
  71. package/dist/typescript/commonjs/shared/translation/constants.d.ts.map +1 -1
  72. package/dist/typescript/commonjs/shared/translation/model.d.ts +0 -48
  73. package/dist/typescript/commonjs/shared/translation/model.d.ts.map +1 -1
  74. package/dist/typescript/module/features/chatbot/components/ChatInput/ChatInput.d.ts.map +1 -1
  75. package/dist/typescript/module/features/chatbot/components/ChatMessage/MessageContent.d.ts.map +1 -1
  76. package/dist/typescript/module/features/voice/constants.d.ts +8 -2
  77. package/dist/typescript/module/features/voice/constants.d.ts.map +1 -1
  78. package/dist/typescript/module/features/voice/recording/components/VoiceRecord.d.ts.map +1 -1
  79. package/dist/typescript/module/features/voice/recording/components/VoiceRecordButton.d.ts +1 -3
  80. package/dist/typescript/module/features/voice/recording/components/VoiceRecordButton.d.ts.map +1 -1
  81. package/dist/typescript/module/features/voice/recording/hooks/useVoiceRecorderAnimation.d.ts +2 -1
  82. package/dist/typescript/module/features/voice/recording/hooks/useVoiceRecorderAnimation.d.ts.map +1 -1
  83. package/dist/typescript/module/features/voice/recording/model/VoiceRecord.model.d.ts +3 -1
  84. package/dist/typescript/module/features/voice/recording/model/VoiceRecord.model.d.ts.map +1 -1
  85. package/dist/typescript/module/features/voice/types.d.ts +4 -0
  86. package/dist/typescript/module/features/voice/types.d.ts.map +1 -1
  87. package/dist/typescript/module/index.d.ts +0 -1
  88. package/dist/typescript/module/index.d.ts.map +1 -1
  89. package/dist/typescript/module/shared/translation/constants.d.ts +0 -144
  90. package/dist/typescript/module/shared/translation/constants.d.ts.map +1 -1
  91. package/dist/typescript/module/shared/translation/model.d.ts +0 -48
  92. package/dist/typescript/module/shared/translation/model.d.ts.map +1 -1
  93. package/package.json +13 -25
  94. package/src/features/chatbot/components/ChatInput/ChatInput.tsx +1 -2
  95. package/src/features/chatbot/components/ChatMessage/MessageContent.tsx +1 -2
  96. package/src/features/endOfAssignment/components/AssessmentScoreCard/AssessmentScoreCard.tsx +2 -2
  97. package/src/features/voice/constants.ts +8 -2
  98. package/src/features/voice/recording/components/VoiceRecord.tsx +26 -5
  99. package/src/features/voice/recording/components/VoiceRecordButton.tsx +91 -29
  100. package/src/features/voice/recording/components/VoiceRecordDeleteButton.tsx +2 -2
  101. package/src/features/voice/recording/hooks/useVoiceRecorderAnimation.ts +7 -3
  102. package/src/features/voice/recording/model/VoiceRecord.model.ts +7 -0
  103. package/src/features/voice/types.ts +5 -0
  104. package/src/index.ts +0 -1
  105. package/src/shared/translation/localization/ca.json +0 -24
  106. package/src/shared/translation/localization/de.json +0 -24
  107. package/src/shared/translation/localization/en.json +0 -24
  108. package/src/shared/translation/localization/gb.json +0 -24
  109. package/src/shared/translation/localization/sct.json +0 -24
  110. package/src/shared/translation/localization/sw.json +0 -24
  111. package/dist/commonjs/features/pmProgress/PmProgress.js +0 -42
  112. package/dist/commonjs/features/pmProgress/PmProgress.js.map +0 -1
  113. package/dist/commonjs/features/pmProgress/components/chart/chart.helpers.js +0 -24
  114. package/dist/commonjs/features/pmProgress/components/chart/chart.helpers.js.map +0 -1
  115. package/dist/commonjs/features/pmProgress/components/chart/chart.types.js +0 -2
  116. package/dist/commonjs/features/pmProgress/components/chart/chart.types.js.map +0 -1
  117. package/dist/commonjs/features/pmProgress/components/chart/components/PracticeProgressPieChart.js +0 -44
  118. package/dist/commonjs/features/pmProgress/components/chart/components/PracticeProgressPieChart.js.map +0 -1
  119. package/dist/commonjs/features/pmProgress/components/chart/components/SlicesClipPaths.js +0 -26
  120. package/dist/commonjs/features/pmProgress/components/chart/components/SlicesClipPaths.js.map +0 -1
  121. package/dist/commonjs/features/pmProgress/components/chart/components/SlicesPaths.js +0 -87
  122. package/dist/commonjs/features/pmProgress/components/chart/components/SlicesPaths.js.map +0 -1
  123. package/dist/commonjs/features/pmProgress/components/chart/components/layers/SliceArcPattern.js +0 -38
  124. package/dist/commonjs/features/pmProgress/components/chart/components/layers/SliceArcPattern.js.map +0 -1
  125. package/dist/commonjs/features/pmProgress/components/chart/components/layers/SliceBackgroundColor.js +0 -21
  126. package/dist/commonjs/features/pmProgress/components/chart/components/layers/SliceBackgroundColor.js.map +0 -1
  127. package/dist/commonjs/features/pmProgress/components/chart/components/layers/SliceFillColor.js +0 -82
  128. package/dist/commonjs/features/pmProgress/components/chart/components/layers/SliceFillColor.js.map +0 -1
  129. package/dist/commonjs/features/pmProgress/components/chart/model/ArcPatternGenerator.js +0 -49
  130. package/dist/commonjs/features/pmProgress/components/chart/model/ArcPatternGenerator.js.map +0 -1
  131. package/dist/commonjs/features/pmProgress/components/chart/model/PieChartManager.js +0 -25
  132. package/dist/commonjs/features/pmProgress/components/chart/model/PieChartManager.js.map +0 -1
  133. package/dist/commonjs/features/pmProgress/components/chart/model/SliceHighlight.js +0 -20
  134. package/dist/commonjs/features/pmProgress/components/chart/model/SliceHighlight.js.map +0 -1
  135. package/dist/commonjs/features/pmProgress/components/chart/model/SliceShapeGenerator.js +0 -79
  136. package/dist/commonjs/features/pmProgress/components/chart/model/SliceShapeGenerator.js.map +0 -1
  137. package/dist/commonjs/features/pmProgress/components/content/PmContent.js +0 -50
  138. package/dist/commonjs/features/pmProgress/components/content/PmContent.js.map +0 -1
  139. package/dist/commonjs/features/pmProgress/components/header/PmProgressHeader.js +0 -216
  140. package/dist/commonjs/features/pmProgress/components/header/PmProgressHeader.js.map +0 -1
  141. package/dist/commonjs/features/pmProgress/components/header/StartButton.js +0 -114
  142. package/dist/commonjs/features/pmProgress/components/header/StartButton.js.map +0 -1
  143. package/dist/commonjs/features/pmProgress/components/insights/PmInsights.js +0 -70
  144. package/dist/commonjs/features/pmProgress/components/insights/PmInsights.js.map +0 -1
  145. package/dist/commonjs/features/pmProgress/components/insights/PmTimeframeStats.js +0 -99
  146. package/dist/commonjs/features/pmProgress/components/insights/PmTimeframeStats.js.map +0 -1
  147. package/dist/commonjs/features/pmProgress/components/insights/StatsCard.js +0 -72
  148. package/dist/commonjs/features/pmProgress/components/insights/StatsCard.js.map +0 -1
  149. package/dist/commonjs/features/pmProgress/components/list/Fluency.js +0 -80
  150. package/dist/commonjs/features/pmProgress/components/list/Fluency.js.map +0 -1
  151. package/dist/commonjs/features/pmProgress/components/list/ListCard.js +0 -197
  152. package/dist/commonjs/features/pmProgress/components/list/ListCard.js.map +0 -1
  153. package/dist/commonjs/features/pmProgress/components/list/ListItem.js +0 -140
  154. package/dist/commonjs/features/pmProgress/components/list/ListItem.js.map +0 -1
  155. package/dist/commonjs/features/pmProgress/components/list/PmDomainList.js +0 -96
  156. package/dist/commonjs/features/pmProgress/components/list/PmDomainList.js.map +0 -1
  157. package/dist/commonjs/features/pmProgress/components/locked/PmStatusOverlay.js +0 -101
  158. package/dist/commonjs/features/pmProgress/components/locked/PmStatusOverlay.js.map +0 -1
  159. package/dist/commonjs/features/pmProgress/components/recs/PmTeacherRecs.js +0 -134
  160. package/dist/commonjs/features/pmProgress/components/recs/PmTeacherRecs.js.map +0 -1
  161. package/dist/commonjs/features/pmProgress/components/standard/StandardTag.js +0 -203
  162. package/dist/commonjs/features/pmProgress/components/standard/StandardTag.js.map +0 -1
  163. package/dist/commonjs/features/pmProgress/context/PmProgressContext.js +0 -18
  164. package/dist/commonjs/features/pmProgress/context/PmProgressContext.js.map +0 -1
  165. package/dist/commonjs/features/pmProgress/index.js +0 -64
  166. package/dist/commonjs/features/pmProgress/index.js.map +0 -1
  167. package/dist/commonjs/features/pmProgress/model/PmHighlightModel.js +0 -15
  168. package/dist/commonjs/features/pmProgress/model/PmHighlightModel.js.map +0 -1
  169. package/dist/commonjs/features/pmProgress/model/PmInsightsModel.js +0 -22
  170. package/dist/commonjs/features/pmProgress/model/PmInsightsModel.js.map +0 -1
  171. package/dist/commonjs/features/pmProgress/model/PmProgressApi.js +0 -18
  172. package/dist/commonjs/features/pmProgress/model/PmProgressApi.js.map +0 -1
  173. package/dist/commonjs/features/pmProgress/model/PmProgressModel.js +0 -43
  174. package/dist/commonjs/features/pmProgress/model/PmProgressModel.js.map +0 -1
  175. package/dist/commonjs/features/pmProgress/model/PmRecommendationsModel.js +0 -47
  176. package/dist/commonjs/features/pmProgress/model/PmRecommendationsModel.js.map +0 -1
  177. package/dist/commonjs/features/pmProgress/model/PmSolvingFlowModel.js +0 -102
  178. package/dist/commonjs/features/pmProgress/model/PmSolvingFlowModel.js.map +0 -1
  179. package/dist/commonjs/features/pmProgress/model/PmTreeModel.js +0 -170
  180. package/dist/commonjs/features/pmProgress/model/PmTreeModel.js.map +0 -1
  181. package/dist/commonjs/features/pmProgress/shared/TreeNormalizer.js +0 -52
  182. package/dist/commonjs/features/pmProgress/shared/TreeNormalizer.js.map +0 -1
  183. package/dist/commonjs/features/pmProgress/shared/pmProgress.constants.js +0 -59
  184. package/dist/commonjs/features/pmProgress/shared/pmProgress.constants.js.map +0 -1
  185. package/dist/commonjs/features/pmProgress/shared/pmProgress.helpers.js +0 -217
  186. package/dist/commonjs/features/pmProgress/shared/pmProgress.helpers.js.map +0 -1
  187. package/dist/commonjs/features/pmProgress/shared/pmProgress.types.js +0 -12
  188. package/dist/commonjs/features/pmProgress/shared/pmProgress.types.js.map +0 -1
  189. package/dist/commonjs/shared/icons/PentagonIcon.js +0 -32
  190. package/dist/commonjs/shared/icons/PentagonIcon.js.map +0 -1
  191. package/dist/commonjs/shared/icons/SketchArrowRight.js +0 -33
  192. package/dist/commonjs/shared/icons/SketchArrowRight.js.map +0 -1
  193. package/dist/commonjs/shared/icons/SliceDiamondIcon.js +0 -32
  194. package/dist/commonjs/shared/icons/SliceDiamondIcon.js.map +0 -1
  195. package/dist/commonjs/shared/icons/StarIcon.js +0 -32
  196. package/dist/commonjs/shared/icons/StarIcon.js.map +0 -1
  197. package/dist/commonjs/shared/icons/TimerIcon.js +0 -35
  198. package/dist/commonjs/shared/icons/TimerIcon.js.map +0 -1
  199. package/dist/module/features/pmProgress/PmProgress.js +0 -36
  200. package/dist/module/features/pmProgress/PmProgress.js.map +0 -1
  201. package/dist/module/features/pmProgress/components/chart/chart.helpers.js +0 -17
  202. package/dist/module/features/pmProgress/components/chart/chart.helpers.js.map +0 -1
  203. package/dist/module/features/pmProgress/components/chart/chart.types.js +0 -2
  204. package/dist/module/features/pmProgress/components/chart/chart.types.js.map +0 -1
  205. package/dist/module/features/pmProgress/components/chart/components/PracticeProgressPieChart.js +0 -38
  206. package/dist/module/features/pmProgress/components/chart/components/PracticeProgressPieChart.js.map +0 -1
  207. package/dist/module/features/pmProgress/components/chart/components/SlicesClipPaths.js +0 -20
  208. package/dist/module/features/pmProgress/components/chart/components/SlicesClipPaths.js.map +0 -1
  209. package/dist/module/features/pmProgress/components/chart/components/SlicesPaths.js +0 -81
  210. package/dist/module/features/pmProgress/components/chart/components/SlicesPaths.js.map +0 -1
  211. package/dist/module/features/pmProgress/components/chart/components/layers/SliceArcPattern.js +0 -32
  212. package/dist/module/features/pmProgress/components/chart/components/layers/SliceArcPattern.js.map +0 -1
  213. package/dist/module/features/pmProgress/components/chart/components/layers/SliceBackgroundColor.js +0 -15
  214. package/dist/module/features/pmProgress/components/chart/components/layers/SliceBackgroundColor.js.map +0 -1
  215. package/dist/module/features/pmProgress/components/chart/components/layers/SliceFillColor.js +0 -76
  216. package/dist/module/features/pmProgress/components/chart/components/layers/SliceFillColor.js.map +0 -1
  217. package/dist/module/features/pmProgress/components/chart/model/ArcPatternGenerator.js +0 -44
  218. package/dist/module/features/pmProgress/components/chart/model/ArcPatternGenerator.js.map +0 -1
  219. package/dist/module/features/pmProgress/components/chart/model/PieChartManager.js +0 -20
  220. package/dist/module/features/pmProgress/components/chart/model/PieChartManager.js.map +0 -1
  221. package/dist/module/features/pmProgress/components/chart/model/SliceHighlight.js +0 -15
  222. package/dist/module/features/pmProgress/components/chart/model/SliceHighlight.js.map +0 -1
  223. package/dist/module/features/pmProgress/components/chart/model/SliceShapeGenerator.js +0 -74
  224. package/dist/module/features/pmProgress/components/chart/model/SliceShapeGenerator.js.map +0 -1
  225. package/dist/module/features/pmProgress/components/content/PmContent.js +0 -44
  226. package/dist/module/features/pmProgress/components/content/PmContent.js.map +0 -1
  227. package/dist/module/features/pmProgress/components/header/PmProgressHeader.js +0 -209
  228. package/dist/module/features/pmProgress/components/header/PmProgressHeader.js.map +0 -1
  229. package/dist/module/features/pmProgress/components/header/StartButton.js +0 -107
  230. package/dist/module/features/pmProgress/components/header/StartButton.js.map +0 -1
  231. package/dist/module/features/pmProgress/components/insights/PmInsights.js +0 -63
  232. package/dist/module/features/pmProgress/components/insights/PmInsights.js.map +0 -1
  233. package/dist/module/features/pmProgress/components/insights/PmTimeframeStats.js +0 -94
  234. package/dist/module/features/pmProgress/components/insights/PmTimeframeStats.js.map +0 -1
  235. package/dist/module/features/pmProgress/components/insights/StatsCard.js +0 -66
  236. package/dist/module/features/pmProgress/components/insights/StatsCard.js.map +0 -1
  237. package/dist/module/features/pmProgress/components/list/Fluency.js +0 -74
  238. package/dist/module/features/pmProgress/components/list/Fluency.js.map +0 -1
  239. package/dist/module/features/pmProgress/components/list/ListCard.js +0 -190
  240. package/dist/module/features/pmProgress/components/list/ListCard.js.map +0 -1
  241. package/dist/module/features/pmProgress/components/list/ListItem.js +0 -133
  242. package/dist/module/features/pmProgress/components/list/ListItem.js.map +0 -1
  243. package/dist/module/features/pmProgress/components/list/PmDomainList.js +0 -90
  244. package/dist/module/features/pmProgress/components/list/PmDomainList.js.map +0 -1
  245. package/dist/module/features/pmProgress/components/locked/PmStatusOverlay.js +0 -95
  246. package/dist/module/features/pmProgress/components/locked/PmStatusOverlay.js.map +0 -1
  247. package/dist/module/features/pmProgress/components/recs/PmTeacherRecs.js +0 -128
  248. package/dist/module/features/pmProgress/components/recs/PmTeacherRecs.js.map +0 -1
  249. package/dist/module/features/pmProgress/components/standard/StandardTag.js +0 -197
  250. package/dist/module/features/pmProgress/components/standard/StandardTag.js.map +0 -1
  251. package/dist/module/features/pmProgress/context/PmProgressContext.js +0 -13
  252. package/dist/module/features/pmProgress/context/PmProgressContext.js.map +0 -1
  253. package/dist/module/features/pmProgress/index.js +0 -9
  254. package/dist/module/features/pmProgress/index.js.map +0 -1
  255. package/dist/module/features/pmProgress/model/PmHighlightModel.js +0 -10
  256. package/dist/module/features/pmProgress/model/PmHighlightModel.js.map +0 -1
  257. package/dist/module/features/pmProgress/model/PmInsightsModel.js +0 -17
  258. package/dist/module/features/pmProgress/model/PmInsightsModel.js.map +0 -1
  259. package/dist/module/features/pmProgress/model/PmProgressApi.js +0 -13
  260. package/dist/module/features/pmProgress/model/PmProgressApi.js.map +0 -1
  261. package/dist/module/features/pmProgress/model/PmProgressModel.js +0 -38
  262. package/dist/module/features/pmProgress/model/PmProgressModel.js.map +0 -1
  263. package/dist/module/features/pmProgress/model/PmRecommendationsModel.js +0 -42
  264. package/dist/module/features/pmProgress/model/PmRecommendationsModel.js.map +0 -1
  265. package/dist/module/features/pmProgress/model/PmSolvingFlowModel.js +0 -97
  266. package/dist/module/features/pmProgress/model/PmSolvingFlowModel.js.map +0 -1
  267. package/dist/module/features/pmProgress/model/PmTreeModel.js +0 -165
  268. package/dist/module/features/pmProgress/model/PmTreeModel.js.map +0 -1
  269. package/dist/module/features/pmProgress/shared/TreeNormalizer.js +0 -47
  270. package/dist/module/features/pmProgress/shared/TreeNormalizer.js.map +0 -1
  271. package/dist/module/features/pmProgress/shared/pmProgress.constants.js +0 -56
  272. package/dist/module/features/pmProgress/shared/pmProgress.constants.js.map +0 -1
  273. package/dist/module/features/pmProgress/shared/pmProgress.helpers.js +0 -197
  274. package/dist/module/features/pmProgress/shared/pmProgress.helpers.js.map +0 -1
  275. package/dist/module/features/pmProgress/shared/pmProgress.types.js +0 -10
  276. package/dist/module/features/pmProgress/shared/pmProgress.types.js.map +0 -1
  277. package/dist/module/shared/icons/PentagonIcon.js +0 -24
  278. package/dist/module/shared/icons/PentagonIcon.js.map +0 -1
  279. package/dist/module/shared/icons/SketchArrowRight.js +0 -25
  280. package/dist/module/shared/icons/SketchArrowRight.js.map +0 -1
  281. package/dist/module/shared/icons/SliceDiamondIcon.js +0 -24
  282. package/dist/module/shared/icons/SliceDiamondIcon.js.map +0 -1
  283. package/dist/module/shared/icons/StarIcon.js +0 -24
  284. package/dist/module/shared/icons/StarIcon.js.map +0 -1
  285. package/dist/module/shared/icons/TimerIcon.js +0 -27
  286. package/dist/module/shared/icons/TimerIcon.js.map +0 -1
  287. package/dist/typescript/commonjs/features/pmProgress/PmProgress.d.ts +0 -9
  288. package/dist/typescript/commonjs/features/pmProgress/PmProgress.d.ts.map +0 -1
  289. package/dist/typescript/commonjs/features/pmProgress/components/chart/chart.helpers.d.ts +0 -4
  290. package/dist/typescript/commonjs/features/pmProgress/components/chart/chart.helpers.d.ts.map +0 -1
  291. package/dist/typescript/commonjs/features/pmProgress/components/chart/chart.types.d.ts +0 -36
  292. package/dist/typescript/commonjs/features/pmProgress/components/chart/chart.types.d.ts.map +0 -1
  293. package/dist/typescript/commonjs/features/pmProgress/components/chart/components/PracticeProgressPieChart.d.ts +0 -9
  294. package/dist/typescript/commonjs/features/pmProgress/components/chart/components/PracticeProgressPieChart.d.ts.map +0 -1
  295. package/dist/typescript/commonjs/features/pmProgress/components/chart/components/SlicesClipPaths.d.ts +0 -10
  296. package/dist/typescript/commonjs/features/pmProgress/components/chart/components/SlicesClipPaths.d.ts.map +0 -1
  297. package/dist/typescript/commonjs/features/pmProgress/components/chart/components/SlicesPaths.d.ts +0 -11
  298. package/dist/typescript/commonjs/features/pmProgress/components/chart/components/SlicesPaths.d.ts.map +0 -1
  299. package/dist/typescript/commonjs/features/pmProgress/components/chart/components/layers/SliceArcPattern.d.ts +0 -12
  300. package/dist/typescript/commonjs/features/pmProgress/components/chart/components/layers/SliceArcPattern.d.ts.map +0 -1
  301. package/dist/typescript/commonjs/features/pmProgress/components/chart/components/layers/SliceBackgroundColor.d.ts +0 -8
  302. package/dist/typescript/commonjs/features/pmProgress/components/chart/components/layers/SliceBackgroundColor.d.ts.map +0 -1
  303. package/dist/typescript/commonjs/features/pmProgress/components/chart/components/layers/SliceFillColor.d.ts +0 -14
  304. package/dist/typescript/commonjs/features/pmProgress/components/chart/components/layers/SliceFillColor.d.ts.map +0 -1
  305. package/dist/typescript/commonjs/features/pmProgress/components/chart/model/ArcPatternGenerator.d.ts +0 -12
  306. package/dist/typescript/commonjs/features/pmProgress/components/chart/model/ArcPatternGenerator.d.ts.map +0 -1
  307. package/dist/typescript/commonjs/features/pmProgress/components/chart/model/PieChartManager.d.ts +0 -16
  308. package/dist/typescript/commonjs/features/pmProgress/components/chart/model/PieChartManager.d.ts.map +0 -1
  309. package/dist/typescript/commonjs/features/pmProgress/components/chart/model/SliceHighlight.d.ts +0 -10
  310. package/dist/typescript/commonjs/features/pmProgress/components/chart/model/SliceHighlight.d.ts.map +0 -1
  311. package/dist/typescript/commonjs/features/pmProgress/components/chart/model/SliceShapeGenerator.d.ts +0 -17
  312. package/dist/typescript/commonjs/features/pmProgress/components/chart/model/SliceShapeGenerator.d.ts.map +0 -1
  313. package/dist/typescript/commonjs/features/pmProgress/components/content/PmContent.d.ts +0 -3
  314. package/dist/typescript/commonjs/features/pmProgress/components/content/PmContent.d.ts.map +0 -1
  315. package/dist/typescript/commonjs/features/pmProgress/components/header/PmProgressHeader.d.ts +0 -3
  316. package/dist/typescript/commonjs/features/pmProgress/components/header/PmProgressHeader.d.ts.map +0 -1
  317. package/dist/typescript/commonjs/features/pmProgress/components/header/StartButton.d.ts +0 -11
  318. package/dist/typescript/commonjs/features/pmProgress/components/header/StartButton.d.ts.map +0 -1
  319. package/dist/typescript/commonjs/features/pmProgress/components/insights/PmInsights.d.ts +0 -3
  320. package/dist/typescript/commonjs/features/pmProgress/components/insights/PmInsights.d.ts.map +0 -1
  321. package/dist/typescript/commonjs/features/pmProgress/components/insights/PmTimeframeStats.d.ts +0 -3
  322. package/dist/typescript/commonjs/features/pmProgress/components/insights/PmTimeframeStats.d.ts.map +0 -1
  323. package/dist/typescript/commonjs/features/pmProgress/components/insights/StatsCard.d.ts +0 -12
  324. package/dist/typescript/commonjs/features/pmProgress/components/insights/StatsCard.d.ts.map +0 -1
  325. package/dist/typescript/commonjs/features/pmProgress/components/list/Fluency.d.ts +0 -8
  326. package/dist/typescript/commonjs/features/pmProgress/components/list/Fluency.d.ts.map +0 -1
  327. package/dist/typescript/commonjs/features/pmProgress/components/list/ListCard.d.ts +0 -31
  328. package/dist/typescript/commonjs/features/pmProgress/components/list/ListCard.d.ts.map +0 -1
  329. package/dist/typescript/commonjs/features/pmProgress/components/list/ListItem.d.ts +0 -12
  330. package/dist/typescript/commonjs/features/pmProgress/components/list/ListItem.d.ts.map +0 -1
  331. package/dist/typescript/commonjs/features/pmProgress/components/list/PmDomainList.d.ts +0 -3
  332. package/dist/typescript/commonjs/features/pmProgress/components/list/PmDomainList.d.ts.map +0 -1
  333. package/dist/typescript/commonjs/features/pmProgress/components/locked/PmStatusOverlay.d.ts +0 -8
  334. package/dist/typescript/commonjs/features/pmProgress/components/locked/PmStatusOverlay.d.ts.map +0 -1
  335. package/dist/typescript/commonjs/features/pmProgress/components/recs/PmTeacherRecs.d.ts +0 -3
  336. package/dist/typescript/commonjs/features/pmProgress/components/recs/PmTeacherRecs.d.ts.map +0 -1
  337. package/dist/typescript/commonjs/features/pmProgress/components/standard/StandardTag.d.ts +0 -9
  338. package/dist/typescript/commonjs/features/pmProgress/components/standard/StandardTag.d.ts.map +0 -1
  339. package/dist/typescript/commonjs/features/pmProgress/context/PmProgressContext.d.ts +0 -14
  340. package/dist/typescript/commonjs/features/pmProgress/context/PmProgressContext.d.ts.map +0 -1
  341. package/dist/typescript/commonjs/features/pmProgress/index.d.ts +0 -7
  342. package/dist/typescript/commonjs/features/pmProgress/index.d.ts.map +0 -1
  343. package/dist/typescript/commonjs/features/pmProgress/model/PmHighlightModel.d.ts +0 -7
  344. package/dist/typescript/commonjs/features/pmProgress/model/PmHighlightModel.d.ts.map +0 -1
  345. package/dist/typescript/commonjs/features/pmProgress/model/PmInsightsModel.d.ts +0 -14
  346. package/dist/typescript/commonjs/features/pmProgress/model/PmInsightsModel.d.ts.map +0 -1
  347. package/dist/typescript/commonjs/features/pmProgress/model/PmProgressApi.d.ts +0 -17
  348. package/dist/typescript/commonjs/features/pmProgress/model/PmProgressApi.d.ts.map +0 -1
  349. package/dist/typescript/commonjs/features/pmProgress/model/PmProgressModel.d.ts +0 -23
  350. package/dist/typescript/commonjs/features/pmProgress/model/PmProgressModel.d.ts.map +0 -1
  351. package/dist/typescript/commonjs/features/pmProgress/model/PmRecommendationsModel.d.ts +0 -102
  352. package/dist/typescript/commonjs/features/pmProgress/model/PmRecommendationsModel.d.ts.map +0 -1
  353. package/dist/typescript/commonjs/features/pmProgress/model/PmSolvingFlowModel.d.ts +0 -22
  354. package/dist/typescript/commonjs/features/pmProgress/model/PmSolvingFlowModel.d.ts.map +0 -1
  355. package/dist/typescript/commonjs/features/pmProgress/model/PmTreeModel.d.ts +0 -25
  356. package/dist/typescript/commonjs/features/pmProgress/model/PmTreeModel.d.ts.map +0 -1
  357. package/dist/typescript/commonjs/features/pmProgress/shared/TreeNormalizer.d.ts +0 -17
  358. package/dist/typescript/commonjs/features/pmProgress/shared/TreeNormalizer.d.ts.map +0 -1
  359. package/dist/typescript/commonjs/features/pmProgress/shared/pmProgress.constants.d.ts +0 -44
  360. package/dist/typescript/commonjs/features/pmProgress/shared/pmProgress.constants.d.ts.map +0 -1
  361. package/dist/typescript/commonjs/features/pmProgress/shared/pmProgress.helpers.d.ts +0 -66
  362. package/dist/typescript/commonjs/features/pmProgress/shared/pmProgress.helpers.d.ts.map +0 -1
  363. package/dist/typescript/commonjs/features/pmProgress/shared/pmProgress.types.d.ts +0 -193
  364. package/dist/typescript/commonjs/features/pmProgress/shared/pmProgress.types.d.ts.map +0 -1
  365. package/dist/typescript/commonjs/shared/icons/PentagonIcon.d.ts +0 -4
  366. package/dist/typescript/commonjs/shared/icons/PentagonIcon.d.ts.map +0 -1
  367. package/dist/typescript/commonjs/shared/icons/SketchArrowRight.d.ts +0 -4
  368. package/dist/typescript/commonjs/shared/icons/SketchArrowRight.d.ts.map +0 -1
  369. package/dist/typescript/commonjs/shared/icons/SliceDiamondIcon.d.ts +0 -4
  370. package/dist/typescript/commonjs/shared/icons/SliceDiamondIcon.d.ts.map +0 -1
  371. package/dist/typescript/commonjs/shared/icons/StarIcon.d.ts +0 -4
  372. package/dist/typescript/commonjs/shared/icons/StarIcon.d.ts.map +0 -1
  373. package/dist/typescript/commonjs/shared/icons/TimerIcon.d.ts +0 -4
  374. package/dist/typescript/commonjs/shared/icons/TimerIcon.d.ts.map +0 -1
  375. package/dist/typescript/module/features/pmProgress/PmProgress.d.ts +0 -9
  376. package/dist/typescript/module/features/pmProgress/PmProgress.d.ts.map +0 -1
  377. package/dist/typescript/module/features/pmProgress/components/chart/chart.helpers.d.ts +0 -4
  378. package/dist/typescript/module/features/pmProgress/components/chart/chart.helpers.d.ts.map +0 -1
  379. package/dist/typescript/module/features/pmProgress/components/chart/chart.types.d.ts +0 -36
  380. package/dist/typescript/module/features/pmProgress/components/chart/chart.types.d.ts.map +0 -1
  381. package/dist/typescript/module/features/pmProgress/components/chart/components/PracticeProgressPieChart.d.ts +0 -9
  382. package/dist/typescript/module/features/pmProgress/components/chart/components/PracticeProgressPieChart.d.ts.map +0 -1
  383. package/dist/typescript/module/features/pmProgress/components/chart/components/SlicesClipPaths.d.ts +0 -10
  384. package/dist/typescript/module/features/pmProgress/components/chart/components/SlicesClipPaths.d.ts.map +0 -1
  385. package/dist/typescript/module/features/pmProgress/components/chart/components/SlicesPaths.d.ts +0 -11
  386. package/dist/typescript/module/features/pmProgress/components/chart/components/SlicesPaths.d.ts.map +0 -1
  387. package/dist/typescript/module/features/pmProgress/components/chart/components/layers/SliceArcPattern.d.ts +0 -12
  388. package/dist/typescript/module/features/pmProgress/components/chart/components/layers/SliceArcPattern.d.ts.map +0 -1
  389. package/dist/typescript/module/features/pmProgress/components/chart/components/layers/SliceBackgroundColor.d.ts +0 -8
  390. package/dist/typescript/module/features/pmProgress/components/chart/components/layers/SliceBackgroundColor.d.ts.map +0 -1
  391. package/dist/typescript/module/features/pmProgress/components/chart/components/layers/SliceFillColor.d.ts +0 -14
  392. package/dist/typescript/module/features/pmProgress/components/chart/components/layers/SliceFillColor.d.ts.map +0 -1
  393. package/dist/typescript/module/features/pmProgress/components/chart/model/ArcPatternGenerator.d.ts +0 -12
  394. package/dist/typescript/module/features/pmProgress/components/chart/model/ArcPatternGenerator.d.ts.map +0 -1
  395. package/dist/typescript/module/features/pmProgress/components/chart/model/PieChartManager.d.ts +0 -16
  396. package/dist/typescript/module/features/pmProgress/components/chart/model/PieChartManager.d.ts.map +0 -1
  397. package/dist/typescript/module/features/pmProgress/components/chart/model/SliceHighlight.d.ts +0 -10
  398. package/dist/typescript/module/features/pmProgress/components/chart/model/SliceHighlight.d.ts.map +0 -1
  399. package/dist/typescript/module/features/pmProgress/components/chart/model/SliceShapeGenerator.d.ts +0 -17
  400. package/dist/typescript/module/features/pmProgress/components/chart/model/SliceShapeGenerator.d.ts.map +0 -1
  401. package/dist/typescript/module/features/pmProgress/components/content/PmContent.d.ts +0 -3
  402. package/dist/typescript/module/features/pmProgress/components/content/PmContent.d.ts.map +0 -1
  403. package/dist/typescript/module/features/pmProgress/components/header/PmProgressHeader.d.ts +0 -3
  404. package/dist/typescript/module/features/pmProgress/components/header/PmProgressHeader.d.ts.map +0 -1
  405. package/dist/typescript/module/features/pmProgress/components/header/StartButton.d.ts +0 -11
  406. package/dist/typescript/module/features/pmProgress/components/header/StartButton.d.ts.map +0 -1
  407. package/dist/typescript/module/features/pmProgress/components/insights/PmInsights.d.ts +0 -3
  408. package/dist/typescript/module/features/pmProgress/components/insights/PmInsights.d.ts.map +0 -1
  409. package/dist/typescript/module/features/pmProgress/components/insights/PmTimeframeStats.d.ts +0 -3
  410. package/dist/typescript/module/features/pmProgress/components/insights/PmTimeframeStats.d.ts.map +0 -1
  411. package/dist/typescript/module/features/pmProgress/components/insights/StatsCard.d.ts +0 -12
  412. package/dist/typescript/module/features/pmProgress/components/insights/StatsCard.d.ts.map +0 -1
  413. package/dist/typescript/module/features/pmProgress/components/list/Fluency.d.ts +0 -8
  414. package/dist/typescript/module/features/pmProgress/components/list/Fluency.d.ts.map +0 -1
  415. package/dist/typescript/module/features/pmProgress/components/list/ListCard.d.ts +0 -31
  416. package/dist/typescript/module/features/pmProgress/components/list/ListCard.d.ts.map +0 -1
  417. package/dist/typescript/module/features/pmProgress/components/list/ListItem.d.ts +0 -12
  418. package/dist/typescript/module/features/pmProgress/components/list/ListItem.d.ts.map +0 -1
  419. package/dist/typescript/module/features/pmProgress/components/list/PmDomainList.d.ts +0 -3
  420. package/dist/typescript/module/features/pmProgress/components/list/PmDomainList.d.ts.map +0 -1
  421. package/dist/typescript/module/features/pmProgress/components/locked/PmStatusOverlay.d.ts +0 -8
  422. package/dist/typescript/module/features/pmProgress/components/locked/PmStatusOverlay.d.ts.map +0 -1
  423. package/dist/typescript/module/features/pmProgress/components/recs/PmTeacherRecs.d.ts +0 -3
  424. package/dist/typescript/module/features/pmProgress/components/recs/PmTeacherRecs.d.ts.map +0 -1
  425. package/dist/typescript/module/features/pmProgress/components/standard/StandardTag.d.ts +0 -9
  426. package/dist/typescript/module/features/pmProgress/components/standard/StandardTag.d.ts.map +0 -1
  427. package/dist/typescript/module/features/pmProgress/context/PmProgressContext.d.ts +0 -14
  428. package/dist/typescript/module/features/pmProgress/context/PmProgressContext.d.ts.map +0 -1
  429. package/dist/typescript/module/features/pmProgress/index.d.ts +0 -7
  430. package/dist/typescript/module/features/pmProgress/index.d.ts.map +0 -1
  431. package/dist/typescript/module/features/pmProgress/model/PmHighlightModel.d.ts +0 -7
  432. package/dist/typescript/module/features/pmProgress/model/PmHighlightModel.d.ts.map +0 -1
  433. package/dist/typescript/module/features/pmProgress/model/PmInsightsModel.d.ts +0 -14
  434. package/dist/typescript/module/features/pmProgress/model/PmInsightsModel.d.ts.map +0 -1
  435. package/dist/typescript/module/features/pmProgress/model/PmProgressApi.d.ts +0 -17
  436. package/dist/typescript/module/features/pmProgress/model/PmProgressApi.d.ts.map +0 -1
  437. package/dist/typescript/module/features/pmProgress/model/PmProgressModel.d.ts +0 -23
  438. package/dist/typescript/module/features/pmProgress/model/PmProgressModel.d.ts.map +0 -1
  439. package/dist/typescript/module/features/pmProgress/model/PmRecommendationsModel.d.ts +0 -102
  440. package/dist/typescript/module/features/pmProgress/model/PmRecommendationsModel.d.ts.map +0 -1
  441. package/dist/typescript/module/features/pmProgress/model/PmSolvingFlowModel.d.ts +0 -22
  442. package/dist/typescript/module/features/pmProgress/model/PmSolvingFlowModel.d.ts.map +0 -1
  443. package/dist/typescript/module/features/pmProgress/model/PmTreeModel.d.ts +0 -25
  444. package/dist/typescript/module/features/pmProgress/model/PmTreeModel.d.ts.map +0 -1
  445. package/dist/typescript/module/features/pmProgress/shared/TreeNormalizer.d.ts +0 -17
  446. package/dist/typescript/module/features/pmProgress/shared/TreeNormalizer.d.ts.map +0 -1
  447. package/dist/typescript/module/features/pmProgress/shared/pmProgress.constants.d.ts +0 -44
  448. package/dist/typescript/module/features/pmProgress/shared/pmProgress.constants.d.ts.map +0 -1
  449. package/dist/typescript/module/features/pmProgress/shared/pmProgress.helpers.d.ts +0 -66
  450. package/dist/typescript/module/features/pmProgress/shared/pmProgress.helpers.d.ts.map +0 -1
  451. package/dist/typescript/module/features/pmProgress/shared/pmProgress.types.d.ts +0 -193
  452. package/dist/typescript/module/features/pmProgress/shared/pmProgress.types.d.ts.map +0 -1
  453. package/dist/typescript/module/shared/icons/PentagonIcon.d.ts +0 -4
  454. package/dist/typescript/module/shared/icons/PentagonIcon.d.ts.map +0 -1
  455. package/dist/typescript/module/shared/icons/SketchArrowRight.d.ts +0 -4
  456. package/dist/typescript/module/shared/icons/SketchArrowRight.d.ts.map +0 -1
  457. package/dist/typescript/module/shared/icons/SliceDiamondIcon.d.ts +0 -4
  458. package/dist/typescript/module/shared/icons/SliceDiamondIcon.d.ts.map +0 -1
  459. package/dist/typescript/module/shared/icons/StarIcon.d.ts +0 -4
  460. package/dist/typescript/module/shared/icons/StarIcon.d.ts.map +0 -1
  461. package/dist/typescript/module/shared/icons/TimerIcon.d.ts +0 -4
  462. package/dist/typescript/module/shared/icons/TimerIcon.d.ts.map +0 -1
  463. package/src/features/pmProgress/PmProgress.tsx +0 -30
  464. package/src/features/pmProgress/__tests__/.keep +0 -0
  465. package/src/features/pmProgress/components/chart/chart.helpers.ts +0 -16
  466. package/src/features/pmProgress/components/chart/chart.types.ts +0 -37
  467. package/src/features/pmProgress/components/chart/components/PracticeProgressPieChart.tsx +0 -32
  468. package/src/features/pmProgress/components/chart/components/SlicesClipPaths.tsx +0 -22
  469. package/src/features/pmProgress/components/chart/components/SlicesPaths.tsx +0 -90
  470. package/src/features/pmProgress/components/chart/components/layers/SliceArcPattern.tsx +0 -44
  471. package/src/features/pmProgress/components/chart/components/layers/SliceBackgroundColor.tsx +0 -11
  472. package/src/features/pmProgress/components/chart/components/layers/SliceFillColor.tsx +0 -88
  473. package/src/features/pmProgress/components/chart/model/ArcPatternGenerator.ts +0 -48
  474. package/src/features/pmProgress/components/chart/model/PieChartManager.ts +0 -20
  475. package/src/features/pmProgress/components/chart/model/SliceHighlight.ts +0 -17
  476. package/src/features/pmProgress/components/chart/model/SliceShapeGenerator.ts +0 -90
  477. package/src/features/pmProgress/components/content/PmContent.tsx +0 -44
  478. package/src/features/pmProgress/components/header/PmProgressHeader.tsx +0 -211
  479. package/src/features/pmProgress/components/header/StartButton.tsx +0 -141
  480. package/src/features/pmProgress/components/insights/PmInsights.tsx +0 -65
  481. package/src/features/pmProgress/components/insights/PmTimeframeStats.tsx +0 -88
  482. package/src/features/pmProgress/components/insights/StatsCard.tsx +0 -54
  483. package/src/features/pmProgress/components/list/Fluency.tsx +0 -69
  484. package/src/features/pmProgress/components/list/ListCard.tsx +0 -230
  485. package/src/features/pmProgress/components/list/ListItem.tsx +0 -161
  486. package/src/features/pmProgress/components/list/PmDomainList.tsx +0 -76
  487. package/src/features/pmProgress/components/locked/PmStatusOverlay.tsx +0 -101
  488. package/src/features/pmProgress/components/recs/PmTeacherRecs.tsx +0 -127
  489. package/src/features/pmProgress/components/standard/StandardTag.tsx +0 -182
  490. package/src/features/pmProgress/context/PmProgressContext.tsx +0 -25
  491. package/src/features/pmProgress/index.ts +0 -6
  492. package/src/features/pmProgress/model/PmHighlightModel.ts +0 -11
  493. package/src/features/pmProgress/model/PmInsightsModel.ts +0 -23
  494. package/src/features/pmProgress/model/PmProgressApi.ts +0 -34
  495. package/src/features/pmProgress/model/PmProgressModel.ts +0 -48
  496. package/src/features/pmProgress/model/PmRecommendationsModel.ts +0 -47
  497. package/src/features/pmProgress/model/PmSolvingFlowModel.ts +0 -134
  498. package/src/features/pmProgress/model/PmTreeModel.ts +0 -163
  499. package/src/features/pmProgress/shared/TreeNormalizer.ts +0 -64
  500. package/src/features/pmProgress/shared/pmProgress.constants.ts +0 -98
  501. package/src/features/pmProgress/shared/pmProgress.helpers.ts +0 -273
  502. package/src/features/pmProgress/shared/pmProgress.types.ts +0 -218
  503. package/src/shared/icons/PentagonIcon.tsx +0 -17
  504. package/src/shared/icons/SketchArrowRight.tsx +0 -18
  505. package/src/shared/icons/SliceDiamondIcon.tsx +0 -16
  506. package/src/shared/icons/StarIcon.tsx +0 -17
  507. package/src/shared/icons/TimerIcon.tsx +0 -21
@@ -1,161 +0,0 @@
1
- import React, { useState } from 'react'
2
- import { ActivityIndicator, View, Pressable, StyleSheet, Text } from 'react-native'
3
- import {
4
- ArrowRightIcon,
5
- CheckIcon,
6
- COLORS,
7
- FONT_FAMILY,
8
- HeadingVariants,
9
- Typography,
10
- } from '@magmamath/react-native-ui'
11
- import { useText } from '../../../../shared/translation'
12
-
13
- const FINISHED_BG = '#EFFBF5'
14
- const FINISHED_TITLE = '#00804A'
15
- const FINISHED_SUBTITLE = '#29A96F'
16
- const FINISHED_ICON = '#5CD497'
17
- const CARD_HEIGHT = 52
18
- const ICON_SIZE = 25
19
- const SUBTITLE_FONT_SIZE = 10
20
- const SUBTITLE_LINE_HEIGHT = 14
21
-
22
- export type ListItemProps = {
23
- title: string
24
- subtitle: string
25
- skillsLeft: number
26
- isFinished?: boolean
27
- isLoading?: boolean
28
- onPress?: () => void
29
- isSkillsLeftHidden?: boolean
30
- }
31
-
32
- export const ListItem = ({
33
- title,
34
- subtitle,
35
- skillsLeft,
36
- isFinished = false,
37
- isLoading = false,
38
- onPress,
39
- isSkillsLeftHidden = false,
40
- }: ListItemProps) => {
41
- const t = useText()
42
- const [isHovered, setIsHovered] = useState(false)
43
- const isSkillsLeftVisible = skillsLeft > 0 && !isFinished && !isSkillsLeftHidden
44
-
45
- return (
46
- <Pressable
47
- onPress={onPress}
48
- disabled={isLoading}
49
- style={[
50
- styles.card,
51
- isFinished && styles.finished,
52
- isHovered && styles.hovered,
53
- isLoading && styles.loading,
54
- ]}
55
- onHoverIn={() => setIsHovered(true)}
56
- onHoverOut={() => setIsHovered(false)}
57
- >
58
- <View style={styles.content}>
59
- <Typography
60
- variant={HeadingVariants.H10}
61
- style={[styles.title, isFinished && styles.titleFinished]}
62
- numberOfLines={1}
63
- >
64
- {title}
65
- </Typography>
66
- <Typography
67
- style={[styles.subtitle, isFinished && styles.subtitleFinished]}
68
- numberOfLines={1}
69
- >
70
- {subtitle}
71
- </Typography>
72
- </View>
73
- <View style={styles.trailing}>
74
- {isLoading ? (
75
- <View style={styles.loadingIndicator}>
76
- <Text>{t('pmProgress.loading')} </Text>
77
- <ActivityIndicator size="small" color={COLORS.NEUTRAL_7} />
78
- </View>
79
- ) : (
80
- <>
81
- {isSkillsLeftVisible && (
82
- <Typography variant={HeadingVariants.H10} style={styles.skills}>
83
- {skillsLeft}{' '}
84
- {skillsLeft === 1 ? t('pmProgress.skillLeft') : t('pmProgress.skillsLeft')}
85
- </Typography>
86
- )}
87
- <View style={styles.icon}>
88
- {isFinished ? (
89
- <CheckIcon color={FINISHED_ICON} />
90
- ) : (
91
- <ArrowRightIcon color={COLORS.NEUTRAL_9} />
92
- )}
93
- </View>
94
- </>
95
- )}
96
- </View>
97
- </Pressable>
98
- )
99
- }
100
-
101
- const styles = StyleSheet.create({
102
- card: {
103
- flexDirection: 'row',
104
- alignItems: 'center',
105
- height: CARD_HEIGHT,
106
- paddingLeft: 32,
107
- paddingRight: 16,
108
- backgroundColor: 'white',
109
- borderRadius: 12,
110
- gap: 8,
111
- boxShadow: '0px 0px 1px 0px #33333366, 0px 1px 3px 0px #3333331A',
112
- },
113
- finished: {
114
- backgroundColor: FINISHED_BG,
115
- boxShadow: '0px 0px 1px 0px #33333366, 0px 1px 3px 0px #3333331A',
116
- },
117
- hovered: {
118
- backgroundColor: '#FAFAFB',
119
- boxShadow:
120
- '0px 0px 1px 0px #33333366, 0px 1px 3px 0px #3333331A, 4px 4px 10px rgba(51, 51, 51, 0.15)',
121
- },
122
- content: {
123
- flex: 1,
124
- },
125
- title: {
126
- color: COLORS.NEUTRAL_9,
127
- },
128
- titleFinished: {
129
- color: FINISHED_TITLE,
130
- },
131
- subtitle: {
132
- color: COLORS.NEUTRAL_7,
133
- fontSize: SUBTITLE_FONT_SIZE,
134
- fontFamily: FONT_FAMILY.buenosAires,
135
- lineHeight: SUBTITLE_LINE_HEIGHT,
136
- },
137
- subtitleFinished: {
138
- color: FINISHED_SUBTITLE,
139
- },
140
- trailing: {
141
- flexDirection: 'row',
142
- alignItems: 'center',
143
- gap: 8,
144
- },
145
- skills: {
146
- color: COLORS.NEUTRAL_9,
147
- },
148
- icon: {
149
- width: ICON_SIZE,
150
- height: ICON_SIZE,
151
- justifyContent: 'center',
152
- alignItems: 'center',
153
- },
154
- loading: {
155
- opacity: 0.5,
156
- },
157
- loadingIndicator: {
158
- flexDirection: 'row',
159
- gap: 8,
160
- },
161
- })
@@ -1,76 +0,0 @@
1
- import React from 'react'
2
- import { StyleSheet, View } from 'react-native'
3
- import { useUnit } from 'effector-react'
4
- import { BORDER_RADIUS, COLORS, ScrollableList, SPACING } from '@magmamath/react-native-ui'
5
- import { ListCard } from './ListCard'
6
- import { Fluency } from './Fluency'
7
- import { SliceDiamondIcon } from '../../../../shared/icons/SliceDiamondIcon'
8
- import { usePmProgress } from '../../context/PmProgressContext'
9
- import { isFluencyDomain } from '../../shared/pmProgress.helpers'
10
- import { SolvingFlow } from '../../shared/pmProgress.constants'
11
-
12
- export const PmDomainList = () => {
13
- const { model, onStandardPress } = usePmProgress()
14
- const domains = useUnit(model.tree.$domains)
15
- const expandedId = useUnit(model.highlight.$expandedId)
16
- const hoveredId = useUnit(model.highlight.$hoveredId)
17
- const loaderOpeningId = useUnit(model.solving.$loaderOpeningId)
18
-
19
- const fluency = domains.find(({ title }) => isFluencyDomain(title))
20
- const list = fluency ? domains.filter(({ title }) => !isFluencyDomain(title)) : domains
21
-
22
- return (
23
- <View style={styles.container}>
24
- <ScrollableList
25
- data={list}
26
- hideShadow
27
- scrollbarWidth={8}
28
- style={styles.scroll}
29
- ListFooterComponent={<Fluency data={fluency} />}
30
- keyExtractor={(item) => item.domainId}
31
- renderItem={({ item, index }) => (
32
- <ListCard
33
- title={item.title}
34
- items={item.standards.map((standard) => ({ ...standard, id: standard.standardId }))}
35
- progress={item.scorePercentage}
36
- color={item.color}
37
- onPress={() => model.highlight.expand(item.domainId)}
38
- onHoverIn={() => model.highlight.hover(item.domainId)}
39
- onHoverOut={() => model.highlight.hover(null)}
40
- onItemPress={async (item) => {
41
- try {
42
- model.solving.setLoaderOpeningId(item.id)
43
- const skill = await model.solving.start({
44
- type: SolvingFlow.STANDARD,
45
- standardId: item.standardId,
46
- })
47
- await onStandardPress?.(skill)
48
- } finally {
49
- model.solving.setLoaderOpeningId(null)
50
- }
51
- }}
52
- loadingItemId={loaderOpeningId}
53
- isLast={index === list.length - 1}
54
- isFirst={index === 0}
55
- isExpanded={expandedId === item.domainId}
56
- isHighlighted={hoveredId === item.domainId || expandedId === item.domainId}
57
- icon={<SliceDiamondIcon color={item.color} />}
58
- />
59
- )}
60
- />
61
- </View>
62
- )
63
- }
64
-
65
- const styles = StyleSheet.create({
66
- container: {
67
- flex: 1,
68
- overflow: 'hidden',
69
- padding: SPACING[200],
70
- backgroundColor: COLORS.NEUTRAL_1,
71
- borderRadius: BORDER_RADIUS[400],
72
- },
73
- scroll: {
74
- flex: 1,
75
- },
76
- })
@@ -1,101 +0,0 @@
1
- import React, { ReactNode } from 'react'
2
- import { StyleSheet, View } from 'react-native'
3
- import {
4
- COLORS,
5
- ErrorIcon,
6
- HeadingVariants,
7
- LockIcon,
8
- SPACING,
9
- Typography,
10
- } from '@magmamath/react-native-ui'
11
- import { useText } from '../../../../shared/translation'
12
- import { TranslationKeys } from '../../../../shared/translation/types'
13
- import { PmProgressStatus } from '../../shared/pmProgress.constants'
14
-
15
- type EmptyStateVariant = {
16
- icon: ReactNode
17
- circleColor: string
18
- titleKey: TranslationKeys
19
- subtitleKey: TranslationKeys
20
- }
21
-
22
- const PM_EMPTY_STATE_VARIANTS: Record<PmProgressStatus, EmptyStateVariant> = {
23
- [PmProgressStatus.LOCKED]: {
24
- icon: <LockIcon color={COLORS.NEUTRAL_6} size={40} />,
25
- circleColor: COLORS.NEUTRAL_2,
26
- titleKey: 'pmProgress.allLockedTitle',
27
- subtitleKey: 'pmProgress.allLockedSubtitle',
28
- },
29
- [PmProgressStatus.ERROR]: {
30
- icon: <ErrorIcon color={COLORS.PRIMARY_RED} size={40} />,
31
- circleColor: COLORS.RED_1,
32
- titleKey: 'pmProgress.initErrorTitle',
33
- subtitleKey: 'pmProgress.initErrorSubtitle',
34
- },
35
- }
36
-
37
- type PmStatusOverlayProps = {
38
- status: PmProgressStatus
39
- }
40
-
41
- export const PmStatusOverlay = ({ status }: PmStatusOverlayProps) => {
42
- const t = useText()
43
-
44
- const variant = PM_EMPTY_STATE_VARIANTS[status]
45
- if (!variant) return null
46
-
47
- return (
48
- <View style={styles.container}>
49
- <View style={styles.content}>
50
- <View style={[styles.iconCircle, { backgroundColor: variant.circleColor }]}>
51
- {variant.icon}
52
- </View>
53
- <View style={styles.text}>
54
- <Typography variant={HeadingVariants.H2} style={styles.title}>
55
- {t(variant.titleKey)}
56
- </Typography>
57
- <Typography variant={HeadingVariants.H7} style={styles.subtitle}>
58
- {t(variant.subtitleKey)}
59
- </Typography>
60
- </View>
61
- </View>
62
- </View>
63
- )
64
- }
65
-
66
- const styles = StyleSheet.create({
67
- container: {
68
- flex: 1,
69
- alignItems: 'center',
70
- justifyContent: 'center',
71
- },
72
- content: {
73
- alignItems: 'center',
74
- gap: SPACING[500],
75
- paddingBottom: SPACING[800],
76
- },
77
- iconCircle: {
78
- width: 88,
79
- height: 88,
80
- borderRadius: 44,
81
- alignItems: 'center',
82
- justifyContent: 'center',
83
- },
84
- text: {
85
- alignItems: 'center',
86
- gap: SPACING[200],
87
- maxWidth: 340,
88
- },
89
- title: {
90
- color: COLORS.NEUTRAL_9,
91
- textAlign: 'center',
92
- fontSize: 24,
93
- fontWeight: '500',
94
- },
95
- subtitle: {
96
- color: COLORS.NEUTRAL_7,
97
- textAlign: 'center',
98
- fontSize: 16,
99
- fontWeight: '400',
100
- },
101
- })
@@ -1,127 +0,0 @@
1
- import React from 'react'
2
- import { StyleSheet, Text, View } from 'react-native'
3
- import { ListCard } from '../list/ListCard'
4
- import { PentagonIcon } from '../../../../shared/icons/PentagonIcon'
5
- import {
6
- BORDER_RADIUS,
7
- Button,
8
- ButtonSize,
9
- ButtonVariant,
10
- COLORS,
11
- SPACING,
12
- } from '@magmamath/react-native-ui'
13
- import { useText } from '../../../../shared/translation'
14
- import { useUnit, useStoreMap } from 'effector-react'
15
- import { CustomDomain, OpeningLoaderId, SolvingFlow } from '../../shared/pmProgress.constants'
16
- import { usePmProgress } from '../../context/PmProgressContext'
17
-
18
- export const PmTeacherRecs = () => {
19
- const t = useText()
20
- const { model, onPracticePress, onTeacherRecommendationPress } = usePmProgress()
21
- const expandedId = useUnit(model.highlight.$expandedId)
22
- const loaderOpeningId = useUnit(model.solving.$loaderOpeningId)
23
-
24
- const { total, recommendations } = useStoreMap(
25
- model.recommendations.$teacher,
26
- ({ items, total }) => ({
27
- total,
28
- recommendations: items.map((skill) => ({
29
- id: skill._id,
30
- skillId: skill._id,
31
- title: skill.nameTranslations,
32
- subtitle: skill.shortDescriptionTranslations,
33
- isCompleted: false,
34
- skillsLeft: 0,
35
- })),
36
- }),
37
- )
38
-
39
- if (!recommendations.length) return null
40
-
41
- return (
42
- <View style={styles.container}>
43
- <View style={styles.wrapper}>
44
- <ListCard
45
- title={t('pmProgress.teacherRecs')}
46
- items={recommendations}
47
- maxItems={3}
48
- color={COLORS.PRIMARY_YELLOW}
49
- expandedColor={COLORS.YELLOW_1}
50
- onPress={() => model.highlight.expand(CustomDomain.TEACHER)}
51
- onItemPress={async (item) => {
52
- try {
53
- model.solving.setLoaderOpeningId(item.id)
54
- const skill = await model.solving.start({
55
- type: SolvingFlow.TEACHER,
56
- skillId: item.skillId,
57
- })
58
- await onPracticePress?.(skill)
59
- } finally {
60
- model.solving.setLoaderOpeningId(null)
61
- }
62
- }}
63
- loadingItemId={loaderOpeningId}
64
- isLast
65
- isFirst
66
- isSkillsLeftHidden
67
- isExpanded={expandedId === CustomDomain.TEACHER}
68
- isHighlighted={expandedId === CustomDomain.TEACHER}
69
- icon={<PentagonIcon color={COLORS.PRIMARY_YELLOW} />}
70
- rightContent={
71
- <Button
72
- onPress={async () => {
73
- try {
74
- model.solving.setLoaderOpeningId(OpeningLoaderId.PRACTICE_BUTTON)
75
- const skill = await model.solving.start({ type: SolvingFlow.TEACHER })
76
- await onTeacherRecommendationPress?.(skill)
77
- } finally {
78
- model.solving.setLoaderOpeningId(null)
79
- }
80
- }}
81
- disabled={loaderOpeningId !== null}
82
- isLoading={loaderOpeningId === OpeningLoaderId.PRACTICE_BUTTON}
83
- size={ButtonSize.SMALL}
84
- variant={ButtonVariant.SECONDARY}
85
- >
86
- {t('pmProgress.practiceButton')}
87
- </Button>
88
- }
89
- />
90
- {recommendations.length > 0 && (
91
- <View style={styles.badge}>
92
- <Text style={styles.text}>{total}</Text>
93
- </View>
94
- )}
95
- </View>
96
- </View>
97
- )
98
- }
99
-
100
- const styles = StyleSheet.create({
101
- container: {
102
- overflow: 'visible',
103
- padding: SPACING[200],
104
- borderRadius: BORDER_RADIUS[400],
105
- backgroundColor: COLORS.NEUTRAL_1,
106
- },
107
- wrapper: {
108
- position: 'relative',
109
- },
110
- badge: {
111
- position: 'absolute',
112
- top: -8,
113
- right: -8,
114
- width: 20,
115
- height: 20,
116
- backgroundColor: COLORS.PRIMARY_RED,
117
- alignItems: 'center',
118
- justifyContent: 'center',
119
- borderRadius: '50%',
120
- },
121
- text: {
122
- textAlign: 'center',
123
- fontSize: 12,
124
- fontWeight: '600',
125
- color: COLORS.NEUTRAL_1,
126
- },
127
- })
@@ -1,182 +0,0 @@
1
- import React from 'react'
2
- import { StyleSheet, View, Text } from 'react-native'
3
- import { DomainColor, PmProgressModel } from '@magmamath/students-features'
4
- import { SliceDiamondIcon } from '../../../../shared/icons/SliceDiamondIcon'
5
- import { COLORS, FONT_FAMILY } from '@magmamath/react-native-ui'
6
- import { usePmProgress } from '../../context/PmProgressContext'
7
- import { useStoreMap } from 'effector-react'
8
-
9
- type ColorPreset = {
10
- background: string
11
- titleColor: string
12
- tagColor: string
13
- }
14
-
15
- const DOMAIN_COLOR_PRESETS: Record<DomainColor, ColorPreset> = {
16
- [COLORS.PRIMARY_RED]: {
17
- background: COLORS.RED_1,
18
- titleColor: COLORS.RED_6,
19
- tagColor: COLORS.PRIMARY_RED,
20
- },
21
- [COLORS.PRIMARY_MAGENTA]: {
22
- background: COLORS.MAGENTA_1,
23
- titleColor: COLORS.MAGENTA_6,
24
- tagColor: COLORS.PRIMARY_MAGENTA,
25
- },
26
- [COLORS.PRIMARY_PURPLE]: {
27
- background: COLORS.PURPLE_1,
28
- titleColor: COLORS.PURPLE_6,
29
- tagColor: COLORS.PRIMARY_PURPLE,
30
- },
31
- [COLORS.PRIMARY_INDIGO]: {
32
- background: COLORS.INDIGO_1,
33
- titleColor: COLORS.INDIGO_6,
34
- tagColor: COLORS.PRIMARY_INDIGO,
35
- },
36
- [COLORS.PRIMARY_TURQUOISE]: {
37
- background: COLORS.TURQUOISE_1,
38
- titleColor: COLORS.TURQUOISE_6,
39
- tagColor: COLORS.PRIMARY_TURQUOISE,
40
- },
41
- [COLORS.PRIMARY_GREEN]: {
42
- background: COLORS.GREEN_1,
43
- titleColor: COLORS.GREEN_6,
44
- tagColor: COLORS.PRIMARY_GREEN,
45
- },
46
- [COLORS.PRIMARY_ORANGE]: {
47
- background: COLORS.ORANGE_1,
48
- titleColor: COLORS.ORANGE_6,
49
- tagColor: COLORS.PRIMARY_ORANGE,
50
- },
51
- [COLORS.RED_4]: { background: COLORS.RED_1, titleColor: COLORS.RED_6, tagColor: COLORS.RED_4 },
52
- [COLORS.MAGENTA_4]: {
53
- background: COLORS.MAGENTA_1,
54
- titleColor: COLORS.MAGENTA_6,
55
- tagColor: COLORS.MAGENTA_4,
56
- },
57
- [COLORS.PURPLE_4]: {
58
- background: COLORS.PURPLE_1,
59
- titleColor: COLORS.PURPLE_6,
60
- tagColor: COLORS.PURPLE_4,
61
- },
62
- [COLORS.INDIGO_4]: {
63
- background: COLORS.INDIGO_1,
64
- titleColor: COLORS.INDIGO_6,
65
- tagColor: COLORS.INDIGO_4,
66
- },
67
- [COLORS.TURQUOISE_4]: {
68
- background: COLORS.TURQUOISE_1,
69
- titleColor: COLORS.TURQUOISE_6,
70
- tagColor: COLORS.TURQUOISE_4,
71
- },
72
- [COLORS.GREEN_4]: {
73
- background: COLORS.GREEN_1,
74
- titleColor: COLORS.GREEN_6,
75
- tagColor: COLORS.GREEN_4,
76
- },
77
- [COLORS.ORANGE_4]: {
78
- background: COLORS.ORANGE_1,
79
- titleColor: COLORS.ORANGE_6,
80
- tagColor: COLORS.ORANGE_4,
81
- },
82
- [COLORS.RED_6]: { background: COLORS.RED_1, titleColor: COLORS.RED_6, tagColor: COLORS.RED_6 },
83
- [COLORS.MAGENTA_6]: {
84
- background: COLORS.MAGENTA_1,
85
- titleColor: COLORS.MAGENTA_6,
86
- tagColor: COLORS.MAGENTA_6,
87
- },
88
- [COLORS.PURPLE_6]: {
89
- background: COLORS.PURPLE_1,
90
- titleColor: COLORS.PURPLE_6,
91
- tagColor: COLORS.PURPLE_6,
92
- },
93
- [COLORS.INDIGO_6]: {
94
- background: COLORS.INDIGO_1,
95
- titleColor: COLORS.INDIGO_6,
96
- tagColor: COLORS.INDIGO_6,
97
- },
98
- [COLORS.TURQUOISE_6]: {
99
- background: COLORS.TURQUOISE_1,
100
- titleColor: COLORS.TURQUOISE_6,
101
- tagColor: COLORS.TURQUOISE_6,
102
- },
103
- [COLORS.GREEN_6]: {
104
- background: COLORS.GREEN_1,
105
- titleColor: COLORS.GREEN_6,
106
- tagColor: COLORS.GREEN_6,
107
- },
108
- [COLORS.ORANGE_6]: {
109
- background: COLORS.ORANGE_1,
110
- titleColor: COLORS.ORANGE_6,
111
- tagColor: COLORS.ORANGE_6,
112
- },
113
- }
114
-
115
- type StandardTagProps = {
116
- skillId: string
117
- model: PmProgressModel
118
- }
119
-
120
- export const StandardTag = ({ skillId, model }: StandardTagProps) => {
121
- const standardInfo = useStoreMap({
122
- store: model.tree.$domains,
123
- keys: [skillId],
124
- fn: (domains, [skillId]) => {
125
- const domain = domains.find((d) => d.standards.some((s) => s.skillIds.includes(skillId)))
126
- const standard = domain?.standards.find(({ skillIds }) => skillIds.includes(skillId))
127
- if (!standard || !domain) return null
128
- return { title: standard.title, tag: standard.subtitle, color: domain.color }
129
- },
130
- })
131
-
132
- if (!standardInfo) return null
133
-
134
- const preset = DOMAIN_COLOR_PRESETS[standardInfo.color as DomainColor]
135
-
136
- return (
137
- <View style={[styles.container, { backgroundColor: preset.background }]}>
138
- <SliceDiamondIcon color={preset.tagColor} />
139
- <View style={styles.textContainer}>
140
- <Text numberOfLines={2} style={[styles.title, { color: preset.titleColor }]}>
141
- {standardInfo.title}
142
- </Text>
143
- <Text numberOfLines={1} style={[styles.tag, { color: preset.tagColor }]}>
144
- {standardInfo.tag}
145
- </Text>
146
- </View>
147
- </View>
148
- )
149
- }
150
-
151
- const styles = StyleSheet.create({
152
- container: {
153
- minWidth: 110,
154
- maxWidth: 200,
155
- paddingHorizontal: 8,
156
- paddingVertical: 4,
157
- borderRadius: 12,
158
- flexDirection: 'row',
159
- alignItems: 'center',
160
- gap: 8,
161
- alignSelf: 'flex-start',
162
- shadowColor: '#333333',
163
- shadowOffset: { width: 0, height: 1 },
164
- shadowOpacity: 0.1,
165
- shadowRadius: 3,
166
- elevation: 2,
167
- },
168
- textContainer: {
169
- flex: 1,
170
- flexDirection: 'column',
171
- justifyContent: 'center',
172
- alignItems: 'flex-start',
173
- },
174
- title: {
175
- fontSize: 13,
176
- fontFamily: FONT_FAMILY.buenosAires,
177
- },
178
- tag: {
179
- fontSize: 10,
180
- fontFamily: FONT_FAMILY.buenosAires,
181
- },
182
- })
@@ -1,25 +0,0 @@
1
- import { createContext, useContext } from 'react'
2
- import { PmProgressModel } from '../model/PmProgressModel'
3
- import { Skill, GradeLabelsMap } from '@magmamath/students-features'
4
-
5
- export type PmProgressContextValue = {
6
- model: PmProgressModel
7
- customGradeLabels?: GradeLabelsMap
8
- readOnly?: boolean
9
- onStartPress?: (skill: Skill) => Promise<void>
10
- onPracticePress?: (skill: Skill) => Promise<void>
11
- onStandardPress?: (skill: Skill) => Promise<void>
12
- onTeacherRecommendationPress?: (skill: Skill) => Promise<void>
13
- }
14
-
15
- const PmProgressContext = createContext<PmProgressContextValue | null>(null)
16
-
17
- export function usePmProgress(): PmProgressContextValue {
18
- const value = useContext(PmProgressContext)
19
- if (!value) {
20
- throw new Error('usePmProgress must be used within PmProgressProvider')
21
- }
22
- return value
23
- }
24
-
25
- export const PmProgressProvider = PmProgressContext.Provider
@@ -1,6 +0,0 @@
1
- export { PmProgress } from './PmProgress'
2
- export { PmProgressModel } from './model/PmProgressModel'
3
- export { StandardTag } from './components/standard/StandardTag'
4
- export { TreeNormalizer } from './shared/TreeNormalizer'
5
- export * from './shared/pmProgress.types'
6
- export * from './shared/pmProgress.constants'
@@ -1,11 +0,0 @@
1
- import { createEvent, createStore, restore } from 'effector'
2
-
3
- export class PmHighlightModel {
4
- public readonly expand = createEvent<string>()
5
- public readonly hover = createEvent<string | null>()
6
-
7
- public readonly $hoveredId = restore(this.hover, null)
8
- public readonly $expandedId = createStore<string | null>(null).on(this.expand, (current, id) =>
9
- current === id ? null : id,
10
- )
11
- }