@magmamath/students-features 1.3.4-rc.3 → 1.3.5-rc.0

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 (516) hide show
  1. package/dist/commonjs/features/chatbot/components/ChatInput/ChatInput.js +2 -1
  2. package/dist/commonjs/features/chatbot/components/ChatInput/ChatInput.js.map +1 -1
  3. package/dist/commonjs/features/chatbot/components/ChatMessage/MessageContent.js +2 -1
  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/pmProgress/PmProgress.js +41 -0
  8. package/dist/commonjs/features/pmProgress/PmProgress.js.map +1 -0
  9. package/dist/commonjs/features/pmProgress/components/chart/chart.helpers.js +24 -0
  10. package/dist/commonjs/features/pmProgress/components/chart/chart.helpers.js.map +1 -0
  11. package/dist/commonjs/features/pmProgress/components/chart/chart.types.js +2 -0
  12. package/dist/commonjs/features/pmProgress/components/chart/chart.types.js.map +1 -0
  13. package/dist/commonjs/features/pmProgress/components/chart/components/PracticeProgressPieChart.js +44 -0
  14. package/dist/commonjs/features/pmProgress/components/chart/components/PracticeProgressPieChart.js.map +1 -0
  15. package/dist/commonjs/features/pmProgress/components/chart/components/SlicesClipPaths.js +26 -0
  16. package/dist/commonjs/features/pmProgress/components/chart/components/SlicesClipPaths.js.map +1 -0
  17. package/dist/commonjs/features/pmProgress/components/chart/components/SlicesPaths.js +91 -0
  18. package/dist/commonjs/features/pmProgress/components/chart/components/SlicesPaths.js.map +1 -0
  19. package/dist/commonjs/features/pmProgress/components/chart/components/layers/SliceArcPattern.js +38 -0
  20. package/dist/commonjs/features/pmProgress/components/chart/components/layers/SliceArcPattern.js.map +1 -0
  21. package/dist/commonjs/features/pmProgress/components/chart/components/layers/SliceBackgroundColor.js +21 -0
  22. package/dist/commonjs/features/pmProgress/components/chart/components/layers/SliceBackgroundColor.js.map +1 -0
  23. package/dist/commonjs/features/pmProgress/components/chart/components/layers/SliceFillColor.js +55 -0
  24. package/dist/commonjs/features/pmProgress/components/chart/components/layers/SliceFillColor.js.map +1 -0
  25. package/dist/commonjs/features/pmProgress/components/chart/model/ArcPatternGenerator.js +49 -0
  26. package/dist/commonjs/features/pmProgress/components/chart/model/ArcPatternGenerator.js.map +1 -0
  27. package/dist/commonjs/features/pmProgress/components/chart/model/PieChartManager.js +23 -0
  28. package/dist/commonjs/features/pmProgress/components/chart/model/PieChartManager.js.map +1 -0
  29. package/dist/commonjs/features/pmProgress/components/chart/model/SliceShapeGenerator.js +79 -0
  30. package/dist/commonjs/features/pmProgress/components/chart/model/SliceShapeGenerator.js.map +1 -0
  31. package/dist/commonjs/features/pmProgress/components/content/PmContent.js +48 -0
  32. package/dist/commonjs/features/pmProgress/components/content/PmContent.js.map +1 -0
  33. package/dist/commonjs/features/pmProgress/components/header/NextUp.js +127 -0
  34. package/dist/commonjs/features/pmProgress/components/header/NextUp.js.map +1 -0
  35. package/dist/commonjs/features/pmProgress/components/header/PmProgressHeader.js +133 -0
  36. package/dist/commonjs/features/pmProgress/components/header/PmProgressHeader.js.map +1 -0
  37. package/dist/commonjs/features/pmProgress/components/header/StartButton.js +126 -0
  38. package/dist/commonjs/features/pmProgress/components/header/StartButton.js.map +1 -0
  39. package/dist/commonjs/features/pmProgress/components/insights/PmInsights.js +71 -0
  40. package/dist/commonjs/features/pmProgress/components/insights/PmInsights.js.map +1 -0
  41. package/dist/commonjs/features/pmProgress/components/insights/PmTimeframeStats.js +102 -0
  42. package/dist/commonjs/features/pmProgress/components/insights/PmTimeframeStats.js.map +1 -0
  43. package/dist/commonjs/features/pmProgress/components/insights/StatsCard.js +72 -0
  44. package/dist/commonjs/features/pmProgress/components/insights/StatsCard.js.map +1 -0
  45. package/dist/commonjs/features/pmProgress/components/list/Fluency.js +82 -0
  46. package/dist/commonjs/features/pmProgress/components/list/Fluency.js.map +1 -0
  47. package/dist/commonjs/features/pmProgress/components/list/ListCard.js +207 -0
  48. package/dist/commonjs/features/pmProgress/components/list/ListCard.js.map +1 -0
  49. package/dist/commonjs/features/pmProgress/components/list/ListItem.js +141 -0
  50. package/dist/commonjs/features/pmProgress/components/list/ListItem.js.map +1 -0
  51. package/dist/commonjs/features/pmProgress/components/list/PmDomainList.js +97 -0
  52. package/dist/commonjs/features/pmProgress/components/list/PmDomainList.js.map +1 -0
  53. package/dist/commonjs/features/pmProgress/components/locked/PmStatusOverlay.js +101 -0
  54. package/dist/commonjs/features/pmProgress/components/locked/PmStatusOverlay.js.map +1 -0
  55. package/dist/commonjs/features/pmProgress/components/recs/PmTeacherRecs.js +135 -0
  56. package/dist/commonjs/features/pmProgress/components/recs/PmTeacherRecs.js.map +1 -0
  57. package/dist/commonjs/features/pmProgress/components/standard/StandardTag.js +203 -0
  58. package/dist/commonjs/features/pmProgress/components/standard/StandardTag.js.map +1 -0
  59. package/dist/commonjs/features/pmProgress/context/PmProgressContext.js +18 -0
  60. package/dist/commonjs/features/pmProgress/context/PmProgressContext.js.map +1 -0
  61. package/dist/commonjs/features/pmProgress/index.js +64 -0
  62. package/dist/commonjs/features/pmProgress/index.js.map +1 -0
  63. package/dist/commonjs/features/pmProgress/model/PmHighlightModel.js +15 -0
  64. package/dist/commonjs/features/pmProgress/model/PmHighlightModel.js.map +1 -0
  65. package/dist/commonjs/features/pmProgress/model/PmInsightsModel.js +22 -0
  66. package/dist/commonjs/features/pmProgress/model/PmInsightsModel.js.map +1 -0
  67. package/dist/commonjs/features/pmProgress/model/PmProgressApi.js +18 -0
  68. package/dist/commonjs/features/pmProgress/model/PmProgressApi.js.map +1 -0
  69. package/dist/commonjs/features/pmProgress/model/PmProgressModel.js +43 -0
  70. package/dist/commonjs/features/pmProgress/model/PmProgressModel.js.map +1 -0
  71. package/dist/commonjs/features/pmProgress/model/PmRecommendationsModel.js +47 -0
  72. package/dist/commonjs/features/pmProgress/model/PmRecommendationsModel.js.map +1 -0
  73. package/dist/commonjs/features/pmProgress/model/PmSolvingFlowModel.js +104 -0
  74. package/dist/commonjs/features/pmProgress/model/PmSolvingFlowModel.js.map +1 -0
  75. package/dist/commonjs/features/pmProgress/model/PmTreeModel.js +176 -0
  76. package/dist/commonjs/features/pmProgress/model/PmTreeModel.js.map +1 -0
  77. package/dist/commonjs/features/pmProgress/shared/TreeNormalizer.js +52 -0
  78. package/dist/commonjs/features/pmProgress/shared/TreeNormalizer.js.map +1 -0
  79. package/dist/commonjs/features/pmProgress/shared/pmProgress.constants.js +65 -0
  80. package/dist/commonjs/features/pmProgress/shared/pmProgress.constants.js.map +1 -0
  81. package/dist/commonjs/features/pmProgress/shared/pmProgress.helpers.js +234 -0
  82. package/dist/commonjs/features/pmProgress/shared/pmProgress.helpers.js.map +1 -0
  83. package/dist/commonjs/features/pmProgress/shared/pmProgress.types.js +12 -0
  84. package/dist/commonjs/features/pmProgress/shared/pmProgress.types.js.map +1 -0
  85. package/dist/commonjs/features/voice/constants.js +3 -15
  86. package/dist/commonjs/features/voice/constants.js.map +1 -1
  87. package/dist/commonjs/features/voice/recording/components/VoiceRecord.js +5 -19
  88. package/dist/commonjs/features/voice/recording/components/VoiceRecord.js.map +1 -1
  89. package/dist/commonjs/features/voice/recording/components/VoiceRecordButton.js +26 -81
  90. package/dist/commonjs/features/voice/recording/components/VoiceRecordButton.js.map +1 -1
  91. package/dist/commonjs/features/voice/recording/components/VoiceRecordDeleteButton.js +2 -2
  92. package/dist/commonjs/features/voice/recording/hooks/useVoiceRecorderAnimation.js +3 -3
  93. package/dist/commonjs/features/voice/recording/hooks/useVoiceRecorderAnimation.js.map +1 -1
  94. package/dist/commonjs/features/voice/recording/model/VoiceRecord.model.js +0 -5
  95. package/dist/commonjs/features/voice/recording/model/VoiceRecord.model.js.map +1 -1
  96. package/dist/commonjs/features/voice/types.js +0 -6
  97. package/dist/commonjs/features/voice/types.js.map +1 -1
  98. package/dist/commonjs/index.js +15 -3
  99. package/dist/commonjs/index.js.map +1 -1
  100. package/dist/commonjs/shared/icons/MenuIcon.js +30 -0
  101. package/dist/commonjs/shared/icons/MenuIcon.js.map +1 -0
  102. package/dist/commonjs/shared/icons/PentagonIcon.js +29 -0
  103. package/dist/commonjs/shared/icons/PentagonIcon.js.map +1 -0
  104. package/dist/commonjs/shared/icons/SketchArrowRight.js +33 -0
  105. package/dist/commonjs/shared/icons/SketchArrowRight.js.map +1 -0
  106. package/dist/commonjs/shared/icons/SliceDiamondIcon.js +29 -0
  107. package/dist/commonjs/shared/icons/SliceDiamondIcon.js.map +1 -0
  108. package/dist/commonjs/shared/icons/StarIcon.js +32 -0
  109. package/dist/commonjs/shared/icons/StarIcon.js.map +1 -0
  110. package/dist/commonjs/shared/icons/TimerIcon.js +35 -0
  111. package/dist/commonjs/shared/icons/TimerIcon.js.map +1 -0
  112. package/dist/commonjs/shared/translation/localization/ca.json +24 -0
  113. package/dist/commonjs/shared/translation/localization/de.json +24 -0
  114. package/dist/commonjs/shared/translation/localization/en.json +24 -0
  115. package/dist/commonjs/shared/translation/localization/gb.json +24 -0
  116. package/dist/commonjs/shared/translation/localization/sct.json +24 -0
  117. package/dist/commonjs/shared/translation/localization/sw.json +24 -0
  118. package/dist/module/features/chatbot/components/ChatInput/ChatInput.js +2 -1
  119. package/dist/module/features/chatbot/components/ChatInput/ChatInput.js.map +1 -1
  120. package/dist/module/features/chatbot/components/ChatMessage/MessageContent.js +2 -1
  121. package/dist/module/features/chatbot/components/ChatMessage/MessageContent.js.map +1 -1
  122. package/dist/module/features/endOfAssignment/components/AssessmentScoreCard/AssessmentScoreCard.js +2 -2
  123. package/dist/module/features/endOfAssignment/components/AssessmentScoreCard/AssessmentScoreCard.js.map +1 -1
  124. package/dist/module/features/pmProgress/PmProgress.js +35 -0
  125. package/dist/module/features/pmProgress/PmProgress.js.map +1 -0
  126. package/dist/module/features/pmProgress/components/chart/chart.helpers.js +17 -0
  127. package/dist/module/features/pmProgress/components/chart/chart.helpers.js.map +1 -0
  128. package/dist/module/features/pmProgress/components/chart/chart.types.js +2 -0
  129. package/dist/module/features/pmProgress/components/chart/chart.types.js.map +1 -0
  130. package/dist/module/features/pmProgress/components/chart/components/PracticeProgressPieChart.js +38 -0
  131. package/dist/module/features/pmProgress/components/chart/components/PracticeProgressPieChart.js.map +1 -0
  132. package/dist/module/features/pmProgress/components/chart/components/SlicesClipPaths.js +20 -0
  133. package/dist/module/features/pmProgress/components/chart/components/SlicesClipPaths.js.map +1 -0
  134. package/dist/module/features/pmProgress/components/chart/components/SlicesPaths.js +85 -0
  135. package/dist/module/features/pmProgress/components/chart/components/SlicesPaths.js.map +1 -0
  136. package/dist/module/features/pmProgress/components/chart/components/layers/SliceArcPattern.js +32 -0
  137. package/dist/module/features/pmProgress/components/chart/components/layers/SliceArcPattern.js.map +1 -0
  138. package/dist/module/features/pmProgress/components/chart/components/layers/SliceBackgroundColor.js +15 -0
  139. package/dist/module/features/pmProgress/components/chart/components/layers/SliceBackgroundColor.js.map +1 -0
  140. package/dist/module/features/pmProgress/components/chart/components/layers/SliceFillColor.js +49 -0
  141. package/dist/module/features/pmProgress/components/chart/components/layers/SliceFillColor.js.map +1 -0
  142. package/dist/module/features/pmProgress/components/chart/model/ArcPatternGenerator.js +44 -0
  143. package/dist/module/features/pmProgress/components/chart/model/ArcPatternGenerator.js.map +1 -0
  144. package/dist/module/features/pmProgress/components/chart/model/PieChartManager.js +18 -0
  145. package/dist/module/features/pmProgress/components/chart/model/PieChartManager.js.map +1 -0
  146. package/dist/module/features/pmProgress/components/chart/model/SliceShapeGenerator.js +74 -0
  147. package/dist/module/features/pmProgress/components/chart/model/SliceShapeGenerator.js.map +1 -0
  148. package/dist/module/features/pmProgress/components/content/PmContent.js +42 -0
  149. package/dist/module/features/pmProgress/components/content/PmContent.js.map +1 -0
  150. package/dist/module/features/pmProgress/components/header/NextUp.js +121 -0
  151. package/dist/module/features/pmProgress/components/header/NextUp.js.map +1 -0
  152. package/dist/module/features/pmProgress/components/header/PmProgressHeader.js +126 -0
  153. package/dist/module/features/pmProgress/components/header/PmProgressHeader.js.map +1 -0
  154. package/dist/module/features/pmProgress/components/header/StartButton.js +119 -0
  155. package/dist/module/features/pmProgress/components/header/StartButton.js.map +1 -0
  156. package/dist/module/features/pmProgress/components/insights/PmInsights.js +64 -0
  157. package/dist/module/features/pmProgress/components/insights/PmInsights.js.map +1 -0
  158. package/dist/module/features/pmProgress/components/insights/PmTimeframeStats.js +97 -0
  159. package/dist/module/features/pmProgress/components/insights/PmTimeframeStats.js.map +1 -0
  160. package/dist/module/features/pmProgress/components/insights/StatsCard.js +66 -0
  161. package/dist/module/features/pmProgress/components/insights/StatsCard.js.map +1 -0
  162. package/dist/module/features/pmProgress/components/list/Fluency.js +76 -0
  163. package/dist/module/features/pmProgress/components/list/Fluency.js.map +1 -0
  164. package/dist/module/features/pmProgress/components/list/ListCard.js +200 -0
  165. package/dist/module/features/pmProgress/components/list/ListCard.js.map +1 -0
  166. package/dist/module/features/pmProgress/components/list/ListItem.js +134 -0
  167. package/dist/module/features/pmProgress/components/list/ListItem.js.map +1 -0
  168. package/dist/module/features/pmProgress/components/list/PmDomainList.js +91 -0
  169. package/dist/module/features/pmProgress/components/list/PmDomainList.js.map +1 -0
  170. package/dist/module/features/pmProgress/components/locked/PmStatusOverlay.js +95 -0
  171. package/dist/module/features/pmProgress/components/locked/PmStatusOverlay.js.map +1 -0
  172. package/dist/module/features/pmProgress/components/recs/PmTeacherRecs.js +129 -0
  173. package/dist/module/features/pmProgress/components/recs/PmTeacherRecs.js.map +1 -0
  174. package/dist/module/features/pmProgress/components/standard/StandardTag.js +197 -0
  175. package/dist/module/features/pmProgress/components/standard/StandardTag.js.map +1 -0
  176. package/dist/module/features/pmProgress/context/PmProgressContext.js +13 -0
  177. package/dist/module/features/pmProgress/context/PmProgressContext.js.map +1 -0
  178. package/dist/module/features/pmProgress/index.js +9 -0
  179. package/dist/module/features/pmProgress/index.js.map +1 -0
  180. package/dist/module/features/pmProgress/model/PmHighlightModel.js +10 -0
  181. package/dist/module/features/pmProgress/model/PmHighlightModel.js.map +1 -0
  182. package/dist/module/features/pmProgress/model/PmInsightsModel.js +17 -0
  183. package/dist/module/features/pmProgress/model/PmInsightsModel.js.map +1 -0
  184. package/dist/module/features/pmProgress/model/PmProgressApi.js +13 -0
  185. package/dist/module/features/pmProgress/model/PmProgressApi.js.map +1 -0
  186. package/dist/module/features/pmProgress/model/PmProgressModel.js +38 -0
  187. package/dist/module/features/pmProgress/model/PmProgressModel.js.map +1 -0
  188. package/dist/module/features/pmProgress/model/PmRecommendationsModel.js +42 -0
  189. package/dist/module/features/pmProgress/model/PmRecommendationsModel.js.map +1 -0
  190. package/dist/module/features/pmProgress/model/PmSolvingFlowModel.js +99 -0
  191. package/dist/module/features/pmProgress/model/PmSolvingFlowModel.js.map +1 -0
  192. package/dist/module/features/pmProgress/model/PmTreeModel.js +171 -0
  193. package/dist/module/features/pmProgress/model/PmTreeModel.js.map +1 -0
  194. package/dist/module/features/pmProgress/shared/TreeNormalizer.js +47 -0
  195. package/dist/module/features/pmProgress/shared/TreeNormalizer.js.map +1 -0
  196. package/dist/module/features/pmProgress/shared/pmProgress.constants.js +62 -0
  197. package/dist/module/features/pmProgress/shared/pmProgress.constants.js.map +1 -0
  198. package/dist/module/features/pmProgress/shared/pmProgress.helpers.js +214 -0
  199. package/dist/module/features/pmProgress/shared/pmProgress.helpers.js.map +1 -0
  200. package/dist/module/features/pmProgress/shared/pmProgress.types.js +8 -0
  201. package/dist/module/features/pmProgress/shared/pmProgress.types.js.map +1 -0
  202. package/dist/module/features/voice/constants.js +2 -14
  203. package/dist/module/features/voice/constants.js.map +1 -1
  204. package/dist/module/features/voice/recording/components/VoiceRecord.js +6 -20
  205. package/dist/module/features/voice/recording/components/VoiceRecord.js.map +1 -1
  206. package/dist/module/features/voice/recording/components/VoiceRecordButton.js +28 -83
  207. package/dist/module/features/voice/recording/components/VoiceRecordButton.js.map +1 -1
  208. package/dist/module/features/voice/recording/components/VoiceRecordDeleteButton.js +2 -2
  209. package/dist/module/features/voice/recording/hooks/useVoiceRecorderAnimation.js +3 -3
  210. package/dist/module/features/voice/recording/hooks/useVoiceRecorderAnimation.js.map +1 -1
  211. package/dist/module/features/voice/recording/model/VoiceRecord.model.js +0 -5
  212. package/dist/module/features/voice/recording/model/VoiceRecord.model.js.map +1 -1
  213. package/dist/module/features/voice/types.js +1 -5
  214. package/dist/module/features/voice/types.js.map +1 -1
  215. package/dist/module/index.js +1 -0
  216. package/dist/module/index.js.map +1 -1
  217. package/dist/module/shared/icons/MenuIcon.js +22 -0
  218. package/dist/module/shared/icons/MenuIcon.js.map +1 -0
  219. package/dist/module/shared/icons/PentagonIcon.js +21 -0
  220. package/dist/module/shared/icons/PentagonIcon.js.map +1 -0
  221. package/dist/module/shared/icons/SketchArrowRight.js +25 -0
  222. package/dist/module/shared/icons/SketchArrowRight.js.map +1 -0
  223. package/dist/module/shared/icons/SliceDiamondIcon.js +21 -0
  224. package/dist/module/shared/icons/SliceDiamondIcon.js.map +1 -0
  225. package/dist/module/shared/icons/StarIcon.js +24 -0
  226. package/dist/module/shared/icons/StarIcon.js.map +1 -0
  227. package/dist/module/shared/icons/TimerIcon.js +27 -0
  228. package/dist/module/shared/icons/TimerIcon.js.map +1 -0
  229. package/dist/module/shared/translation/localization/ca.json +24 -0
  230. package/dist/module/shared/translation/localization/de.json +24 -0
  231. package/dist/module/shared/translation/localization/en.json +24 -0
  232. package/dist/module/shared/translation/localization/gb.json +24 -0
  233. package/dist/module/shared/translation/localization/sct.json +24 -0
  234. package/dist/module/shared/translation/localization/sw.json +24 -0
  235. package/dist/typescript/commonjs/features/chatbot/components/ChatInput/ChatInput.d.ts.map +1 -1
  236. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/MessageContent.d.ts.map +1 -1
  237. package/dist/typescript/commonjs/features/pmProgress/PmProgress.d.ts +9 -0
  238. package/dist/typescript/commonjs/features/pmProgress/PmProgress.d.ts.map +1 -0
  239. package/dist/typescript/commonjs/features/pmProgress/components/chart/chart.helpers.d.ts +4 -0
  240. package/dist/typescript/commonjs/features/pmProgress/components/chart/chart.helpers.d.ts.map +1 -0
  241. package/dist/typescript/commonjs/features/pmProgress/components/chart/chart.types.d.ts +36 -0
  242. package/dist/typescript/commonjs/features/pmProgress/components/chart/chart.types.d.ts.map +1 -0
  243. package/dist/typescript/commonjs/features/pmProgress/components/chart/components/PracticeProgressPieChart.d.ts +9 -0
  244. package/dist/typescript/commonjs/features/pmProgress/components/chart/components/PracticeProgressPieChart.d.ts.map +1 -0
  245. package/dist/typescript/commonjs/features/pmProgress/components/chart/components/SlicesClipPaths.d.ts +10 -0
  246. package/dist/typescript/commonjs/features/pmProgress/components/chart/components/SlicesClipPaths.d.ts.map +1 -0
  247. package/dist/typescript/commonjs/features/pmProgress/components/chart/components/SlicesPaths.d.ts +11 -0
  248. package/dist/typescript/commonjs/features/pmProgress/components/chart/components/SlicesPaths.d.ts.map +1 -0
  249. package/dist/typescript/commonjs/features/pmProgress/components/chart/components/layers/SliceArcPattern.d.ts +12 -0
  250. package/dist/typescript/commonjs/features/pmProgress/components/chart/components/layers/SliceArcPattern.d.ts.map +1 -0
  251. package/dist/typescript/commonjs/features/pmProgress/components/chart/components/layers/SliceBackgroundColor.d.ts +8 -0
  252. package/dist/typescript/commonjs/features/pmProgress/components/chart/components/layers/SliceBackgroundColor.d.ts.map +1 -0
  253. package/dist/typescript/commonjs/features/pmProgress/components/chart/components/layers/SliceFillColor.d.ts +14 -0
  254. package/dist/typescript/commonjs/features/pmProgress/components/chart/components/layers/SliceFillColor.d.ts.map +1 -0
  255. package/dist/typescript/commonjs/features/pmProgress/components/chart/model/ArcPatternGenerator.d.ts +12 -0
  256. package/dist/typescript/commonjs/features/pmProgress/components/chart/model/ArcPatternGenerator.d.ts.map +1 -0
  257. package/dist/typescript/commonjs/features/pmProgress/components/chart/model/PieChartManager.d.ts +14 -0
  258. package/dist/typescript/commonjs/features/pmProgress/components/chart/model/PieChartManager.d.ts.map +1 -0
  259. package/dist/typescript/commonjs/features/pmProgress/components/chart/model/SliceShapeGenerator.d.ts +17 -0
  260. package/dist/typescript/commonjs/features/pmProgress/components/chart/model/SliceShapeGenerator.d.ts.map +1 -0
  261. package/dist/typescript/commonjs/features/pmProgress/components/content/PmContent.d.ts +3 -0
  262. package/dist/typescript/commonjs/features/pmProgress/components/content/PmContent.d.ts.map +1 -0
  263. package/dist/typescript/commonjs/features/pmProgress/components/header/NextUp.d.ts +3 -0
  264. package/dist/typescript/commonjs/features/pmProgress/components/header/NextUp.d.ts.map +1 -0
  265. package/dist/typescript/commonjs/features/pmProgress/components/header/PmProgressHeader.d.ts +3 -0
  266. package/dist/typescript/commonjs/features/pmProgress/components/header/PmProgressHeader.d.ts.map +1 -0
  267. package/dist/typescript/commonjs/features/pmProgress/components/header/StartButton.d.ts +11 -0
  268. package/dist/typescript/commonjs/features/pmProgress/components/header/StartButton.d.ts.map +1 -0
  269. package/dist/typescript/commonjs/features/pmProgress/components/insights/PmInsights.d.ts +3 -0
  270. package/dist/typescript/commonjs/features/pmProgress/components/insights/PmInsights.d.ts.map +1 -0
  271. package/dist/typescript/commonjs/features/pmProgress/components/insights/PmTimeframeStats.d.ts +3 -0
  272. package/dist/typescript/commonjs/features/pmProgress/components/insights/PmTimeframeStats.d.ts.map +1 -0
  273. package/dist/typescript/commonjs/features/pmProgress/components/insights/StatsCard.d.ts +12 -0
  274. package/dist/typescript/commonjs/features/pmProgress/components/insights/StatsCard.d.ts.map +1 -0
  275. package/dist/typescript/commonjs/features/pmProgress/components/list/Fluency.d.ts +8 -0
  276. package/dist/typescript/commonjs/features/pmProgress/components/list/Fluency.d.ts.map +1 -0
  277. package/dist/typescript/commonjs/features/pmProgress/components/list/ListCard.d.ts +31 -0
  278. package/dist/typescript/commonjs/features/pmProgress/components/list/ListCard.d.ts.map +1 -0
  279. package/dist/typescript/commonjs/features/pmProgress/components/list/ListItem.d.ts +12 -0
  280. package/dist/typescript/commonjs/features/pmProgress/components/list/ListItem.d.ts.map +1 -0
  281. package/dist/typescript/commonjs/features/pmProgress/components/list/PmDomainList.d.ts +3 -0
  282. package/dist/typescript/commonjs/features/pmProgress/components/list/PmDomainList.d.ts.map +1 -0
  283. package/dist/typescript/commonjs/features/pmProgress/components/locked/PmStatusOverlay.d.ts +8 -0
  284. package/dist/typescript/commonjs/features/pmProgress/components/locked/PmStatusOverlay.d.ts.map +1 -0
  285. package/dist/typescript/commonjs/features/pmProgress/components/recs/PmTeacherRecs.d.ts +3 -0
  286. package/dist/typescript/commonjs/features/pmProgress/components/recs/PmTeacherRecs.d.ts.map +1 -0
  287. package/dist/typescript/commonjs/features/pmProgress/components/standard/StandardTag.d.ts +9 -0
  288. package/dist/typescript/commonjs/features/pmProgress/components/standard/StandardTag.d.ts.map +1 -0
  289. package/dist/typescript/commonjs/features/pmProgress/context/PmProgressContext.d.ts +15 -0
  290. package/dist/typescript/commonjs/features/pmProgress/context/PmProgressContext.d.ts.map +1 -0
  291. package/dist/typescript/commonjs/features/pmProgress/index.d.ts +7 -0
  292. package/dist/typescript/commonjs/features/pmProgress/index.d.ts.map +1 -0
  293. package/dist/typescript/commonjs/features/pmProgress/model/PmHighlightModel.d.ts +7 -0
  294. package/dist/typescript/commonjs/features/pmProgress/model/PmHighlightModel.d.ts.map +1 -0
  295. package/dist/typescript/commonjs/features/pmProgress/model/PmInsightsModel.d.ts +14 -0
  296. package/dist/typescript/commonjs/features/pmProgress/model/PmInsightsModel.d.ts.map +1 -0
  297. package/dist/typescript/commonjs/features/pmProgress/model/PmProgressApi.d.ts +17 -0
  298. package/dist/typescript/commonjs/features/pmProgress/model/PmProgressApi.d.ts.map +1 -0
  299. package/dist/typescript/commonjs/features/pmProgress/model/PmProgressModel.d.ts +23 -0
  300. package/dist/typescript/commonjs/features/pmProgress/model/PmProgressModel.d.ts.map +1 -0
  301. package/dist/typescript/commonjs/features/pmProgress/model/PmRecommendationsModel.d.ts +102 -0
  302. package/dist/typescript/commonjs/features/pmProgress/model/PmRecommendationsModel.d.ts.map +1 -0
  303. package/dist/typescript/commonjs/features/pmProgress/model/PmSolvingFlowModel.d.ts +22 -0
  304. package/dist/typescript/commonjs/features/pmProgress/model/PmSolvingFlowModel.d.ts.map +1 -0
  305. package/dist/typescript/commonjs/features/pmProgress/model/PmTreeModel.d.ts +25 -0
  306. package/dist/typescript/commonjs/features/pmProgress/model/PmTreeModel.d.ts.map +1 -0
  307. package/dist/typescript/commonjs/features/pmProgress/shared/TreeNormalizer.d.ts +17 -0
  308. package/dist/typescript/commonjs/features/pmProgress/shared/TreeNormalizer.d.ts.map +1 -0
  309. package/dist/typescript/commonjs/features/pmProgress/shared/pmProgress.constants.d.ts +49 -0
  310. package/dist/typescript/commonjs/features/pmProgress/shared/pmProgress.constants.d.ts.map +1 -0
  311. package/dist/typescript/commonjs/features/pmProgress/shared/pmProgress.helpers.d.ts +73 -0
  312. package/dist/typescript/commonjs/features/pmProgress/shared/pmProgress.helpers.d.ts.map +1 -0
  313. package/dist/typescript/commonjs/features/pmProgress/shared/pmProgress.types.d.ts +193 -0
  314. package/dist/typescript/commonjs/features/pmProgress/shared/pmProgress.types.d.ts.map +1 -0
  315. package/dist/typescript/commonjs/features/voice/constants.d.ts +2 -12
  316. package/dist/typescript/commonjs/features/voice/constants.d.ts.map +1 -1
  317. package/dist/typescript/commonjs/features/voice/recording/components/VoiceRecord.d.ts.map +1 -1
  318. package/dist/typescript/commonjs/features/voice/recording/components/VoiceRecordButton.d.ts +3 -1
  319. package/dist/typescript/commonjs/features/voice/recording/components/VoiceRecordButton.d.ts.map +1 -1
  320. package/dist/typescript/commonjs/features/voice/recording/hooks/useVoiceRecorderAnimation.d.ts +1 -2
  321. package/dist/typescript/commonjs/features/voice/recording/hooks/useVoiceRecorderAnimation.d.ts.map +1 -1
  322. package/dist/typescript/commonjs/features/voice/recording/model/VoiceRecord.model.d.ts +1 -3
  323. package/dist/typescript/commonjs/features/voice/recording/model/VoiceRecord.model.d.ts.map +1 -1
  324. package/dist/typescript/commonjs/features/voice/types.d.ts +0 -4
  325. package/dist/typescript/commonjs/features/voice/types.d.ts.map +1 -1
  326. package/dist/typescript/commonjs/index.d.ts +1 -0
  327. package/dist/typescript/commonjs/index.d.ts.map +1 -1
  328. package/dist/typescript/commonjs/shared/icons/MenuIcon.d.ts +4 -0
  329. package/dist/typescript/commonjs/shared/icons/MenuIcon.d.ts.map +1 -0
  330. package/dist/typescript/commonjs/shared/icons/PentagonIcon.d.ts +4 -0
  331. package/dist/typescript/commonjs/shared/icons/PentagonIcon.d.ts.map +1 -0
  332. package/dist/typescript/commonjs/shared/icons/SketchArrowRight.d.ts +4 -0
  333. package/dist/typescript/commonjs/shared/icons/SketchArrowRight.d.ts.map +1 -0
  334. package/dist/typescript/commonjs/shared/icons/SliceDiamondIcon.d.ts +4 -0
  335. package/dist/typescript/commonjs/shared/icons/SliceDiamondIcon.d.ts.map +1 -0
  336. package/dist/typescript/commonjs/shared/icons/StarIcon.d.ts +4 -0
  337. package/dist/typescript/commonjs/shared/icons/StarIcon.d.ts.map +1 -0
  338. package/dist/typescript/commonjs/shared/icons/TimerIcon.d.ts +4 -0
  339. package/dist/typescript/commonjs/shared/icons/TimerIcon.d.ts.map +1 -0
  340. package/dist/typescript/commonjs/shared/translation/constants.d.ts +144 -0
  341. package/dist/typescript/commonjs/shared/translation/constants.d.ts.map +1 -1
  342. package/dist/typescript/commonjs/shared/translation/model.d.ts +48 -0
  343. package/dist/typescript/commonjs/shared/translation/model.d.ts.map +1 -1
  344. package/dist/typescript/module/features/chatbot/components/ChatInput/ChatInput.d.ts.map +1 -1
  345. package/dist/typescript/module/features/chatbot/components/ChatMessage/MessageContent.d.ts.map +1 -1
  346. package/dist/typescript/module/features/pmProgress/PmProgress.d.ts +9 -0
  347. package/dist/typescript/module/features/pmProgress/PmProgress.d.ts.map +1 -0
  348. package/dist/typescript/module/features/pmProgress/components/chart/chart.helpers.d.ts +4 -0
  349. package/dist/typescript/module/features/pmProgress/components/chart/chart.helpers.d.ts.map +1 -0
  350. package/dist/typescript/module/features/pmProgress/components/chart/chart.types.d.ts +36 -0
  351. package/dist/typescript/module/features/pmProgress/components/chart/chart.types.d.ts.map +1 -0
  352. package/dist/typescript/module/features/pmProgress/components/chart/components/PracticeProgressPieChart.d.ts +9 -0
  353. package/dist/typescript/module/features/pmProgress/components/chart/components/PracticeProgressPieChart.d.ts.map +1 -0
  354. package/dist/typescript/module/features/pmProgress/components/chart/components/SlicesClipPaths.d.ts +10 -0
  355. package/dist/typescript/module/features/pmProgress/components/chart/components/SlicesClipPaths.d.ts.map +1 -0
  356. package/dist/typescript/module/features/pmProgress/components/chart/components/SlicesPaths.d.ts +11 -0
  357. package/dist/typescript/module/features/pmProgress/components/chart/components/SlicesPaths.d.ts.map +1 -0
  358. package/dist/typescript/module/features/pmProgress/components/chart/components/layers/SliceArcPattern.d.ts +12 -0
  359. package/dist/typescript/module/features/pmProgress/components/chart/components/layers/SliceArcPattern.d.ts.map +1 -0
  360. package/dist/typescript/module/features/pmProgress/components/chart/components/layers/SliceBackgroundColor.d.ts +8 -0
  361. package/dist/typescript/module/features/pmProgress/components/chart/components/layers/SliceBackgroundColor.d.ts.map +1 -0
  362. package/dist/typescript/module/features/pmProgress/components/chart/components/layers/SliceFillColor.d.ts +14 -0
  363. package/dist/typescript/module/features/pmProgress/components/chart/components/layers/SliceFillColor.d.ts.map +1 -0
  364. package/dist/typescript/module/features/pmProgress/components/chart/model/ArcPatternGenerator.d.ts +12 -0
  365. package/dist/typescript/module/features/pmProgress/components/chart/model/ArcPatternGenerator.d.ts.map +1 -0
  366. package/dist/typescript/module/features/pmProgress/components/chart/model/PieChartManager.d.ts +14 -0
  367. package/dist/typescript/module/features/pmProgress/components/chart/model/PieChartManager.d.ts.map +1 -0
  368. package/dist/typescript/module/features/pmProgress/components/chart/model/SliceShapeGenerator.d.ts +17 -0
  369. package/dist/typescript/module/features/pmProgress/components/chart/model/SliceShapeGenerator.d.ts.map +1 -0
  370. package/dist/typescript/module/features/pmProgress/components/content/PmContent.d.ts +3 -0
  371. package/dist/typescript/module/features/pmProgress/components/content/PmContent.d.ts.map +1 -0
  372. package/dist/typescript/module/features/pmProgress/components/header/NextUp.d.ts +3 -0
  373. package/dist/typescript/module/features/pmProgress/components/header/NextUp.d.ts.map +1 -0
  374. package/dist/typescript/module/features/pmProgress/components/header/PmProgressHeader.d.ts +3 -0
  375. package/dist/typescript/module/features/pmProgress/components/header/PmProgressHeader.d.ts.map +1 -0
  376. package/dist/typescript/module/features/pmProgress/components/header/StartButton.d.ts +11 -0
  377. package/dist/typescript/module/features/pmProgress/components/header/StartButton.d.ts.map +1 -0
  378. package/dist/typescript/module/features/pmProgress/components/insights/PmInsights.d.ts +3 -0
  379. package/dist/typescript/module/features/pmProgress/components/insights/PmInsights.d.ts.map +1 -0
  380. package/dist/typescript/module/features/pmProgress/components/insights/PmTimeframeStats.d.ts +3 -0
  381. package/dist/typescript/module/features/pmProgress/components/insights/PmTimeframeStats.d.ts.map +1 -0
  382. package/dist/typescript/module/features/pmProgress/components/insights/StatsCard.d.ts +12 -0
  383. package/dist/typescript/module/features/pmProgress/components/insights/StatsCard.d.ts.map +1 -0
  384. package/dist/typescript/module/features/pmProgress/components/list/Fluency.d.ts +8 -0
  385. package/dist/typescript/module/features/pmProgress/components/list/Fluency.d.ts.map +1 -0
  386. package/dist/typescript/module/features/pmProgress/components/list/ListCard.d.ts +31 -0
  387. package/dist/typescript/module/features/pmProgress/components/list/ListCard.d.ts.map +1 -0
  388. package/dist/typescript/module/features/pmProgress/components/list/ListItem.d.ts +12 -0
  389. package/dist/typescript/module/features/pmProgress/components/list/ListItem.d.ts.map +1 -0
  390. package/dist/typescript/module/features/pmProgress/components/list/PmDomainList.d.ts +3 -0
  391. package/dist/typescript/module/features/pmProgress/components/list/PmDomainList.d.ts.map +1 -0
  392. package/dist/typescript/module/features/pmProgress/components/locked/PmStatusOverlay.d.ts +8 -0
  393. package/dist/typescript/module/features/pmProgress/components/locked/PmStatusOverlay.d.ts.map +1 -0
  394. package/dist/typescript/module/features/pmProgress/components/recs/PmTeacherRecs.d.ts +3 -0
  395. package/dist/typescript/module/features/pmProgress/components/recs/PmTeacherRecs.d.ts.map +1 -0
  396. package/dist/typescript/module/features/pmProgress/components/standard/StandardTag.d.ts +9 -0
  397. package/dist/typescript/module/features/pmProgress/components/standard/StandardTag.d.ts.map +1 -0
  398. package/dist/typescript/module/features/pmProgress/context/PmProgressContext.d.ts +15 -0
  399. package/dist/typescript/module/features/pmProgress/context/PmProgressContext.d.ts.map +1 -0
  400. package/dist/typescript/module/features/pmProgress/index.d.ts +7 -0
  401. package/dist/typescript/module/features/pmProgress/index.d.ts.map +1 -0
  402. package/dist/typescript/module/features/pmProgress/model/PmHighlightModel.d.ts +7 -0
  403. package/dist/typescript/module/features/pmProgress/model/PmHighlightModel.d.ts.map +1 -0
  404. package/dist/typescript/module/features/pmProgress/model/PmInsightsModel.d.ts +14 -0
  405. package/dist/typescript/module/features/pmProgress/model/PmInsightsModel.d.ts.map +1 -0
  406. package/dist/typescript/module/features/pmProgress/model/PmProgressApi.d.ts +17 -0
  407. package/dist/typescript/module/features/pmProgress/model/PmProgressApi.d.ts.map +1 -0
  408. package/dist/typescript/module/features/pmProgress/model/PmProgressModel.d.ts +23 -0
  409. package/dist/typescript/module/features/pmProgress/model/PmProgressModel.d.ts.map +1 -0
  410. package/dist/typescript/module/features/pmProgress/model/PmRecommendationsModel.d.ts +102 -0
  411. package/dist/typescript/module/features/pmProgress/model/PmRecommendationsModel.d.ts.map +1 -0
  412. package/dist/typescript/module/features/pmProgress/model/PmSolvingFlowModel.d.ts +22 -0
  413. package/dist/typescript/module/features/pmProgress/model/PmSolvingFlowModel.d.ts.map +1 -0
  414. package/dist/typescript/module/features/pmProgress/model/PmTreeModel.d.ts +25 -0
  415. package/dist/typescript/module/features/pmProgress/model/PmTreeModel.d.ts.map +1 -0
  416. package/dist/typescript/module/features/pmProgress/shared/TreeNormalizer.d.ts +17 -0
  417. package/dist/typescript/module/features/pmProgress/shared/TreeNormalizer.d.ts.map +1 -0
  418. package/dist/typescript/module/features/pmProgress/shared/pmProgress.constants.d.ts +49 -0
  419. package/dist/typescript/module/features/pmProgress/shared/pmProgress.constants.d.ts.map +1 -0
  420. package/dist/typescript/module/features/pmProgress/shared/pmProgress.helpers.d.ts +73 -0
  421. package/dist/typescript/module/features/pmProgress/shared/pmProgress.helpers.d.ts.map +1 -0
  422. package/dist/typescript/module/features/pmProgress/shared/pmProgress.types.d.ts +193 -0
  423. package/dist/typescript/module/features/pmProgress/shared/pmProgress.types.d.ts.map +1 -0
  424. package/dist/typescript/module/features/voice/constants.d.ts +2 -12
  425. package/dist/typescript/module/features/voice/constants.d.ts.map +1 -1
  426. package/dist/typescript/module/features/voice/recording/components/VoiceRecord.d.ts.map +1 -1
  427. package/dist/typescript/module/features/voice/recording/components/VoiceRecordButton.d.ts +3 -1
  428. package/dist/typescript/module/features/voice/recording/components/VoiceRecordButton.d.ts.map +1 -1
  429. package/dist/typescript/module/features/voice/recording/hooks/useVoiceRecorderAnimation.d.ts +1 -2
  430. package/dist/typescript/module/features/voice/recording/hooks/useVoiceRecorderAnimation.d.ts.map +1 -1
  431. package/dist/typescript/module/features/voice/recording/model/VoiceRecord.model.d.ts +1 -3
  432. package/dist/typescript/module/features/voice/recording/model/VoiceRecord.model.d.ts.map +1 -1
  433. package/dist/typescript/module/features/voice/types.d.ts +0 -4
  434. package/dist/typescript/module/features/voice/types.d.ts.map +1 -1
  435. package/dist/typescript/module/index.d.ts +1 -0
  436. package/dist/typescript/module/index.d.ts.map +1 -1
  437. package/dist/typescript/module/shared/icons/MenuIcon.d.ts +4 -0
  438. package/dist/typescript/module/shared/icons/MenuIcon.d.ts.map +1 -0
  439. package/dist/typescript/module/shared/icons/PentagonIcon.d.ts +4 -0
  440. package/dist/typescript/module/shared/icons/PentagonIcon.d.ts.map +1 -0
  441. package/dist/typescript/module/shared/icons/SketchArrowRight.d.ts +4 -0
  442. package/dist/typescript/module/shared/icons/SketchArrowRight.d.ts.map +1 -0
  443. package/dist/typescript/module/shared/icons/SliceDiamondIcon.d.ts +4 -0
  444. package/dist/typescript/module/shared/icons/SliceDiamondIcon.d.ts.map +1 -0
  445. package/dist/typescript/module/shared/icons/StarIcon.d.ts +4 -0
  446. package/dist/typescript/module/shared/icons/StarIcon.d.ts.map +1 -0
  447. package/dist/typescript/module/shared/icons/TimerIcon.d.ts +4 -0
  448. package/dist/typescript/module/shared/icons/TimerIcon.d.ts.map +1 -0
  449. package/dist/typescript/module/shared/translation/constants.d.ts +144 -0
  450. package/dist/typescript/module/shared/translation/constants.d.ts.map +1 -1
  451. package/dist/typescript/module/shared/translation/model.d.ts +48 -0
  452. package/dist/typescript/module/shared/translation/model.d.ts.map +1 -1
  453. package/package.json +21 -13
  454. package/src/features/chatbot/components/ChatInput/ChatInput.tsx +2 -1
  455. package/src/features/chatbot/components/ChatMessage/MessageContent.tsx +2 -1
  456. package/src/features/endOfAssignment/components/AssessmentScoreCard/AssessmentScoreCard.tsx +2 -2
  457. package/src/features/pmProgress/PmProgress.tsx +29 -0
  458. package/src/features/pmProgress/__tests__/.keep +0 -0
  459. package/src/features/pmProgress/components/chart/chart.helpers.ts +16 -0
  460. package/src/features/pmProgress/components/chart/chart.types.ts +37 -0
  461. package/src/features/pmProgress/components/chart/components/PracticeProgressPieChart.tsx +32 -0
  462. package/src/features/pmProgress/components/chart/components/SlicesClipPaths.tsx +22 -0
  463. package/src/features/pmProgress/components/chart/components/SlicesPaths.tsx +90 -0
  464. package/src/features/pmProgress/components/chart/components/layers/SliceArcPattern.tsx +44 -0
  465. package/src/features/pmProgress/components/chart/components/layers/SliceBackgroundColor.tsx +11 -0
  466. package/src/features/pmProgress/components/chart/components/layers/SliceFillColor.tsx +60 -0
  467. package/src/features/pmProgress/components/chart/model/ArcPatternGenerator.ts +48 -0
  468. package/src/features/pmProgress/components/chart/model/PieChartManager.ts +17 -0
  469. package/src/features/pmProgress/components/chart/model/SliceShapeGenerator.ts +90 -0
  470. package/src/features/pmProgress/components/content/PmContent.tsx +42 -0
  471. package/src/features/pmProgress/components/header/NextUp.tsx +109 -0
  472. package/src/features/pmProgress/components/header/PmProgressHeader.tsx +135 -0
  473. package/src/features/pmProgress/components/header/StartButton.tsx +160 -0
  474. package/src/features/pmProgress/components/insights/PmInsights.tsx +66 -0
  475. package/src/features/pmProgress/components/insights/PmTimeframeStats.tsx +94 -0
  476. package/src/features/pmProgress/components/insights/StatsCard.tsx +54 -0
  477. package/src/features/pmProgress/components/list/Fluency.tsx +72 -0
  478. package/src/features/pmProgress/components/list/ListCard.tsx +231 -0
  479. package/src/features/pmProgress/components/list/ListItem.tsx +167 -0
  480. package/src/features/pmProgress/components/list/PmDomainList.tsx +77 -0
  481. package/src/features/pmProgress/components/locked/PmStatusOverlay.tsx +101 -0
  482. package/src/features/pmProgress/components/recs/PmTeacherRecs.tsx +129 -0
  483. package/src/features/pmProgress/components/standard/StandardTag.tsx +181 -0
  484. package/src/features/pmProgress/context/PmProgressContext.tsx +26 -0
  485. package/src/features/pmProgress/index.ts +6 -0
  486. package/src/features/pmProgress/model/PmHighlightModel.ts +11 -0
  487. package/src/features/pmProgress/model/PmInsightsModel.ts +23 -0
  488. package/src/features/pmProgress/model/PmProgressApi.ts +34 -0
  489. package/src/features/pmProgress/model/PmProgressModel.ts +48 -0
  490. package/src/features/pmProgress/model/PmRecommendationsModel.ts +47 -0
  491. package/src/features/pmProgress/model/PmSolvingFlowModel.ts +140 -0
  492. package/src/features/pmProgress/model/PmTreeModel.ts +171 -0
  493. package/src/features/pmProgress/shared/TreeNormalizer.ts +64 -0
  494. package/src/features/pmProgress/shared/pmProgress.constants.ts +100 -0
  495. package/src/features/pmProgress/shared/pmProgress.helpers.ts +307 -0
  496. package/src/features/pmProgress/shared/pmProgress.types.ts +217 -0
  497. package/src/features/voice/constants.ts +2 -14
  498. package/src/features/voice/recording/components/VoiceRecord.tsx +5 -28
  499. package/src/features/voice/recording/components/VoiceRecordButton.tsx +30 -114
  500. package/src/features/voice/recording/components/VoiceRecordDeleteButton.tsx +2 -2
  501. package/src/features/voice/recording/hooks/useVoiceRecorderAnimation.ts +4 -8
  502. package/src/features/voice/recording/model/VoiceRecord.model.ts +0 -7
  503. package/src/features/voice/types.ts +0 -5
  504. package/src/index.ts +1 -0
  505. package/src/shared/icons/MenuIcon.tsx +15 -0
  506. package/src/shared/icons/PentagonIcon.tsx +14 -0
  507. package/src/shared/icons/SketchArrowRight.tsx +18 -0
  508. package/src/shared/icons/SliceDiamondIcon.tsx +14 -0
  509. package/src/shared/icons/StarIcon.tsx +17 -0
  510. package/src/shared/icons/TimerIcon.tsx +21 -0
  511. package/src/shared/translation/localization/ca.json +24 -0
  512. package/src/shared/translation/localization/de.json +24 -0
  513. package/src/shared/translation/localization/en.json +24 -0
  514. package/src/shared/translation/localization/gb.json +24 -0
  515. package/src/shared/translation/localization/sct.json +24 -0
  516. package/src/shared/translation/localization/sw.json +24 -0
