@magmamath/students-features 1.2.2-rc.5 → 1.3.1-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 (475) hide show
  1. package/.editorconfig +15 -0
  2. package/.eslintignore +2 -0
  3. package/.eslintrc +22 -0
  4. package/.gitattributes +3 -0
  5. package/.github/actions/setup/action.yml +37 -0
  6. package/.github/workflows/ci.yml +73 -0
  7. package/.gitignore +84 -0
  8. package/.nvmrc +1 -0
  9. package/.prettierrc +11 -0
  10. package/.release-it.json +17 -0
  11. package/.watchmanconfig +1 -0
  12. package/.yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs +541 -0
  13. package/.yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs +28 -0
  14. package/.yarn/releases/yarn-3.6.1.cjs +874 -0
  15. package/babel.config.js +5 -0
  16. package/bob.config.js +25 -0
  17. package/dist/commonjs/features/chatbot/components/Chat/Chat.js +0 -2
  18. package/dist/commonjs/features/chatbot/components/Chat/Chat.js.map +1 -1
  19. package/dist/commonjs/features/chatbot/components/Chat/ChatIcon.js +0 -2
  20. package/dist/commonjs/features/chatbot/components/Chat/ChatIcon.js.map +1 -1
  21. package/dist/commonjs/features/chatbot/components/Chat/CloseButton.js +0 -2
  22. package/dist/commonjs/features/chatbot/components/Chat/CloseButton.js.map +1 -1
  23. package/dist/commonjs/features/chatbot/components/ChatControls/ChatControls.js +0 -2
  24. package/dist/commonjs/features/chatbot/components/ChatControls/ChatControls.js.map +1 -1
  25. package/dist/commonjs/features/chatbot/components/ChatInput/FreeText/ChatTextInput.js +1 -3
  26. package/dist/commonjs/features/chatbot/components/ChatInput/FreeText/ChatTextInput.js.map +1 -1
  27. package/dist/commonjs/features/chatbot/components/ChatInput/FreeText/FreeTextInputBlock.js +0 -2
  28. package/dist/commonjs/features/chatbot/components/ChatInput/FreeText/FreeTextInputBlock.js.map +1 -1
  29. package/dist/commonjs/features/chatbot/components/ChatInput/FreeText/SendMessageButton.js +0 -2
  30. package/dist/commonjs/features/chatbot/components/ChatInput/FreeText/SendMessageButton.js.map +1 -1
  31. package/dist/commonjs/features/chatbot/components/ChatInput/RequestHintButton.js +0 -2
  32. package/dist/commonjs/features/chatbot/components/ChatInput/RequestHintButton.js.map +1 -1
  33. package/dist/commonjs/features/chatbot/components/ChatMessage/MessageLoader.js +0 -2
  34. package/dist/commonjs/features/chatbot/components/ChatMessage/MessageLoader.js.map +1 -1
  35. package/dist/commonjs/features/chatbot/components/ChatMessage/MessageTextToSpeech.js +1 -3
  36. package/dist/commonjs/features/chatbot/components/ChatMessage/MessageTextToSpeech.js.map +1 -1
  37. package/dist/commonjs/features/chatbot/components/ChatMessage/ReceivedMessage.js +0 -2
  38. package/dist/commonjs/features/chatbot/components/ChatMessage/ReceivedMessage.js.map +1 -1
  39. package/dist/commonjs/features/chatbot/components/ChatMessage/SentMessage.js +0 -2
  40. package/dist/commonjs/features/chatbot/components/ChatMessage/SentMessage.js.map +1 -1
  41. package/dist/commonjs/features/chatbot/errorSpotting/ErrorSpottingButton.js +0 -2
  42. package/dist/commonjs/features/chatbot/errorSpotting/ErrorSpottingButton.js.map +1 -1
  43. package/dist/commonjs/features/chatbot/errorSpotting/ErrorSpottingModel.js +1 -0
  44. package/dist/commonjs/features/chatbot/errorSpotting/ErrorSpottingModel.js.map +1 -1
  45. package/dist/commonjs/features/chatbot/helpers.js +3 -0
  46. package/dist/commonjs/features/chatbot/helpers.js.map +1 -1
  47. package/dist/commonjs/features/chatbot/model/ChatBotThreadManager.js +40 -8
  48. package/dist/commonjs/features/chatbot/model/ChatBotThreadManager.js.map +1 -1
  49. package/dist/commonjs/features/chatbot/model/ThreadItem.js +51 -13
  50. package/dist/commonjs/features/chatbot/model/ThreadItem.js.map +1 -1
  51. package/dist/commonjs/features/chatbot/types/model.types.js.map +1 -1
  52. package/dist/commonjs/features/endOfAssignment/components/CheatDetected/CheatDetected.js +0 -3
  53. package/dist/commonjs/features/endOfAssignment/components/CheatDetected/CheatDetected.js.map +1 -1
  54. package/dist/commonjs/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.js +0 -2
  55. package/dist/commonjs/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.js.map +1 -1
  56. package/dist/commonjs/features/endOfAssignment/components/ExamLeave/ExamLeave.js +0 -3
  57. package/dist/commonjs/features/endOfAssignment/components/ExamLeave/ExamLeave.js.map +1 -1
  58. package/dist/commonjs/features/endOfAssignment/components/ExamPaused/ExamPaused.js +0 -3
  59. package/dist/commonjs/features/endOfAssignment/components/ExamPaused/ExamPaused.js.map +1 -1
  60. package/dist/commonjs/features/endOfAssignment/components/ExamSubmit/ExamSubmit.js +0 -3
  61. package/dist/commonjs/features/endOfAssignment/components/ExamSubmit/ExamSubmit.js.map +1 -1
  62. package/dist/commonjs/features/endOfAssignment/components/Modal/Modal.js +1 -4
  63. package/dist/commonjs/features/endOfAssignment/components/Modal/Modal.js.map +1 -1
  64. package/dist/commonjs/features/endOfAssignment/components/NoAnswer/NoAnswer.js +3 -9
  65. package/dist/commonjs/features/endOfAssignment/components/NoAnswer/NoAnswer.js.map +1 -1
  66. package/dist/commonjs/features/endOfAssignment/ui/PracticeButton.js +0 -2
  67. package/dist/commonjs/features/endOfAssignment/ui/PracticeButton.js.map +1 -1
  68. package/dist/commonjs/features/endOfAssignment/ui/PracticeButtonGroup.js +0 -2
  69. package/dist/commonjs/features/endOfAssignment/ui/PracticeButtonGroup.js.map +1 -1
  70. package/dist/commonjs/features/exampleSolution/components/ExampleSolutionModalContent.js +0 -2
  71. package/dist/commonjs/features/exampleSolution/components/ExampleSolutionModalContent.js.map +1 -1
  72. package/dist/commonjs/features/exampleSolution/components/QuestionSection.js +0 -2
  73. package/dist/commonjs/features/exampleSolution/components/QuestionSection.js.map +1 -1
  74. package/dist/commonjs/features/exampleSolution/components/SolutionSection.js +0 -2
  75. package/dist/commonjs/features/exampleSolution/components/SolutionSection.js.map +1 -1
  76. package/dist/commonjs/features/feedback/components/EmptyComment.js +0 -2
  77. package/dist/commonjs/features/feedback/components/EmptyComment.js.map +1 -1
  78. package/dist/commonjs/features/feedback/components/ListCardCommentsCount.js +0 -2
  79. package/dist/commonjs/features/feedback/components/ListCardCommentsCount.js.map +1 -1
  80. package/dist/commonjs/features/feedback/components/TeacherFeedbackButton.js +0 -3
  81. package/dist/commonjs/features/feedback/components/TeacherFeedbackButton.js.map +1 -1
  82. package/dist/commonjs/features/feedback/components/TeacherFeedbackComments/TeacherComment.js +0 -2
  83. package/dist/commonjs/features/feedback/components/TeacherFeedbackComments/TeacherComment.js.map +1 -1
  84. package/dist/commonjs/features/feedback/components/UnreadMessagesBadge.js +0 -2
  85. package/dist/commonjs/features/feedback/components/UnreadMessagesBadge.js.map +1 -1
  86. package/dist/commonjs/features/formulaSheet/components/FormulaSheet.js +0 -2
  87. package/dist/commonjs/features/formulaSheet/components/FormulaSheet.js.map +1 -1
  88. package/dist/commonjs/features/formulaSheet/components/FormulaSheetModal.js +0 -2
  89. package/dist/commonjs/features/formulaSheet/components/FormulaSheetModal.js.map +1 -1
  90. package/dist/commonjs/features/keyboard/components/AlgebraLayout/AlgebraLayout.js +0 -2
  91. package/dist/commonjs/features/keyboard/components/AlgebraLayout/AlgebraLayout.js.map +1 -1
  92. package/dist/commonjs/features/keyboard/components/BasicLayout/BasicLayout.js +0 -2
  93. package/dist/commonjs/features/keyboard/components/BasicLayout/BasicLayout.js.map +1 -1
  94. package/dist/commonjs/features/keyboard/components/BasicLayout/CurrencyBasicLayout.js +4 -9
  95. package/dist/commonjs/features/keyboard/components/BasicLayout/CurrencyBasicLayout.js.map +1 -1
  96. package/dist/commonjs/features/keyboard/components/BasicLayout/TimeBasicLayout.js +11 -15
  97. package/dist/commonjs/features/keyboard/components/BasicLayout/TimeBasicLayout.js.map +1 -1
  98. package/dist/commonjs/features/keyboard/components/BasicPlusLayout/BasicPlusLayout.js +0 -2
  99. package/dist/commonjs/features/keyboard/components/BasicPlusLayout/BasicPlusLayout.js.map +1 -1
  100. package/dist/commonjs/features/keyboard/components/BasicPlusPlusLayout/BasicPlusPlusLayout.js +0 -2
  101. package/dist/commonjs/features/keyboard/components/BasicPlusPlusLayout/BasicPlusPlusLayout.js.map +1 -1
  102. package/dist/commonjs/features/keyboard/components/Keyboard.js +0 -2
  103. package/dist/commonjs/features/keyboard/components/Keyboard.js.map +1 -1
  104. package/dist/commonjs/features/keyboard/components/MainLayout/MainLayout.js +0 -2
  105. package/dist/commonjs/features/keyboard/components/MainLayout/MainLayout.js.map +1 -1
  106. package/dist/commonjs/features/keyboard/components/Numpad/Numpad.js +0 -2
  107. package/dist/commonjs/features/keyboard/components/Numpad/Numpad.js.map +1 -1
  108. package/dist/commonjs/features/keyboard/components/UnderlinedLayout/UnderlinedLayout.js +4 -9
  109. package/dist/commonjs/features/keyboard/components/UnderlinedLayout/UnderlinedLayout.js.map +1 -1
  110. package/dist/commonjs/features/keyboard/components/UnitsLayout/UnitsLayout.js +0 -2
  111. package/dist/commonjs/features/keyboard/components/UnitsLayout/UnitsLayout.js.map +1 -1
  112. package/dist/commonjs/features/openEnded/components/OpenEndedAttemptsLimit.js +0 -2
  113. package/dist/commonjs/features/openEnded/components/OpenEndedAttemptsLimit.js.map +1 -1
  114. package/dist/commonjs/features/openEnded/components/OpenEndedScoreLabel.js +3 -3
  115. package/dist/commonjs/features/openEnded/components/OpenEndedScoreLabel.js.map +1 -1
  116. package/dist/commonjs/features/problemSelector/components/ProblemSelectorButton.js +0 -2
  117. package/dist/commonjs/features/problemSelector/components/ProblemSelectorButton.js.map +1 -1
  118. package/dist/commonjs/features/voice/recording/components/VoiceRecordButton.js +0 -2
  119. package/dist/commonjs/features/voice/recording/components/VoiceRecordButton.js.map +1 -1
  120. package/dist/commonjs/features/voice/recording/components/VoiceRecordDeleteButton.js +0 -2
  121. package/dist/commonjs/features/voice/recording/components/VoiceRecordDeleteButton.js.map +1 -1
  122. package/dist/commonjs/features/voice/recording/components/VoiceRecordTimer.js +0 -2
  123. package/dist/commonjs/features/voice/recording/components/VoiceRecordTimer.js.map +1 -1
  124. package/dist/commonjs/features/voice/recording/modal/ModalFooterButtons.js +1 -5
  125. package/dist/commonjs/features/voice/recording/modal/ModalFooterButtons.js.map +1 -1
  126. package/dist/commonjs/features/voice/recording/modal/VoiceRecordDeleteModal.js +0 -4
  127. package/dist/commonjs/features/voice/recording/modal/VoiceRecordDeleteModal.js.map +1 -1
  128. package/dist/commonjs/features/voice/recording/modal/VoiceRecordUndoModal.js +0 -4
  129. package/dist/commonjs/features/voice/recording/modal/VoiceRecordUndoModal.js.map +1 -1
  130. package/dist/commonjs/index.js +0 -8
  131. package/dist/commonjs/index.js.map +1 -1
  132. package/dist/commonjs/shared/components/PlayButton.js.map +1 -1
  133. package/dist/module/features/chatbot/components/Chat/Chat.js +0 -2
  134. package/dist/module/features/chatbot/components/Chat/Chat.js.map +1 -1
  135. package/dist/module/features/chatbot/components/Chat/ChatIcon.js +0 -2
  136. package/dist/module/features/chatbot/components/Chat/ChatIcon.js.map +1 -1
  137. package/dist/module/features/chatbot/components/Chat/CloseButton.js +0 -2
  138. package/dist/module/features/chatbot/components/Chat/CloseButton.js.map +1 -1
  139. package/dist/module/features/chatbot/components/ChatControls/ChatControls.js +0 -2
  140. package/dist/module/features/chatbot/components/ChatControls/ChatControls.js.map +1 -1
  141. package/dist/module/features/chatbot/components/ChatInput/FreeText/ChatTextInput.js +1 -3
  142. package/dist/module/features/chatbot/components/ChatInput/FreeText/ChatTextInput.js.map +1 -1
  143. package/dist/module/features/chatbot/components/ChatInput/FreeText/FreeTextInputBlock.js +0 -2
  144. package/dist/module/features/chatbot/components/ChatInput/FreeText/FreeTextInputBlock.js.map +1 -1
  145. package/dist/module/features/chatbot/components/ChatInput/FreeText/SendMessageButton.js +0 -2
  146. package/dist/module/features/chatbot/components/ChatInput/FreeText/SendMessageButton.js.map +1 -1
  147. package/dist/module/features/chatbot/components/ChatInput/RequestHintButton.js +0 -2
  148. package/dist/module/features/chatbot/components/ChatInput/RequestHintButton.js.map +1 -1
  149. package/dist/module/features/chatbot/components/ChatMessage/MessageLoader.js +0 -2
  150. package/dist/module/features/chatbot/components/ChatMessage/MessageLoader.js.map +1 -1
  151. package/dist/module/features/chatbot/components/ChatMessage/MessageTextToSpeech.js +1 -3
  152. package/dist/module/features/chatbot/components/ChatMessage/MessageTextToSpeech.js.map +1 -1
  153. package/dist/module/features/chatbot/components/ChatMessage/ReceivedMessage.js +0 -2
  154. package/dist/module/features/chatbot/components/ChatMessage/ReceivedMessage.js.map +1 -1
  155. package/dist/module/features/chatbot/components/ChatMessage/SentMessage.js +0 -2
  156. package/dist/module/features/chatbot/components/ChatMessage/SentMessage.js.map +1 -1
  157. package/dist/module/features/chatbot/errorSpotting/ErrorSpottingButton.js +0 -2
  158. package/dist/module/features/chatbot/errorSpotting/ErrorSpottingButton.js.map +1 -1
  159. package/dist/module/features/chatbot/errorSpotting/ErrorSpottingModel.js +1 -0
  160. package/dist/module/features/chatbot/errorSpotting/ErrorSpottingModel.js.map +1 -1
  161. package/dist/module/features/chatbot/helpers.js +3 -0
  162. package/dist/module/features/chatbot/helpers.js.map +1 -1
  163. package/dist/module/features/chatbot/model/ChatBotThreadManager.js +40 -8
  164. package/dist/module/features/chatbot/model/ChatBotThreadManager.js.map +1 -1
  165. package/dist/module/features/chatbot/model/ThreadItem.js +51 -13
  166. package/dist/module/features/chatbot/model/ThreadItem.js.map +1 -1
  167. package/dist/module/features/chatbot/types/model.types.js.map +1 -1
  168. package/dist/module/features/endOfAssignment/components/CheatDetected/CheatDetected.js +0 -3
  169. package/dist/module/features/endOfAssignment/components/CheatDetected/CheatDetected.js.map +1 -1
  170. package/dist/module/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.js +0 -2
  171. package/dist/module/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.js.map +1 -1
  172. package/dist/module/features/endOfAssignment/components/ExamLeave/ExamLeave.js +0 -3
  173. package/dist/module/features/endOfAssignment/components/ExamLeave/ExamLeave.js.map +1 -1
  174. package/dist/module/features/endOfAssignment/components/ExamPaused/ExamPaused.js +0 -3
  175. package/dist/module/features/endOfAssignment/components/ExamPaused/ExamPaused.js.map +1 -1
  176. package/dist/module/features/endOfAssignment/components/ExamSubmit/ExamSubmit.js +0 -3
  177. package/dist/module/features/endOfAssignment/components/ExamSubmit/ExamSubmit.js.map +1 -1
  178. package/dist/module/features/endOfAssignment/components/Modal/Modal.js +1 -4
  179. package/dist/module/features/endOfAssignment/components/Modal/Modal.js.map +1 -1
  180. package/dist/module/features/endOfAssignment/components/NoAnswer/NoAnswer.js +3 -9
  181. package/dist/module/features/endOfAssignment/components/NoAnswer/NoAnswer.js.map +1 -1
  182. package/dist/module/features/endOfAssignment/ui/PracticeButton.js +0 -2
  183. package/dist/module/features/endOfAssignment/ui/PracticeButton.js.map +1 -1
  184. package/dist/module/features/endOfAssignment/ui/PracticeButtonGroup.js +0 -2
  185. package/dist/module/features/endOfAssignment/ui/PracticeButtonGroup.js.map +1 -1
  186. package/dist/module/features/exampleSolution/components/ExampleSolutionModalContent.js +0 -2
  187. package/dist/module/features/exampleSolution/components/ExampleSolutionModalContent.js.map +1 -1
  188. package/dist/module/features/exampleSolution/components/QuestionSection.js +0 -2
  189. package/dist/module/features/exampleSolution/components/QuestionSection.js.map +1 -1
  190. package/dist/module/features/exampleSolution/components/SolutionSection.js +0 -2
  191. package/dist/module/features/exampleSolution/components/SolutionSection.js.map +1 -1
  192. package/dist/module/features/feedback/components/EmptyComment.js +0 -2
  193. package/dist/module/features/feedback/components/EmptyComment.js.map +1 -1
  194. package/dist/module/features/feedback/components/ListCardCommentsCount.js +0 -2
  195. package/dist/module/features/feedback/components/ListCardCommentsCount.js.map +1 -1
  196. package/dist/module/features/feedback/components/TeacherFeedbackButton.js +0 -3
  197. package/dist/module/features/feedback/components/TeacherFeedbackButton.js.map +1 -1
  198. package/dist/module/features/feedback/components/TeacherFeedbackComments/TeacherComment.js +0 -2
  199. package/dist/module/features/feedback/components/TeacherFeedbackComments/TeacherComment.js.map +1 -1
  200. package/dist/module/features/feedback/components/UnreadMessagesBadge.js +0 -2
  201. package/dist/module/features/feedback/components/UnreadMessagesBadge.js.map +1 -1
  202. package/dist/module/features/formulaSheet/components/FormulaSheet.js +0 -2
  203. package/dist/module/features/formulaSheet/components/FormulaSheet.js.map +1 -1
  204. package/dist/module/features/formulaSheet/components/FormulaSheetModal.js +0 -2
  205. package/dist/module/features/formulaSheet/components/FormulaSheetModal.js.map +1 -1
  206. package/dist/module/features/keyboard/components/AlgebraLayout/AlgebraLayout.js +0 -2
  207. package/dist/module/features/keyboard/components/AlgebraLayout/AlgebraLayout.js.map +1 -1
  208. package/dist/module/features/keyboard/components/BasicLayout/BasicLayout.js +0 -2
  209. package/dist/module/features/keyboard/components/BasicLayout/BasicLayout.js.map +1 -1
  210. package/dist/module/features/keyboard/components/BasicLayout/CurrencyBasicLayout.js +4 -9
  211. package/dist/module/features/keyboard/components/BasicLayout/CurrencyBasicLayout.js.map +1 -1
  212. package/dist/module/features/keyboard/components/BasicLayout/TimeBasicLayout.js +12 -16
  213. package/dist/module/features/keyboard/components/BasicLayout/TimeBasicLayout.js.map +1 -1
  214. package/dist/module/features/keyboard/components/BasicPlusLayout/BasicPlusLayout.js +0 -2
  215. package/dist/module/features/keyboard/components/BasicPlusLayout/BasicPlusLayout.js.map +1 -1
  216. package/dist/module/features/keyboard/components/BasicPlusPlusLayout/BasicPlusPlusLayout.js +0 -2
  217. package/dist/module/features/keyboard/components/BasicPlusPlusLayout/BasicPlusPlusLayout.js.map +1 -1
  218. package/dist/module/features/keyboard/components/Keyboard.js +0 -2
  219. package/dist/module/features/keyboard/components/Keyboard.js.map +1 -1
  220. package/dist/module/features/keyboard/components/MainLayout/MainLayout.js +0 -2
  221. package/dist/module/features/keyboard/components/MainLayout/MainLayout.js.map +1 -1
  222. package/dist/module/features/keyboard/components/Numpad/Numpad.js +0 -2
  223. package/dist/module/features/keyboard/components/Numpad/Numpad.js.map +1 -1
  224. package/dist/module/features/keyboard/components/UnderlinedLayout/UnderlinedLayout.js +4 -9
  225. package/dist/module/features/keyboard/components/UnderlinedLayout/UnderlinedLayout.js.map +1 -1
  226. package/dist/module/features/keyboard/components/UnitsLayout/UnitsLayout.js +0 -2
  227. package/dist/module/features/keyboard/components/UnitsLayout/UnitsLayout.js.map +1 -1
  228. package/dist/module/features/openEnded/components/OpenEndedAttemptsLimit.js +0 -2
  229. package/dist/module/features/openEnded/components/OpenEndedAttemptsLimit.js.map +1 -1
  230. package/dist/module/features/openEnded/components/OpenEndedScoreLabel.js +3 -3
  231. package/dist/module/features/openEnded/components/OpenEndedScoreLabel.js.map +1 -1
  232. package/dist/module/features/problemSelector/components/ProblemSelectorButton.js +0 -2
  233. package/dist/module/features/problemSelector/components/ProblemSelectorButton.js.map +1 -1
  234. package/dist/module/features/voice/recording/components/VoiceRecordButton.js +0 -2
  235. package/dist/module/features/voice/recording/components/VoiceRecordButton.js.map +1 -1
  236. package/dist/module/features/voice/recording/components/VoiceRecordDeleteButton.js +0 -2
  237. package/dist/module/features/voice/recording/components/VoiceRecordDeleteButton.js.map +1 -1
  238. package/dist/module/features/voice/recording/components/VoiceRecordTimer.js +0 -2
  239. package/dist/module/features/voice/recording/components/VoiceRecordTimer.js.map +1 -1
  240. package/dist/module/features/voice/recording/modal/ModalFooterButtons.js +1 -5
  241. package/dist/module/features/voice/recording/modal/ModalFooterButtons.js.map +1 -1
  242. package/dist/module/features/voice/recording/modal/VoiceRecordDeleteModal.js +0 -4
  243. package/dist/module/features/voice/recording/modal/VoiceRecordDeleteModal.js.map +1 -1
  244. package/dist/module/features/voice/recording/modal/VoiceRecordUndoModal.js +0 -4
  245. package/dist/module/features/voice/recording/modal/VoiceRecordUndoModal.js.map +1 -1
  246. package/dist/module/index.js +0 -1
  247. package/dist/module/index.js.map +1 -1
  248. package/dist/module/shared/components/PlayButton.js.map +1 -1
  249. package/dist/typescript/commonjs/features/chatbot/components/Chat/Chat.d.ts.map +1 -1
  250. package/dist/typescript/commonjs/features/chatbot/components/Chat/ChatIcon.d.ts.map +1 -1
  251. package/dist/typescript/commonjs/features/chatbot/components/Chat/CloseButton.d.ts.map +1 -1
  252. package/dist/typescript/commonjs/features/chatbot/components/ChatControls/ChatControls.d.ts.map +1 -1
  253. package/dist/typescript/commonjs/features/chatbot/components/ChatInput/FreeText/ChatTextInput.d.ts.map +1 -1
  254. package/dist/typescript/commonjs/features/chatbot/components/ChatInput/FreeText/FreeTextInputBlock.d.ts.map +1 -1
  255. package/dist/typescript/commonjs/features/chatbot/components/ChatInput/FreeText/SendMessageButton.d.ts.map +1 -1
  256. package/dist/typescript/commonjs/features/chatbot/components/ChatInput/RequestHintButton.d.ts.map +1 -1
  257. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/MessageLoader.d.ts.map +1 -1
  258. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/MessageTextToSpeech.d.ts.map +1 -1
  259. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/ReceivedMessage.d.ts.map +1 -1
  260. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/SentMessage.d.ts.map +1 -1
  261. package/dist/typescript/commonjs/features/chatbot/errorSpotting/ErrorSpottingButton.d.ts.map +1 -1
  262. package/dist/typescript/commonjs/features/chatbot/errorSpotting/ErrorSpottingModel.d.ts +2 -1
  263. package/dist/typescript/commonjs/features/chatbot/errorSpotting/ErrorSpottingModel.d.ts.map +1 -1
  264. package/dist/typescript/commonjs/features/chatbot/helpers.d.ts.map +1 -1
  265. package/dist/typescript/commonjs/features/chatbot/model/ChatBotThreadManager.d.ts +1 -0
  266. package/dist/typescript/commonjs/features/chatbot/model/ChatBotThreadManager.d.ts.map +1 -1
  267. package/dist/typescript/commonjs/features/chatbot/model/ThreadItem.d.ts +50 -12
  268. package/dist/typescript/commonjs/features/chatbot/model/ThreadItem.d.ts.map +1 -1
  269. package/dist/typescript/commonjs/features/chatbot/types/api.types.d.ts +10 -2
  270. package/dist/typescript/commonjs/features/chatbot/types/api.types.d.ts.map +1 -1
  271. package/dist/typescript/commonjs/features/chatbot/types/model.types.d.ts +5 -2
  272. package/dist/typescript/commonjs/features/chatbot/types/model.types.d.ts.map +1 -1
  273. package/dist/typescript/commonjs/features/chatbot/types/units.types.d.ts +22 -0
  274. package/dist/typescript/commonjs/features/chatbot/types/units.types.d.ts.map +1 -1
  275. package/dist/typescript/commonjs/features/endOfAssignment/components/CheatDetected/CheatDetected.d.ts.map +1 -1
  276. package/dist/typescript/commonjs/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.d.ts.map +1 -1
  277. package/dist/typescript/commonjs/features/endOfAssignment/components/ExamLeave/ExamLeave.d.ts.map +1 -1
  278. package/dist/typescript/commonjs/features/endOfAssignment/components/ExamPaused/ExamPaused.d.ts.map +1 -1
  279. package/dist/typescript/commonjs/features/endOfAssignment/components/ExamSubmit/ExamSubmit.d.ts.map +1 -1
  280. package/dist/typescript/commonjs/features/endOfAssignment/components/Modal/Modal.d.ts.map +1 -1
  281. package/dist/typescript/commonjs/features/endOfAssignment/components/NoAnswer/NoAnswer.d.ts.map +1 -1
  282. package/dist/typescript/commonjs/features/endOfAssignment/ui/PracticeButton.d.ts.map +1 -1
  283. package/dist/typescript/commonjs/features/endOfAssignment/ui/PracticeButtonGroup.d.ts.map +1 -1
  284. package/dist/typescript/commonjs/features/exampleSolution/components/ExampleSolutionModalContent.d.ts.map +1 -1
  285. package/dist/typescript/commonjs/features/exampleSolution/components/QuestionSection.d.ts.map +1 -1
  286. package/dist/typescript/commonjs/features/exampleSolution/components/SolutionSection.d.ts.map +1 -1
  287. package/dist/typescript/commonjs/features/feedback/components/EmptyComment.d.ts.map +1 -1
  288. package/dist/typescript/commonjs/features/feedback/components/ListCardCommentsCount.d.ts.map +1 -1
  289. package/dist/typescript/commonjs/features/feedback/components/TeacherFeedbackButton.d.ts.map +1 -1
  290. package/dist/typescript/commonjs/features/feedback/components/TeacherFeedbackComments/TeacherComment.d.ts.map +1 -1
  291. package/dist/typescript/commonjs/features/feedback/components/UnreadMessagesBadge.d.ts.map +1 -1
  292. package/dist/typescript/commonjs/features/formulaSheet/components/FormulaSheet.d.ts.map +1 -1
  293. package/dist/typescript/commonjs/features/formulaSheet/components/FormulaSheetModal.d.ts.map +1 -1
  294. package/dist/typescript/commonjs/features/keyboard/components/AlgebraLayout/AlgebraLayout.d.ts.map +1 -1
  295. package/dist/typescript/commonjs/features/keyboard/components/BasicLayout/BasicLayout.d.ts.map +1 -1
  296. package/dist/typescript/commonjs/features/keyboard/components/BasicLayout/CurrencyBasicLayout.d.ts.map +1 -1
  297. package/dist/typescript/commonjs/features/keyboard/components/BasicLayout/TimeBasicLayout.d.ts.map +1 -1
  298. package/dist/typescript/commonjs/features/keyboard/components/BasicPlusLayout/BasicPlusLayout.d.ts.map +1 -1
  299. package/dist/typescript/commonjs/features/keyboard/components/BasicPlusPlusLayout/BasicPlusPlusLayout.d.ts.map +1 -1
  300. package/dist/typescript/commonjs/features/keyboard/components/Keyboard.d.ts.map +1 -1
  301. package/dist/typescript/commonjs/features/keyboard/components/MainLayout/MainLayout.d.ts.map +1 -1
  302. package/dist/typescript/commonjs/features/keyboard/components/Numpad/Numpad.d.ts.map +1 -1
  303. package/dist/typescript/commonjs/features/keyboard/components/UnderlinedLayout/UnderlinedLayout.d.ts.map +1 -1
  304. package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/UnitsLayout.d.ts.map +1 -1
  305. package/dist/typescript/commonjs/features/openEnded/components/OpenEndedAttemptsLimit.d.ts.map +1 -1
  306. package/dist/typescript/commonjs/features/openEnded/components/OpenEndedScoreLabel.d.ts +2 -1
  307. package/dist/typescript/commonjs/features/openEnded/components/OpenEndedScoreLabel.d.ts.map +1 -1
  308. package/dist/typescript/commonjs/features/problemSelector/components/ProblemSelectorButton.d.ts.map +1 -1
  309. package/dist/typescript/commonjs/features/voice/recording/components/VoiceRecordButton.d.ts.map +1 -1
  310. package/dist/typescript/commonjs/features/voice/recording/components/VoiceRecordDeleteButton.d.ts.map +1 -1
  311. package/dist/typescript/commonjs/features/voice/recording/components/VoiceRecordTimer.d.ts.map +1 -1
  312. package/dist/typescript/commonjs/features/voice/recording/modal/ModalFooterButtons.d.ts +1 -3
  313. package/dist/typescript/commonjs/features/voice/recording/modal/ModalFooterButtons.d.ts.map +1 -1
  314. package/dist/typescript/commonjs/features/voice/recording/modal/VoiceRecordDeleteModal.d.ts.map +1 -1
  315. package/dist/typescript/commonjs/features/voice/recording/modal/VoiceRecordUndoModal.d.ts.map +1 -1
  316. package/dist/typescript/commonjs/index.d.ts +0 -1
  317. package/dist/typescript/commonjs/index.d.ts.map +1 -1
  318. package/dist/typescript/commonjs/shared/components/PlayButton.d.ts +0 -1
  319. package/dist/typescript/commonjs/shared/components/PlayButton.d.ts.map +1 -1
  320. package/dist/typescript/module/features/chatbot/components/Chat/Chat.d.ts.map +1 -1
  321. package/dist/typescript/module/features/chatbot/components/Chat/ChatIcon.d.ts.map +1 -1
  322. package/dist/typescript/module/features/chatbot/components/Chat/CloseButton.d.ts.map +1 -1
  323. package/dist/typescript/module/features/chatbot/components/ChatControls/ChatControls.d.ts.map +1 -1
  324. package/dist/typescript/module/features/chatbot/components/ChatInput/FreeText/ChatTextInput.d.ts.map +1 -1
  325. package/dist/typescript/module/features/chatbot/components/ChatInput/FreeText/FreeTextInputBlock.d.ts.map +1 -1
  326. package/dist/typescript/module/features/chatbot/components/ChatInput/FreeText/SendMessageButton.d.ts.map +1 -1
  327. package/dist/typescript/module/features/chatbot/components/ChatInput/RequestHintButton.d.ts.map +1 -1
  328. package/dist/typescript/module/features/chatbot/components/ChatMessage/MessageLoader.d.ts.map +1 -1
  329. package/dist/typescript/module/features/chatbot/components/ChatMessage/MessageTextToSpeech.d.ts.map +1 -1
  330. package/dist/typescript/module/features/chatbot/components/ChatMessage/ReceivedMessage.d.ts.map +1 -1
  331. package/dist/typescript/module/features/chatbot/components/ChatMessage/SentMessage.d.ts.map +1 -1
  332. package/dist/typescript/module/features/chatbot/errorSpotting/ErrorSpottingButton.d.ts.map +1 -1
  333. package/dist/typescript/module/features/chatbot/errorSpotting/ErrorSpottingModel.d.ts +2 -1
  334. package/dist/typescript/module/features/chatbot/errorSpotting/ErrorSpottingModel.d.ts.map +1 -1
  335. package/dist/typescript/module/features/chatbot/helpers.d.ts.map +1 -1
  336. package/dist/typescript/module/features/chatbot/model/ChatBotThreadManager.d.ts +1 -0
  337. package/dist/typescript/module/features/chatbot/model/ChatBotThreadManager.d.ts.map +1 -1
  338. package/dist/typescript/module/features/chatbot/model/ThreadItem.d.ts +50 -12
  339. package/dist/typescript/module/features/chatbot/model/ThreadItem.d.ts.map +1 -1
  340. package/dist/typescript/module/features/chatbot/types/api.types.d.ts +10 -2
  341. package/dist/typescript/module/features/chatbot/types/api.types.d.ts.map +1 -1
  342. package/dist/typescript/module/features/chatbot/types/model.types.d.ts +5 -2
  343. package/dist/typescript/module/features/chatbot/types/model.types.d.ts.map +1 -1
  344. package/dist/typescript/module/features/chatbot/types/units.types.d.ts +22 -0
  345. package/dist/typescript/module/features/chatbot/types/units.types.d.ts.map +1 -1
  346. package/dist/typescript/module/features/endOfAssignment/components/CheatDetected/CheatDetected.d.ts.map +1 -1
  347. package/dist/typescript/module/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.d.ts.map +1 -1
  348. package/dist/typescript/module/features/endOfAssignment/components/ExamLeave/ExamLeave.d.ts.map +1 -1
  349. package/dist/typescript/module/features/endOfAssignment/components/ExamPaused/ExamPaused.d.ts.map +1 -1
  350. package/dist/typescript/module/features/endOfAssignment/components/ExamSubmit/ExamSubmit.d.ts.map +1 -1
  351. package/dist/typescript/module/features/endOfAssignment/components/Modal/Modal.d.ts.map +1 -1
  352. package/dist/typescript/module/features/endOfAssignment/components/NoAnswer/NoAnswer.d.ts.map +1 -1
  353. package/dist/typescript/module/features/endOfAssignment/ui/PracticeButton.d.ts.map +1 -1
  354. package/dist/typescript/module/features/endOfAssignment/ui/PracticeButtonGroup.d.ts.map +1 -1
  355. package/dist/typescript/module/features/exampleSolution/components/ExampleSolutionModalContent.d.ts.map +1 -1
  356. package/dist/typescript/module/features/exampleSolution/components/QuestionSection.d.ts.map +1 -1
  357. package/dist/typescript/module/features/exampleSolution/components/SolutionSection.d.ts.map +1 -1
  358. package/dist/typescript/module/features/feedback/components/EmptyComment.d.ts.map +1 -1
  359. package/dist/typescript/module/features/feedback/components/ListCardCommentsCount.d.ts.map +1 -1
  360. package/dist/typescript/module/features/feedback/components/TeacherFeedbackButton.d.ts.map +1 -1
  361. package/dist/typescript/module/features/feedback/components/TeacherFeedbackComments/TeacherComment.d.ts.map +1 -1
  362. package/dist/typescript/module/features/feedback/components/UnreadMessagesBadge.d.ts.map +1 -1
  363. package/dist/typescript/module/features/formulaSheet/components/FormulaSheet.d.ts.map +1 -1
  364. package/dist/typescript/module/features/formulaSheet/components/FormulaSheetModal.d.ts.map +1 -1
  365. package/dist/typescript/module/features/keyboard/components/AlgebraLayout/AlgebraLayout.d.ts.map +1 -1
  366. package/dist/typescript/module/features/keyboard/components/BasicLayout/BasicLayout.d.ts.map +1 -1
  367. package/dist/typescript/module/features/keyboard/components/BasicLayout/CurrencyBasicLayout.d.ts.map +1 -1
  368. package/dist/typescript/module/features/keyboard/components/BasicLayout/TimeBasicLayout.d.ts.map +1 -1
  369. package/dist/typescript/module/features/keyboard/components/BasicPlusLayout/BasicPlusLayout.d.ts.map +1 -1
  370. package/dist/typescript/module/features/keyboard/components/BasicPlusPlusLayout/BasicPlusPlusLayout.d.ts.map +1 -1
  371. package/dist/typescript/module/features/keyboard/components/Keyboard.d.ts.map +1 -1
  372. package/dist/typescript/module/features/keyboard/components/MainLayout/MainLayout.d.ts.map +1 -1
  373. package/dist/typescript/module/features/keyboard/components/Numpad/Numpad.d.ts.map +1 -1
  374. package/dist/typescript/module/features/keyboard/components/UnderlinedLayout/UnderlinedLayout.d.ts.map +1 -1
  375. package/dist/typescript/module/features/keyboard/components/UnitsLayout/UnitsLayout.d.ts.map +1 -1
  376. package/dist/typescript/module/features/openEnded/components/OpenEndedAttemptsLimit.d.ts.map +1 -1
  377. package/dist/typescript/module/features/openEnded/components/OpenEndedScoreLabel.d.ts +2 -1
  378. package/dist/typescript/module/features/openEnded/components/OpenEndedScoreLabel.d.ts.map +1 -1
  379. package/dist/typescript/module/features/problemSelector/components/ProblemSelectorButton.d.ts.map +1 -1
  380. package/dist/typescript/module/features/voice/recording/components/VoiceRecordButton.d.ts.map +1 -1
  381. package/dist/typescript/module/features/voice/recording/components/VoiceRecordDeleteButton.d.ts.map +1 -1
  382. package/dist/typescript/module/features/voice/recording/components/VoiceRecordTimer.d.ts.map +1 -1
  383. package/dist/typescript/module/features/voice/recording/modal/ModalFooterButtons.d.ts +1 -3
  384. package/dist/typescript/module/features/voice/recording/modal/ModalFooterButtons.d.ts.map +1 -1
  385. package/dist/typescript/module/features/voice/recording/modal/VoiceRecordDeleteModal.d.ts.map +1 -1
  386. package/dist/typescript/module/features/voice/recording/modal/VoiceRecordUndoModal.d.ts.map +1 -1
  387. package/dist/typescript/module/index.d.ts +0 -1
  388. package/dist/typescript/module/index.d.ts.map +1 -1
  389. package/dist/typescript/module/shared/components/PlayButton.d.ts +0 -1
  390. package/dist/typescript/module/shared/components/PlayButton.d.ts.map +1 -1
  391. package/example/app.json +30 -0
  392. package/example/assets/adaptive-icon.png +0 -0
  393. package/example/assets/favicon.png +0 -0
  394. package/example/assets/icon.png +0 -0
  395. package/example/assets/splash-icon.png +0 -0
  396. package/example/babel.config.js +28 -0
  397. package/example/index.js +8 -0
  398. package/example/metro.config.js +18 -0
  399. package/example/package.json +25 -0
  400. package/example/src/App.tsx +8 -0
  401. package/example/tsconfig.json +6 -0
  402. package/package.json +2 -2
  403. package/src/features/chatbot/components/Chat/Chat.tsx +1 -2
  404. package/src/features/chatbot/components/Chat/ChatIcon.tsx +1 -2
  405. package/src/features/chatbot/components/Chat/CloseButton.tsx +0 -2
  406. package/src/features/chatbot/components/ChatControls/ChatControls.tsx +0 -2
  407. package/src/features/chatbot/components/ChatInput/FreeText/ChatTextInput.tsx +0 -2
  408. package/src/features/chatbot/components/ChatInput/FreeText/FreeTextInputBlock.tsx +1 -2
  409. package/src/features/chatbot/components/ChatInput/FreeText/SendMessageButton.tsx +0 -2
  410. package/src/features/chatbot/components/ChatInput/RequestHintButton.tsx +0 -2
  411. package/src/features/chatbot/components/ChatMessage/MessageLoader.tsx +2 -3
  412. package/src/features/chatbot/components/ChatMessage/MessageTextToSpeech.tsx +0 -2
  413. package/src/features/chatbot/components/ChatMessage/ReceivedMessage.tsx +1 -2
  414. package/src/features/chatbot/components/ChatMessage/SentMessage.tsx +0 -2
  415. package/src/features/chatbot/errorSpotting/ErrorSpottingButton.tsx +0 -2
  416. package/src/features/chatbot/errorSpotting/ErrorSpottingModel.ts +3 -1
  417. package/src/features/chatbot/helpers.ts +1 -0
  418. package/src/features/chatbot/model/ChatBotThreadManager.ts +44 -9
  419. package/src/features/chatbot/model/ThreadItem.ts +68 -19
  420. package/src/features/chatbot/types/api.types.ts +17 -2
  421. package/src/features/chatbot/types/model.types.ts +12 -2
  422. package/src/features/chatbot/types/units.types.ts +26 -0
  423. package/src/features/endOfAssignment/components/CheatDetected/CheatDetected.tsx +1 -3
  424. package/src/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.tsx +0 -2
  425. package/src/features/endOfAssignment/components/ExamLeave/ExamLeave.tsx +1 -3
  426. package/src/features/endOfAssignment/components/ExamPaused/ExamPaused.tsx +1 -3
  427. package/src/features/endOfAssignment/components/ExamSubmit/ExamSubmit.tsx +1 -3
  428. package/src/features/endOfAssignment/components/Modal/Modal.tsx +1 -6
  429. package/src/features/endOfAssignment/components/NoAnswer/NoAnswer.tsx +1 -6
  430. package/src/features/endOfAssignment/ui/PracticeButton.tsx +0 -2
  431. package/src/features/endOfAssignment/ui/PracticeButtonGroup.tsx +0 -2
  432. package/src/features/exampleSolution/components/ExampleSolutionModalContent.tsx +0 -2
  433. package/src/features/exampleSolution/components/QuestionSection.tsx +1 -2
  434. package/src/features/exampleSolution/components/SolutionSection.tsx +1 -5
  435. package/src/features/feedback/components/EmptyComment.tsx +1 -2
  436. package/src/features/feedback/components/ListCardCommentsCount.tsx +1 -2
  437. package/src/features/feedback/components/TeacherFeedbackButton.tsx +0 -3
  438. package/src/features/feedback/components/TeacherFeedbackComments/TeacherComment.tsx +1 -2
  439. package/src/features/feedback/components/UnreadMessagesBadge.tsx +0 -2
  440. package/src/features/formulaSheet/components/FormulaSheet.tsx +0 -2
  441. package/src/features/formulaSheet/components/FormulaSheetModal.tsx +1 -2
  442. package/src/features/keyboard/components/AlgebraLayout/AlgebraLayout.tsx +1 -2
  443. package/src/features/keyboard/components/BasicLayout/BasicLayout.tsx +1 -2
  444. package/src/features/keyboard/components/BasicLayout/CurrencyBasicLayout.tsx +1 -5
  445. package/src/features/keyboard/components/BasicLayout/TimeBasicLayout.tsx +13 -16
  446. package/src/features/keyboard/components/BasicPlusLayout/BasicPlusLayout.tsx +1 -2
  447. package/src/features/keyboard/components/BasicPlusPlusLayout/BasicPlusPlusLayout.tsx +1 -2
  448. package/src/features/keyboard/components/Keyboard.tsx +0 -2
  449. package/src/features/keyboard/components/MainLayout/MainLayout.tsx +1 -5
  450. package/src/features/keyboard/components/Numpad/Numpad.tsx +1 -2
  451. package/src/features/keyboard/components/UnderlinedLayout/UnderlinedLayout.tsx +1 -9
  452. package/src/features/keyboard/components/UnitsLayout/UnitsLayout.tsx +1 -2
  453. package/src/features/openEnded/components/OpenEndedAttemptsLimit.tsx +1 -2
  454. package/src/features/openEnded/components/OpenEndedScoreLabel.tsx +4 -2
  455. package/src/features/problemSelector/components/ProblemSelectorButton.tsx +0 -2
  456. package/src/features/voice/recording/components/VoiceRecordButton.tsx +0 -2
  457. package/src/features/voice/recording/components/VoiceRecordDeleteButton.tsx +1 -2
  458. package/src/features/voice/recording/components/VoiceRecordTimer.tsx +1 -2
  459. package/src/features/voice/recording/modal/ModalFooterButtons.tsx +0 -6
  460. package/src/features/voice/recording/modal/VoiceRecordDeleteModal.tsx +0 -4
  461. package/src/features/voice/recording/modal/VoiceRecordUndoModal.tsx +0 -4
  462. package/src/index.ts +0 -1
  463. package/src/shared/components/PlayButton.tsx +0 -1
  464. package/tsconfig.build.json +4 -0
  465. package/tsconfig.json +34 -0
  466. package/yarn.lock +10957 -0
  467. package/dist/commonjs/config/dataTestIDs.js +0 -66
  468. package/dist/commonjs/config/dataTestIDs.js.map +0 -1
  469. package/dist/module/config/dataTestIDs.js +0 -63
  470. package/dist/module/config/dataTestIDs.js.map +0 -1
  471. package/dist/typescript/commonjs/config/dataTestIDs.d.ts +0 -61
  472. package/dist/typescript/commonjs/config/dataTestIDs.d.ts.map +0 -1
  473. package/dist/typescript/module/config/dataTestIDs.d.ts +0 -61
  474. package/dist/typescript/module/config/dataTestIDs.d.ts.map +0 -1
  475. package/src/config/dataTestIDs.ts +0 -66