@@ -0,0 +1,85 @@
1
+ "use strict";
2
+
3
+ import React from 'react';
4
+ import { Platform, StyleSheet } from 'react-native';
5
+ import { G, Path } from 'react-native-svg';
6
+ import { useUnit } from 'effector-react';
7
+ import { SliceBackgroundColor } from "./layers/SliceBackgroundColor.js";
8
+ import { SliceFillColor } from "./layers/SliceFillColor.js";
9
+ import { SliceArcPattern } from "./layers/SliceArcPattern.js";
10
+ import { usePmProgress } from "../../../context/PmProgressContext.js";
11
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
12
+ export const SlicesPaths = ({
13
+ slices,
14
+ pieChartManager,
15
+ config
16
+ }) => {
17
+ const {
18
+ model
19
+ } = usePmProgress();
20
+ const [hoveredId, expandedId, domains] = useUnit([model.highlight.$hoveredId, model.highlight.$expandedId, model.tree.$domains]);
21
+ const highlightedId = hoveredId ?? expandedId;
22
+ const highlightedIndex = highlightedId ? domains.findIndex(({
23
+ domainId
24
+ }) => domainId === highlightedId) : null;
25
+ return /*#__PURE__*/_jsx(_Fragment, {
26
+ children: slices.map(slice => {
27
+ const id = `${slice.index}`;
28
+ const shapeSvg = pieChartManager.shape.generateSlicePath(slice);
29
+ const fillSvg = pieChartManager.shape.generateFillPath(slice);
30
+ const fillBorderSvg = pieChartManager.shape.generateFillBorderPath(slice);
31
+ const isHighlighted = highlightedIndex === slice.index;
32
+ const translateY = isHighlighted ? -config.pressOffset : 0;
33
+ const borderWidth = isHighlighted ? config.borderWidth : 0;
34
+ const domainId = domains[slice.index]?.domainId;
35
+ return /*#__PURE__*/_jsxs(G, {
36
+ style: styles.container,
37
+ onPress: () => domainId && model.highlight.expand(domainId),
38
+ onMouseEnter: () => domainId && model.highlight.hover(domainId),
39
+ onMouseLeave: () => model.highlight.hover(null),
40
+ children: [/*#__PURE__*/_jsx(Path, {
41
+ d: shapeSvg,
42
+ fill: "transparent"
43
+ }), /*#__PURE__*/_jsxs(G, {
44
+ style: styles.visual,
45
+ transform: `translate(0, ${translateY})`,
46
+ children: [/*#__PURE__*/_jsx(SliceBackgroundColor, {
47
+ path: shapeSvg,
48
+ color: isHighlighted ? config.colors.highlightedBackground : slice.backgroundColor
49
+ }), /*#__PURE__*/_jsx(SliceFillColor, {
50
+ clipPathId: id,
51
+ shapeSvg: shapeSvg,
52
+ fillSvg: fillSvg,
53
+ fillBorderSvg: fillBorderSvg,
54
+ color: slice.fillColor,
55
+ percent: slice.fillPercent,
56
+ borderColor: isHighlighted ? slice.borderColor : undefined,
57
+ borderWidth: borderWidth
58
+ }), /*#__PURE__*/_jsx(SliceArcPattern, {
59
+ clipPathId: id,
60
+ slice: slice,
61
+ config: config,
62
+ pieChartManager: pieChartManager
63
+ })]
64
+ })]
65
+ }, id);
66
+ })
67
+ });
68
+ };
69
+ const styles = StyleSheet.create({
70
+ container: {
71
+ ...Platform.select({
72
+ web: {
73
+ cursor: 'pointer'
74
+ }
75
+ })
76
+ },
77
+ visual: {
78
+ ...Platform.select({
79
+ web: {
80
+ transition: 'transform 0.1s ease-in-out'
81
+ }
82
+ })
83
+ }
84
+ });
85
+ //# sourceMappingURL=SlicesPaths.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","Platform","StyleSheet","G","Path","useUnit","SliceBackgroundColor","SliceFillColor","SliceArcPattern","usePmProgress","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","SlicesPaths","slices","pieChartManager","config","model","hoveredId","expandedId","domains","highlight","$hoveredId","$expandedId","tree","$domains","highlightedId","highlightedIndex","findIndex","domainId","children","map","slice","id","index","shapeSvg","shape","generateSlicePath","fillSvg","generateFillPath","fillBorderSvg","generateFillBorderPath","isHighlighted","translateY","pressOffset","borderWidth","style","styles","container","onPress","expand","onMouseEnter","hover","onMouseLeave","d","fill","visual","transform","path","color","colors","highlightedBackground","backgroundColor","clipPathId","fillColor","percent","fillPercent","borderColor","undefined","create","select","web","cursor","transition"],"sourceRoot":"../../../../../../../src","sources":["features/pmProgress/components/chart/components/SlicesPaths.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,QAAQ,EAAEC,UAAU,QAAmB,cAAc;AAC9D,SAASC,CAAC,EAAEC,IAAI,QAAQ,kBAAkB;AAC1C,SAASC,OAAO,QAAQ,gBAAgB;AACxC,SAASC,oBAAoB,QAAQ,kCAA+B;AACpE,SAASC,cAAc,QAAQ,4BAAyB;AACxD,SAASC,eAAe,QAAQ,6BAA0B;AAC1D,SAASC,aAAa,QAAQ,uCAAoC;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA,EAAAC,QAAA,IAAAC,SAAA;AAUlE,OAAO,MAAMC,WAAW,GAAGA,CAAC;EAAEC,MAAM;EAAEC,eAAe;EAAEC;AAAyB,CAAC,KAAK;EACpF,MAAM;IAAEC;EAAM,CAAC,GAAGX,aAAa,CAAC,CAAC;EACjC,MAAM,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AS,EAAE;IACT,GAAGlD,QAAQ,CAACwE,MAAM,CAAC;MAAEC,GAAG,EAAE;QAAEC,MAAM,EAAE;MAAU;IAAe,CAAC;EAChE,CAAC;EACDhB,MAAM,EAAE;IACN,GAAG1D,QAAQ,CAACwE,MAAM,CAAC;MAAEC,GAAG,EAAE;QAAEE,UAAU,EAAE;MAA6B;IAAe,CAAC;EACvF;AACF,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+
3
+ import React from 'react';
4
+ import { G, Path } from 'react-native-svg';
5
+ import { getSliceClipId } from "../../chart.helpers.js";
6
+ import { jsx as _jsx } from "react/jsx-runtime";
7
+ export const SliceArcPattern = ({
8
+ clipPathId,
9
+ slice,
10
+ pieChartManager,
11
+ config
12
+ }) => {
13
+ const patternSizes = pieChartManager.pattern.getPatternTrackSizes();
14
+ return /*#__PURE__*/_jsx(G, {
15
+ clipPath: `url(#${getSliceClipId(clipPathId)})`,
16
+ children: patternSizes.map((radius, rowIndex) => {
17
+ const arcPath = pieChartManager.pattern.generateArcPath(slice, radius);
18
+ const dashWidth = pieChartManager.pattern.getDashWidthForRadius(radius);
19
+ const dashOffset = pieChartManager.pattern.getDashOffset(rowIndex, radius);
20
+ return /*#__PURE__*/_jsx(Path, {
21
+ d: arcPath,
22
+ fill: "none",
23
+ stroke: config.outerArc.color,
24
+ strokeWidth: config.outerArc.strokeWidth,
25
+ strokeDasharray: [dashWidth, dashWidth],
26
+ strokeDashoffset: dashOffset,
27
+ strokeLinecap: "butt"
28
+ }, rowIndex);
29
+ })
30
+ });
31
+ };
32
+ //# sourceMappingURL=SliceArcPattern.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","G","Path","getSliceClipId","jsx","_jsx","SliceArcPattern","clipPathId","slice","pieChartManager","config","patternSizes","pattern","getPatternTrackSizes","clipPath","children","map","radius","rowIndex","arcPath","generateArcPath","dashWidth","getDashWidthForRadius","dashOffset","getDashOffset","d","fill","stroke","outerArc","color","strokeWidth","strokeDasharray","strokeDashoffset","strokeLinecap"],"sourceRoot":"../../../../../../../../src","sources":["features/pmProgress/components/chart/components/layers/SliceArcPattern.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,CAAC,EAAEC,IAAI,QAAQ,kBAAkB;AAC1C,SAASC,cAAc,QAAQ,wBAAqB;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAWpD,OAAO,MAAMC,eAAe,GAAGA,CAAC;EAC9BC,UAAU;EACVC,KAAK;EACLC,eAAe;EACfC;AACoB,CAAC,KAAK;EAC1B,MAAMC,YAAY,GAAGF,eAAe,CAACG,OAAO,CAACC,oBAAoB,CAAC,CAAC;EAEnE,oBACER,IAAA,CAACJ,CAAC;IAACa,QAAQ,EAAE,QAAQX,cAAc,CAACI,UAAU,CAAC,GAAI;IAAAQ,QAAA,EAChDJ,YAAY,CAACK,GAAG,CAAC,CAACC,MAAM,EAAEC,QAAQ,KAAK;MACtC,MAAMC,OAAO,GAAGV,eAAe,CAACG,OAAO,CAACQ,eAAe,CAACZ,KAAK,EAAES,MAAM,CAAC;MACtE,MAAMI,SAAS,GAAGZ,eAAe,CAACG,OAAO,CAACU,qBAAqB,CAACL,MAAM,CAAC;MACvE,MAAMM,UAAU,GAAGd,eAAe,CAACG,OAAO,CAACY,aAAa,CAACN,QAAQ,EAAED,MAAM,CAAC;MAE1E,oBACEZ,IAAA,CAACH,IAAI;QAEHuB,CAAC,EAAEN,OAAQ;QACXO,IAAI,EAAC,MAAM;QACXC,MAAM,EAAEjB,MAAM,CAACkB,QAAQ,CAACC,KAAM;QAC9BC,WAAW,EAAEpB,MAAM,CAACkB,QAAQ,CAACE,WAAY;QACzCC,eAAe,EAAE,CAACV,SAAS,EAAEA,SAAS,CAAE;QACxCW,gBAAgB,EAAET,UAAW;QAC7BU,aAAa,EAAC;MAAM,GAPff,QAQN,CAAC;IAEN,CAAC;EAAC,CACD,CAAC;AAER,CAAC","ignoreList":[]}
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+
3
+ import React from 'react';
4
+ import { Path } from 'react-native-svg';
5
+ import { jsx as _jsx } from "react/jsx-runtime";
6
+ export const SliceBackgroundColor = ({
7
+ path,
8
+ color
9
+ }) => {
10
+ return /*#__PURE__*/_jsx(Path, {
11
+ d: path,
12
+ fill: color
13
+ });
14
+ };
15
+ //# sourceMappingURL=SliceBackgroundColor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","Path","jsx","_jsx","SliceBackgroundColor","path","color","d","fill"],"sourceRoot":"../../../../../../../../src","sources":["features/pmProgress/components/chart/components/layers/SliceBackgroundColor.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,QAAQ,kBAAkB;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAOvC,OAAO,MAAMC,oBAAoB,GAAGA,CAAC;EAAEC,IAAI;EAAEC;AAA4B,CAAC,KAAK;EAC7E,oBAAOH,IAAA,CAACF,IAAI;IAACM,CAAC,EAAEF,IAAK;IAACG,IAAI,EAAEF;EAAM,CAAE,CAAC;AACvC,CAAC","ignoreList":[]}
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+
3
+ import React from 'react';
4
+ import { ClipPath, Defs, G, Path } from 'react-native-svg';
5
+ import { getSliceClipId } from "../../chart.helpers.js";
6
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
7
+ export const SliceFillColor = ({
8
+ clipPathId,
9
+ shapeSvg,
10
+ fillSvg,
11
+ fillBorderSvg,
12
+ color,
13
+ percent,
14
+ borderColor,
15
+ borderWidth = 0
16
+ }) => {
17
+ const isFullyFilled = percent >= 100;
18
+ const isPartiallyFilled = percent > 0;
19
+ const hasBorder = borderColor != null && borderWidth != null && borderWidth > 0;
20
+ if (!isPartiallyFilled && !isFullyFilled) return null;
21
+ const sliceClipId = getSliceClipId(clipPathId);
22
+ const borderClipId = `${sliceClipId}-border`;
23
+ const fillPath = isFullyFilled ? shapeSvg : fillSvg;
24
+ return /*#__PURE__*/_jsxs(_Fragment, {
25
+ children: [hasBorder && /*#__PURE__*/_jsx(Defs, {
26
+ children: /*#__PURE__*/_jsx(ClipPath, {
27
+ id: borderClipId,
28
+ children: /*#__PURE__*/_jsx(Path, {
29
+ d: fillBorderSvg
30
+ })
31
+ })
32
+ }), /*#__PURE__*/_jsxs(G, {
33
+ clipPath: `url(#${sliceClipId})`,
34
+ children: [/*#__PURE__*/_jsx(Path, {
35
+ d: fillPath,
36
+ fill: color
37
+ }), hasBorder && /*#__PURE__*/_jsx(G, {
38
+ clipPath: `url(#${borderClipId})`,
39
+ children: /*#__PURE__*/_jsx(Path, {
40
+ d: fillBorderSvg,
41
+ fill: "none",
42
+ stroke: borderColor,
43
+ strokeWidth: borderWidth * 2
44
+ })
45
+ })]
46
+ })]
47
+ });
48
+ };
49
+ //# sourceMappingURL=SliceFillColor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","ClipPath","Defs","G","Path","getSliceClipId","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","SliceFillColor","clipPathId","shapeSvg","fillSvg","fillBorderSvg","color","percent","borderColor","borderWidth","isFullyFilled","isPartiallyFilled","hasBorder","sliceClipId","borderClipId","fillPath","children","id","d","clipPath","fill","stroke","strokeWidth"],"sourceRoot":"../../../../../../../../src","sources":["features/pmProgress/components/chart/components/layers/SliceFillColor.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,QAAQ,EAAEC,IAAI,EAAEC,CAAC,EAAEC,IAAI,QAAQ,kBAAkB;AAC1D,SAASC,cAAc,QAAQ,wBAAqB;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA,EAAAC,QAAA,IAAAC,SAAA;AAapD,OAAO,MAAMC,cAAc,GAAGA,CAAC;EAC7BC,UAAU;EACVC,QAAQ;EACRC,OAAO;EACPC,aAAa;EACbC,KAAK;EACLC,O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+ "use strict";
2
+
3
+ export class OuterArcPatternGenerator {
4
+ constructor(config) {
5
+ this.config = config;
6
+ }
7
+ generateArcPath(slice, radius) {
8
+ const gapAngle = this.config.gapBetweenSlices / (2 * radius);
9
+ const startAngle = slice.startAngle + gapAngle;
10
+ const endAngle = slice.endAngle - gapAngle;
11
+ const startPoint = this.polarToCartesian(radius, startAngle);
12
+ const endPoint = this.polarToCartesian(radius, endAngle);
13
+ const largeArcFlag = endAngle - startAngle > Math.PI ? 1 : 0;
14
+ return `M ${startPoint.x} ${startPoint.y} A ${radius} ${radius} 0 ${largeArcFlag} 1 ${endPoint.x} ${endPoint.y}`;
15
+ }
16
+
17
+ /** Returns the sizes of the two rings where the checkerboard dashes are drawn. */
18
+ getPatternTrackSizes() {
19
+ const {
20
+ outerRadius,
21
+ outerArc
22
+ } = this.config;
23
+ return [outerRadius - outerArc.strokeWidth / 2, outerRadius - outerArc.strokeWidth * 1.5];
24
+ }
25
+ getDashWidthForRadius(radius) {
26
+ return this.config.outerArc.dashWidth * (radius / this.config.outerRadius);
27
+ }
28
+ getDashOffset(rowIndex, radius) {
29
+ const dashAngle = this.config.outerArc.dashWidth / this.config.outerRadius;
30
+ const dashWidthAtRadius = dashAngle * radius;
31
+ const baseOffset = dashWidthAtRadius / 2;
32
+ if (rowIndex === 1) {
33
+ return baseOffset - dashWidthAtRadius;
34
+ }
35
+ return baseOffset;
36
+ }
37
+ polarToCartesian(radius, angleInRadians) {
38
+ return {
39
+ x: radius * Math.sin(angleInRadians),
40
+ y: -radius * Math.cos(angleInRadians)
41
+ };
42
+ }
43
+ }
44
+ //# sourceMappingURL=ArcPatternGenerator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["OuterArcPatternGenerator","constructor","config","generateArcPath","slice","radius","gapAngle","gapBetweenSlices","startAngle","endAngle","startPoint","polarToCartesian","endPoint","largeArcFlag","Math","PI","x","y","getPatternTrackSizes","outerRadius","outerArc","strokeWidth","getDashWidthForRadius","dashWidth","getDashOffset","rowIndex","dashAngle","dashWidthAtRadius","baseOffset","angleInRadians","sin","cos"],"sourceRoot":"../../../../../../../src","sources":["features/pmProgress/components/chart/model/ArcPatternGenerator.ts"],"mappings":";;AAEA,OAAO,MAAMA,wBAAwB,CAAC;EACpCC,WAAWA,CAAkBC,MAA6B,EAAE;IAAA,KAA/BA,MAA6B,GAA7BA,MAA6B;EAAG;EAEtDC,eAAeA,CAACC,KAAiB,EAAEC,MAAc,EAAE;IACxD,MAAMC,QAAQ,GAAG,IAAI,CAACJ,MAAM,CAACK,gBAAgB,IAAI,CAAC,GAAGF,MAAM,CAAC;IAC5D,MAAMG,UAAU,GAAGJ,KAAK,CAACI,UAAU,GAAGF,QAAQ;IAC9C,MAAMG,QAAQ,GAAGL,KAAK,CAACK,QAAQ,GAAGH,QAAQ;IAE1C,MAAMI,UAAU,GAAG,IAAI,CAACC,gBAAgB,CAACN,MAAM,EAAEG,UAAU,CAAC;IAC5D,MAAMI,QAAQ,GAAG,IAAI,CAACD,gBAAgB,CAACN,MAAM,EAAEI,QAAQ,CAAC;IACxD,MAAMI,YAAY,GAAGJ,QAAQ,GAAGD,UAAU,GAAGM,IAAI,CAACC,EAAE,GAAG,CAAC,GAAG,CAAC;IAE5D,OAAO,KAAKL,UAAU,CAACM,CAAC,IAAIN,UAAU,CAACO,CAAC,MAAMZ,MAAM,IAAIA,MAAM,MAAMQ,YAAY,MAAMD,QAAQ,CAACI,CAAC,IAAIJ,QAAQ,CAACK,CAAC,EAAE;EAClH;;EAEA;EACOC,oBAAoBA,CAAA,EAAqB;IAC9C,MAAM;MAAEC,WAAW;MAAEC;IAAS,CAAC,GAAG,IAAI,CAAClB,MAAM;IAC7C,OAAO,CACLiB,WAAW,GAAGC,QAAQ,CAACC,WAAW,GAAG,CAAC,EACtCF,WAAW,GAAGC,QAAQ,CAACC,WAAW,GAAG,GAAG,CACzC;EACH;EAEOC,qBAAqBA,CAACjB,MAAc,EAAE;IAC3C,OAAO,IAAI,CAACH,MAAM,CAACkB,QAAQ,CAACG,SAAS,IAAIlB,MAAM,GAAG,IAAI,CAACH,MAAM,CAACiB,WAAW,CAAC;EAC5E;EAEOK,aAAaA,CAACC,QAAgB,EAAEpB,MAAc,EAAE;IACrD,MAAMqB,SAAS,GAAG,IAAI,CAACxB,MAAM,CAACkB,QAAQ,CAACG,SAAS,GAAG,IAAI,CAACrB,MAAM,CAACiB,WAAW;IAC1E,MAAMQ,iBAAiB,GAAGD,SAAS,GAAGrB,MAAM;IAC5C,MAAMuB,UAAU,GAAGD,iBAAiB,GAAG,CAAC;IAExC,IAAIF,QAAQ,KAAK,CAAC,EAAE;MAClB,OAAOG,UAAU,GAAGD,iBAAiB;IACvC;IACA,OAAOC,UAAU;EACnB;EAEQjB,gBAAgBA,CAACN,MAAc,EAAEwB,cAAsB,EAAE;IAC/D,OAAO;MACLb,CAAC,EAAEX,MAAM,GAAGS,IAAI,CAACgB,GAAG,CAACD,cAAc,CAAC;MACpCZ,CAAC,EAAE,CAACZ,MAAM,GAAGS,IAAI,CAACiB,GAAG,CAACF,cAAc;IACtC,CAAC;EACH;AACF","ignoreList":[]}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+
3
+ import { SliceShapeGenerator } from "./SliceShapeGenerator.js";
4
+ import { OuterArcPatternGenerator } from "./ArcPatternGenerator.js";
5
+ export class PieChartManager {
6
+ constructor(config) {
7
+ this.config = config;
8
+ this.shape = new SliceShapeGenerator(config);
9
+ this.pattern = new OuterArcPatternGenerator(config);
10
+ }
11
+ getCenter() {
12
+ return {
13
+ x: this.config.size / 2,
14
+ y: this.config.size / 2
15
+ };
16
+ }
17
+ }
18
+ //# sourceMappingURL=PieChartManager.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["SliceShapeGenerator","OuterArcPatternGenerator","PieChartManager","constructor","config","shape","pattern","getCenter","x","size","y"],"sourceRoot":"../../../../../../../src","sources":["features/pmProgress/components/chart/model/PieChartManager.ts"],"mappings":";;AAAA,SAASA,mBAAmB,QAAQ,0BAAuB;AAC3D,SAASC,wBAAwB,QAAQ,0BAAuB;AAGhE,OAAO,MAAMC,eAAe,CAAC;EAI3BC,WAAWA,CAAiBC,MAA6B,EAAE;IAAA,KAA/BA,MAA6B,GAA7BA,MAA6B;IACvD,IAAI,CAACC,KAAK,GAAG,IAAIL,mBAAmB,CAACI,MAAM,CAAC;IAC5C,IAAI,CAACE,OAAO,GAAG,IAAIL,wBAAwB,CAACG,MAAM,CAAC;EACrD;EAEOG,SAASA,CAAA,EAAG;IACjB,OAAO;MAAEC,CAAC,EAAE,IAAI,CAACJ,MAAM,CAACK,IAAI,GAAG,CAAC;MAAEC,CAAC,EAAE,IAAI,CAACN,MAAM,CAACK,IAAI,GAAG;IAAE,CAAC;EAC7D;AACF","ignoreList":[]}
@@ -0,0 +1,74 @@
1
+ "use strict";
2
+
3
+ import { arc, pie } from 'd3-shape';
4
+ export class SliceShapeGenerator {
5
+ innerRadius = 0;
6
+ d3Pie = pie().value(({
7
+ value
8
+ }) => value).sort(null);
9
+ constructor(config) {
10
+ this.config = config;
11
+ }
12
+ generateSlices(data) {
13
+ this.innerRadius = this.getInnerRadius(data.length);
14
+ return this.d3Pie(data).map((datum, index) => ({
15
+ index,
16
+ startAngle: datum.startAngle,
17
+ endAngle: datum.endAngle,
18
+ fillPercent: datum.data.fillPercent ?? 0,
19
+ backgroundColor: datum.data.backgroundColor ?? this.config.colors.background,
20
+ fillColor: datum.data.fillColor,
21
+ borderColor: datum.data.borderColor,
22
+ data: datum.data
23
+ }));
24
+ }
25
+ generateSlicePath(slice) {
26
+ return this.buildArc(slice, this.config.outerRadius, this.getCornerRadius(100));
27
+ }
28
+ generateFillPath(slice) {
29
+ const fillRadius = this.getFillRadius(slice);
30
+ const cornerRadius = this.getCornerRadius(slice.fillPercent);
31
+
32
+ // Build with innerRadius 0 so d3 only rounds the outer corners.
33
+ // The slice clip path will cut the inner edge to the correct boundary.
34
+ return arc().outerRadius(fillRadius).innerRadius(0).cornerRadius(cornerRadius).padAngle(this.padAngle).padRadius(this.config.outerRadius)({
35
+ startAngle: slice.startAngle,
36
+ endAngle: slice.endAngle,
37
+ innerRadius: 0,
38
+ outerRadius: fillRadius
39
+ });
40
+ }
41
+ generateFillBorderPath(slice) {
42
+ const fillRadius = this.getFillRadius(slice);
43
+ const cornerRadius = this.getCornerRadius(slice.fillPercent);
44
+ return this.buildArc(slice, fillRadius, cornerRadius);
45
+ }
46
+ getFillRadius(slice) {
47
+ return this.innerRadius + (this.config.outerRadius - this.innerRadius) * (slice.fillPercent / 100);
48
+ }
49
+ getInnerRadius(sliceCount) {
50
+ const {
51
+ innerRadius
52
+ } = this.config;
53
+ return typeof innerRadius === 'function' ? innerRadius(sliceCount) : innerRadius;
54
+ }
55
+ getCornerRadius(fillPercent) {
56
+ const {
57
+ cornerRadius
58
+ } = this.config;
59
+ return typeof cornerRadius === 'function' ? cornerRadius(fillPercent) : cornerRadius;
60
+ }
61
+ get padAngle() {
62
+ return this.config.gapBetweenSlices / this.config.outerRadius;
63
+ }
64
+ buildArc(slice, outerRadius, cornerRadius) {
65
+ const innerRadius = this.innerRadius;
66
+ return arc().outerRadius(outerRadius).innerRadius(innerRadius).cornerRadius(cornerRadius).padAngle(this.padAngle).padRadius(this.config.outerRadius)({
67
+ startAngle: slice.startAngle,
68
+ endAngle: slice.endAngle,
69
+ innerRadius,
70
+ outerRadius
71
+ });
72
+ }
73
+ }
74
+ //# sourceMappingURL=SliceShapeGenerator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["arc","pie","SliceShapeGenerator","innerRadius","d3Pie","value","sort","constructor","config","generateSlices","data","getInnerRadius","length","map","datum","index","startAngle","endAngle","fillPercent","backgroundColor","colors","background","fillColor","borderColor","generateSlicePath","slice","buildArc","outerRadius","getCornerRadius","generateFillPath","fillRadius","getFillRadius","cornerRadius","padAngle","padRadius","generateFillBorderPath","sliceCount","gapBetweenSlices"],"sourceRoot":"../../../../../../../src","sources":["features/pmProgress/components/chart/model/SliceShapeG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AY,KAAK,UAAU,GAAGA,YAAY,CAACd,WAAW,CAAC,GAAGc,YAAY;EACtF;EAEA,IAAYC,QAAQA,CAAA,EAAW;IAC7B,OAAO,IAAI,CAACzB,MAAM,CAAC6B,gBAAgB,GAAG,IAAI,CAAC7B,MAAM,CAACmB,WAAW;EAC/D;EAEQD,QAAQA,CAACD,KAAiB,EAAEE,WAAmB,EAAEK,YAAoB,EAAU;IACrF,MAAM7B,WAAW,GAAG,IAAI,CAACA,WAAW;IAEpC,OAAOH,GAAG,CAAC,CAAC,CACT2B,WAAW,CAACA,WAAW,CAAC,CACxBxB,WAAW,CAACA,WAAW,CAAC,CACxB6B,YAAY,CAACA,YAAY,CAAC,CAC1BC,QAAQ,CAAC,IAAI,CAACA,QAAQ,CAAC,CACvBC,SAAS,CAAC,IAAI,CAAC1B,MAAM,CAACmB,WAAW,CAAC,CAAC;MACpCX,UAAU,EAAES,KAAK,CAACT,UAAU;MAC5BC,QAAQ,EAAEQ,KAAK,CAACR,QAAQ;MACxBd,WAAW;MACXwB;IACF,CAAC,CAAC;EACJ;AACF","ignoreList":[]}
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+
3
+ import React from 'react';
4
+ import { useUnit } from 'effector-react';
5
+ import { StyleSheet, View } from 'react-native';
6
+ import { SPACING } from '@magmamath/react-native-ui';
7
+ import { PmTeacherRecs } from "../recs/PmTeacherRecs.js";
8
+ import { PmDomainList } from "../list/PmDomainList.js";
9
+ import { PmInsights } from "../insights/PmInsights.js";
10
+ import { PmStatusOverlay } from "../locked/PmStatusOverlay.js";
11
+ import { usePmProgress } from "../../context/PmProgressContext.js";
12
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
+ export const PmProgressContent = () => {
14
+ const {
15
+ model
16
+ } = usePmProgress();
17
+ const status = useUnit(model.tree.$status);
18
+ if (status) {
19
+ return /*#__PURE__*/_jsx(PmStatusOverlay, {
20
+ status: status
21
+ });
22
+ }
23
+ return /*#__PURE__*/_jsxs(View, {
24
+ style: styles.content,
25
+ children: [/*#__PURE__*/_jsxs(View, {
26
+ style: styles.column,
27
+ children: [/*#__PURE__*/_jsx(PmTeacherRecs, {}), /*#__PURE__*/_jsx(PmDomainList, {})]
28
+ }), /*#__PURE__*/_jsx(PmInsights, {})]
29
+ });
30
+ };
31
+ const styles = StyleSheet.create({
32
+ content: {
33
+ flex: 1,
34
+ flexDirection: 'row'
35
+ },
36
+ column: {
37
+ flex: 1,
38
+ marginRight: SPACING[500],
39
+ gap: SPACING[200]
40
+ }
41
+ });
42
+ //# sourceMappingURL=PmContent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","useUnit","StyleSheet","View","SPACING","PmTeacherRecs","PmDomainList","PmInsights","PmStatusOverlay","usePmProgress","jsx","_jsx","jsxs","_jsxs","PmProgressContent","model","status","tree","$status","style","styles","content","children","column","create","flex","flexDirection","marginRight","gap"],"sourceRoot":"../../../../../../src","sources":["features/pmProgress/components/content/PmContent.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,OAAO,QAAQ,gBAAgB;AACxC,SAASC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAC/C,SAASC,OAAO,QAAQ,4BAA4B;AACpD,SAASC,aAAa,QAAQ,0BAAuB;AACrD,SAASC,YAAY,QAAQ,yBAAsB;AACnD,SAASC,UAAU,QAAQ,2BAAwB;AACnD,SAASC,eAAe,QAAQ,8BAA2B;AAC3D,SAASC,aAAa,QAAQ,oCAAiC;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAG/D,OAAO,MAAMC,iBAAiB,GAAGA,CAAA,KAAM;EACrC,MAAM;IAAEC;EAAM,CAAC,GAAGN,aAAa,CAAC,CAAC;EACjC,MAAMO,MAAM,GAAGf,OAAO,CAACc,KAAK,CAACE,IAAI,CAACC,OAAO,CAAC;EAE1C,IAAIF,MAAM,EAAE;IACV,oBAAOL,IAAA,CAACH,eAAe;MAACQ,MAAM,EAAEA;IAAO,CAAE,CAAC;EAC5C;EAEA,oBACEH,KAAA,CAACV,IAAI;IAACgB,KAAK,EAAEC,MAAM,CAACC,OAAQ;IAAAC,QAAA,gBAC1BT,KAAA,CAACV,IAAI;MAACgB,KAAK,EAAEC,MAAM,CAACG,MAAO;MAAAD,QAAA,gBACzBX,IAAA,CAACN,aAAa,IAAE,CAAC,eACjBM,IAAA,CAACL,YAAY,IAAE,CAAC;IAAA,CACZ,CAAC,eAEPK,IAAA,CAACJ,UAAU,IAAE,CAAC;EAAA,CACV,CAAC;AAEX,CAAC;AAED,MAAMa,MAAM,GAAGlB,UAAU,CAACsB,MAAM,CAAC;EAC/BH,OAAO,EAAE;IACPI,IAAI,EAAE,CAAC;IACPC,aAAa,EAAE;EACjB,CAAC;EACDH,MAAM,EAAE;IACNE,IAAI,EAAE,CAAC;IACPE,WAAW,EAAEvB,OAAO,CAAC,GAAG,CAAC;IACzBwB,GAAG,EAAExB,OAAO,CAAC,GAAG;EAClB;AACF,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,121 @@
1
+ "use strict";
2
+
3
+ import React from 'react';
4
+ import { StyleSheet, View } from 'react-native';
5
+ import { COLORS, HeadingVariants, SPACING, Typography } from '@magmamath/react-native-ui';
6
+ import { SketchArrowRight } from "../../../../shared/icons/SketchArrowRight.js";
7
+ import { SliceDiamondIcon } from "../../../../shared/icons/SliceDiamondIcon.js";
8
+ import { useText } from "../../../../shared/translation/index.js";
9
+ import { useUnit, useStoreMap } from 'effector-react';
10
+ import { usePmProgress } from "../../context/PmProgressContext.js";
11
+ import { isFluencyDomain } from "../../shared/pmProgress.helpers.js";
12
+ import { OpeningLoaderId, SolvingFlow } from "../../shared/pmProgress.constants.js";
13
+ import { StartButton } from "./StartButton.js";
14
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
15
+ export const NextUp = () => {
16
+ const t = useText();
17
+ const {
18
+ model,
19
+ onStartPress
20
+ } = usePmProgress();
21
+ const status = useUnit(model.tree.$status);
22
+ const loaderOpeningId = useUnit(model.solving.$loaderOpeningId);
23
+ const nextUp = useStoreMap(model.tree.$domains, domains => domains.find(domain => {
24
+ const isFluency = isFluencyDomain(domain.title);
25
+ const isDomainCompleted = domain.standards.every(standard => standard.isCompleted);
26
+ return !isFluency && !isDomainCompleted;
27
+ }));
28
+ const isLoading = loaderOpeningId === OpeningLoaderId.START_BUTTON;
29
+ const isSkillOpeningActionPending = !!(loaderOpeningId !== null || status);
30
+ return /*#__PURE__*/_jsxs(View, {
31
+ style: styles.container,
32
+ children: [nextUp && !status && /*#__PURE__*/_jsxs(_Fragment, {
33
+ children: [/*#__PURE__*/_jsxs(View, {
34
+ style: styles.content,
35
+ children: [/*#__PURE__*/_jsx(View, {
36
+ style: styles.subtitle,
37
+ children: /*#__PURE__*/_jsx(Typography, {
38
+ variant: HeadingVariants.H2,
39
+ style: styles.dark,
40
+ children: t('pmProgress.nextUp')
41
+ })
42
+ }), /*#__PURE__*/_jsxs(View, {
43
+ style: [styles.row, styles.tilted],
44
+ children: [/*#__PURE__*/_jsx(Typography, {
45
+ variant: HeadingVariants.H7,
46
+ style: styles.muted,
47
+ children: nextUp?.title
48
+ }), /*#__PURE__*/_jsx(View, {
49
+ style: styles.diamond,
50
+ children: /*#__PURE__*/_jsx(SliceDiamondIcon, {
51
+ color: nextUp?.color
52
+ })
53
+ })]
54
+ })]
55
+ }), /*#__PURE__*/_jsx(View, {
56
+ style: styles.arrow,
57
+ children: /*#__PURE__*/_jsx(SketchArrowRight, {})
58
+ })]
59
+ }), /*#__PURE__*/_jsx(StartButton, {
60
+ onPress: async () => {
61
+ try {
62
+ model.solving.setLoaderOpeningId(OpeningLoaderId.START_BUTTON);
63
+ const skill = await model.solving.start({
64
+ type: SolvingFlow.MAGMA
65
+ });
66
+ await onStartPress?.(skill);
67
+ } finally {
68
+ model.solving.setLoaderOpeningId(null);
69
+ }
70
+ },
71
+ disabled: isSkillOpeningActionPending,
72
+ isLoading: isLoading,
73
+ isActive: isLoading,
74
+ withPulsation: !!nextUp && !isLoading && !isSkillOpeningActionPending && !status
75
+ })]
76
+ });
77
+ };
78
+ const styles = StyleSheet.create({
79
+ container: {
80
+ flexDirection: 'row',
81
+ alignItems: 'center',
82
+ gap: SPACING[400]
83
+ },
84
+ content: {
85
+ alignItems: 'center',
86
+ gap: SPACING[100]
87
+ },
88
+ dark: {
89
+ color: COLORS.NEUTRAL_9
90
+ },
91
+ subtitle: {
92
+ transform: [{
93
+ rotate: '355deg'
94
+ }],
95
+ marginRight: SPACING[300]
96
+ },
97
+ tilted: {
98
+ transform: [{
99
+ rotate: '355deg'
100
+ }]
101
+ },
102
+ row: {
103
+ flexDirection: 'row',
104
+ gap: SPACING[100]
105
+ },
106
+ muted: {
107
+ color: COLORS.NEUTRAL_8
108
+ },
109
+ diamond: {
110
+ bottom: 10,
111
+ transform: [{
112
+ rotate: '5deg'
113
+ }]
114
+ },
115
+ arrow: {
116
+ transform: [{
117
+ rotate: '358deg'
118
+ }]
119
+ }
120
+ });
121
+ //# sourceMappingURL=NextUp.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","StyleSheet","View","COLORS","HeadingVariants","SPACING","Typography","SketchArrowRight","SliceDiamondIcon","useText","useUnit","useStoreMap","usePmProgress","isFluencyDomain","OpeningLoaderId","SolvingFlow","StartButton","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","NextUp","t","model","onStartPress","status","tree","$status","loaderOpeningId","solving","$loaderOpeningId","nextUp","$domains","domains","find","domain","isFluency","title","isDomainCompleted","standards","every","standard","isCompleted","isLoading","START_BUTTON","isSkillOpeningActionPending","style","styles","container","children","content","subtitle","variant","H2","dark","row","tilted","H7","muted","diamond","color","arrow","onPress","setLoaderOpeningId","skill","start","type","MAGMA","disabled","isActive","withPulsation","create","flexDirection","alignItems","gap","NEUTRAL_9","transform","rotate","marginRight","NEUTRAL_8","bottom"],"sourceRoot":"../../../../../../src","sources":["features/pmProgress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