package/.editorconfig ADDED
@@ -0,0 +1,15 @@
1
+ # EditorConfig helps developers define and maintain consistent
2
+ # coding styles between different editors and IDEs
3
+ # editorconfig.org
4
+
5
+ root = true
6
+
7
+ [*]
8
+
9
+ indent_style = space
10
+ indent_size = 2
11
+
12
+ end_of_line = lf
13
+ charset = utf-8
14
+ trim_trailing_whitespace = true
15
+ insert_final_newline = true
package/.eslintignore ADDED
@@ -0,0 +1,2 @@
1
+ node_modules/
2
+ ./lib/
package/.eslintrc ADDED
@@ -0,0 +1,22 @@
1
+ {
2
+ "env": {
3
+ "browser": true,
4
+ "es2020": true
5
+ },
6
+ "extends": [
7
+ "eslint:recommended",
8
+ "plugin:@typescript-eslint/recommended",
9
+ "plugin:react-hooks/recommended",
10
+ "plugin:storybook/recommended",
11
+ "prettier"
12
+ ],
13
+ "parser": "@typescript-eslint/parser",
14
+ "parserOptions": {
15
+ "ecmaVersion": "latest",
16
+ "sourceType": "module"
17
+ },
18
+ "plugins": ["react-refresh"],
19
+ "rules": {
20
+ "react-refresh/only-export-components": "warn"
21
+ }
22
+ }
package/.gitattributes ADDED
@@ -0,0 +1,3 @@
1
+ *.pbxproj -text
2
+ # specific for windows script files
3
+ *.bat text eol=crlf
@@ -0,0 +1,37 @@
1
+ name: Setup
2
+ description: Setup Node.js and install dependencies
3
+
4
+ inputs:
5
+ npmrc-auth-token:
6
+ required: true
7
+
8
+ runs:
9
+ using: composite
10
+ steps:
11
+ - name: Setup Node.js
12
+ uses: actions/setup-node@v3
13
+ with:
14
+ node-version-file: .nvmrc
15
+
16
+ - name: Create .npmrc
17
+ shell: bash
18
+ run: |
19
+ echo "registry=https://registry.npmjs.org" > .npmrc
20
+ echo "//registry.npmjs.org/:_authToken=${{ inputs.npmrc-auth-token }}" >> .npmrc
21
+
22
+ - name: Cache dependencies
23
+ id: yarn-cache
24
+ uses: actions/cache@v3
25
+ with:
26
+ path: |
27
+ **/node_modules
28
+ .yarn/install-state.gz
29
+ key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}-${{ hashFiles('**/package.json', '!node_modules/**') }}
30
+ restore-keys: |
31
+ ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
32
+ ${{ runner.os }}-yarn-
33
+
34
+ - name: Install dependencies
35
+ if: steps.yarn-cache.outputs.cache-hit != 'true'
36
+ run: yarn install --immutable
37
+ shell: bash
@@ -0,0 +1,73 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+ pull_request:
8
+ branches:
9
+ - main
10
+ merge_group:
11
+ types:
12
+ - checks_requested
13
+
14
+ jobs:
15
+ lint:
16
+ runs-on: ubuntu-latest
17
+ steps:
18
+ - name: Checkout
19
+ uses: actions/checkout@v3
20
+
21
+ - name: Setup
22
+ uses: ./.github/actions/setup
23
+ with:
24
+ npmrc-auth-token: ${{ secrets.MAGMA_NPMRC_TOKEN }}
25
+
26
+ - name: Lint files
27
+ run: yarn lint
28
+
29
+ - name: Typecheck files
30
+ run: yarn typecheck
31
+
32
+ test:
33
+ runs-on: ubuntu-latest
34
+ steps:
35
+ - name: Checkout
36
+ uses: actions/checkout@v3
37
+
38
+ - name: Setup
39
+ uses: ./.github/actions/setup
40
+ with:
41
+ npmrc-auth-token: ${{ secrets.MAGMA_NPMRC_TOKEN }}
42
+
43
+ - name: Run unit tests
44
+ run: yarn test --maxWorkers=2 --coverage
45
+
46
+ build-library:
47
+ runs-on: ubuntu-latest
48
+ steps:
49
+ - name: Checkout
50
+ uses: actions/checkout@v3
51
+
52
+ - name: Setup
53
+ uses: ./.github/actions/setup
54
+ with:
55
+ npmrc-auth-token: ${{ secrets.MAGMA_NPMRC_TOKEN }}
56
+
57
+ - name: Build package
58
+ run: yarn prepare
59
+
60
+ build-web:
61
+ runs-on: ubuntu-latest
62
+ steps:
63
+ - name: Checkout
64
+ uses: actions/checkout@v3
65
+
66
+ - name: Setup
67
+ uses: ./.github/actions/setup
68
+ with:
69
+ npmrc-auth-token: ${{ secrets.MAGMA_NPMRC_TOKEN }}
70
+
71
+ - name: Build example for Web
72
+ run: |
73
+ yarn example expo export --platform web
package/.gitignore ADDED
@@ -0,0 +1,84 @@
1
+ # OSX
2
+ #
3
+ .DS_Store
4
+
5
+ # XDE
6
+ .expo/
7
+
8
+ # VSCode
9
+ .vscode/
10
+ jsconfig.json
11
+
12
+ # Xcode
13
+ #
14
+ build/
15
+ *.pbxuser
16
+ !default.pbxuser
17
+ *.mode1v3
18
+ !default.mode1v3
19
+ *.mode2v3
20
+ !default.mode2v3
21
+ *.perspectivev3
22
+ !default.perspectivev3
23
+ xcuserdata
24
+ *.xccheckout
25
+ *.moved-aside
26
+ DerivedData
27
+ *.hmap
28
+ *.ipa
29
+ *.xcuserstate
30
+ project.xcworkspace
31
+
32
+ # Android/IJ
33
+ #
34
+ .classpath
35
+ .cxx
36
+ .gradle
37
+ .idea
38
+ .project
39
+ .settings
40
+ local.properties
41
+ android.iml
42
+
43
+ # Cocoapods
44
+ #
45
+ example/ios/Pods
46
+
47
+ # Ruby
48
+ example/vendor/
49
+
50
+ # node.js
51
+ #
52
+ node_modules/
53
+ npm-debug.log
54
+ yarn-debug.log
55
+ yarn-error.log
56
+
57
+ # BUCK
58
+ buck-out/
59
+ \.buckd/
60
+ android/app/libs
61
+ android/keystores/debug.keystore
62
+
63
+ # Yarn
64
+ .yarn/*
65
+ !.yarn/patches
66
+ !.yarn/plugins
67
+ !.yarn/releases
68
+ !.yarn/sdks
69
+ !.yarn/versions
70
+
71
+ # Expo
72
+ .expo/
73
+
74
+ # Turborepo
75
+ .turbo/
76
+
77
+ # generated by bob
78
+ dist/
79
+ !src/lib/
80
+
81
+ # React Native Codegen
82
+ ios/generated
83
+ android/generated
84
+ .npmrc
package/.nvmrc ADDED
@@ -0,0 +1 @@
1
+ v18
package/.prettierrc ADDED
@@ -0,0 +1,11 @@
1
+ {
2
+ "printWidth": 100,
3
+ "semi": false,
4
+ "singleQuote": true,
5
+ "jsxSingleQuote": false,
6
+ "trailingComma": "all",
7
+ "bracketSameLine": false,
8
+ "arrowParens": "always",
9
+ "tabWidth": 2,
10
+ "endOfLine": "lf"
11
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "git": {
3
+ "commitMessage": "chore: release ${version}",
4
+ "tagName": "v${version}"
5
+ },
6
+ "npm": {
7
+ "publish": true
8
+ },
9
+ "github": {
10
+ "release": true
11
+ },
12
+ "plugins": {
13
+ "@release-it/conventional-changelog": {
14
+ "preset": "angular"
15
+ }
16
+ }
17
+ }
@@ -0,0 +1 @@
1
+ {}