@magmamath/students-features 0.6.12 → 0.6.14-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 (226) hide show
  1. package/dist/commonjs/features/chatbot/components/Alternatives/Alternatives.js +17 -5
  2. package/dist/commonjs/features/chatbot/components/Alternatives/Alternatives.js.map +1 -1
  3. package/dist/commonjs/features/chatbot/components/Alternatives/HelpRequestOption.js +148 -41
  4. package/dist/commonjs/features/chatbot/components/Alternatives/HelpRequestOption.js.map +1 -1
  5. package/dist/commonjs/features/chatbot/components/Alternatives/InputButton.js +110 -0
  6. package/dist/commonjs/features/chatbot/components/Alternatives/InputButton.js.map +1 -0
  7. package/dist/commonjs/features/chatbot/components/Alternatives/InputWithHintRow.js +159 -0
  8. package/dist/commonjs/features/chatbot/components/Alternatives/InputWithHintRow.js.map +1 -0
  9. package/dist/commonjs/features/chatbot/components/ChatMessage/MessageLoader.js +7 -4
  10. package/dist/commonjs/features/chatbot/components/ChatMessage/MessageLoader.js.map +1 -1
  11. package/dist/commonjs/features/chatbot/components/ChatMessages/ChatbotMessages.js +1 -1
  12. package/dist/commonjs/features/chatbot/components/ChatMessages/ChatbotMessages.js.map +1 -1
  13. package/dist/commonjs/features/exampleSolution/ExampleSolutionModal.js +31 -0
  14. package/dist/commonjs/features/exampleSolution/ExampleSolutionModal.js.map +1 -0
  15. package/dist/commonjs/features/exampleSolution/assets/grid.png +0 -0
  16. package/dist/commonjs/features/exampleSolution/components/ExampleSolutionModalContent.js +97 -0
  17. package/dist/commonjs/features/exampleSolution/components/ExampleSolutionModalContent.js.map +1 -0
  18. package/dist/commonjs/features/exampleSolution/components/LavaIcon.js +44 -0
  19. package/dist/commonjs/features/exampleSolution/components/LavaIcon.js.map +1 -0
  20. package/dist/commonjs/features/exampleSolution/components/MessageBlock.js +61 -0
  21. package/dist/commonjs/features/exampleSolution/components/MessageBlock.js.map +1 -0
  22. package/dist/commonjs/features/exampleSolution/components/QuestionSection.js +68 -0
  23. package/dist/commonjs/features/exampleSolution/components/QuestionSection.js.map +1 -0
  24. package/dist/commonjs/features/exampleSolution/components/SolutionSection.js +75 -0
  25. package/dist/commonjs/features/exampleSolution/components/SolutionSection.js.map +1 -0
  26. package/dist/commonjs/features/exampleSolution/constants.js +13 -0
  27. package/dist/commonjs/features/exampleSolution/constants.js.map +1 -0
  28. package/dist/commonjs/features/exampleSolution/hooks/useExampleSolution.js +61 -0
  29. package/dist/commonjs/features/exampleSolution/hooks/useExampleSolution.js.map +1 -0
  30. package/dist/commonjs/features/exampleSolution/index.js +39 -0
  31. package/dist/commonjs/features/exampleSolution/index.js.map +1 -0
  32. package/dist/commonjs/features/exampleSolution/model/ExampleSolution.model.js +22 -0
  33. package/dist/commonjs/features/exampleSolution/model/ExampleSolution.model.js.map +1 -0
  34. package/dist/commonjs/features/exampleSolution/model/ExampleSolutionApi.js +32 -0
  35. package/dist/commonjs/features/exampleSolution/model/ExampleSolutionApi.js.map +1 -0
  36. package/dist/commonjs/features/exampleSolution/model/ExampleSolutionCache.js +18 -0
  37. package/dist/commonjs/features/exampleSolution/model/ExampleSolutionCache.js.map +1 -0
  38. package/dist/commonjs/features/exampleSolution/types.js +6 -0
  39. package/dist/commonjs/features/exampleSolution/types.js.map +1 -0
  40. package/dist/commonjs/index.js +24 -0
  41. package/dist/commonjs/index.js.map +1 -1
  42. package/dist/commonjs/shared/icons/ExcitedLavaIcon.js +681 -0
  43. package/dist/commonjs/shared/icons/ExcitedLavaIcon.js.map +1 -0
  44. package/dist/commonjs/shared/icons/LavaIconInGlasses.js +616 -0
  45. package/dist/commonjs/shared/icons/LavaIconInGlasses.js.map +1 -0
  46. package/dist/commonjs/shared/icons/index.js +204 -0
  47. package/dist/commonjs/shared/icons/index.js.map +1 -0
  48. package/dist/commonjs/shared/translation/localization/ca.json +7 -1
  49. package/dist/commonjs/shared/translation/localization/en.json +8 -2
  50. package/dist/commonjs/shared/translation/localization/gb.json +7 -1
  51. package/dist/commonjs/shared/translation/localization/sct.json +7 -1
  52. package/dist/commonjs/shared/translation/localization/sw.json +7 -1
  53. package/dist/module/features/chatbot/components/Alternatives/Alternatives.js +17 -5
  54. package/dist/module/features/chatbot/components/Alternatives/Alternatives.js.map +1 -1
  55. package/dist/module/features/chatbot/components/Alternatives/HelpRequestOption.js +147 -41
  56. package/dist/module/features/chatbot/components/Alternatives/HelpRequestOption.js.map +1 -1
  57. package/dist/module/features/chatbot/components/Alternatives/InputButton.js +102 -0
  58. package/dist/module/features/chatbot/components/Alternatives/InputButton.js.map +1 -0
  59. package/dist/module/features/chatbot/components/Alternatives/InputWithHintRow.js +152 -0
  60. package/dist/module/features/chatbot/components/Alternatives/InputWithHintRow.js.map +1 -0
  61. package/dist/module/features/chatbot/components/ChatMessage/MessageLoader.js +7 -4
  62. package/dist/module/features/chatbot/components/ChatMessage/MessageLoader.js.map +1 -1
  63. package/dist/module/features/chatbot/components/ChatMessages/ChatbotMessages.js +1 -1
  64. package/dist/module/features/chatbot/components/ChatMessages/ChatbotMessages.js.map +1 -1
  65. package/dist/module/features/exampleSolution/ExampleSolutionModal.js +25 -0
  66. package/dist/module/features/exampleSolution/ExampleSolutionModal.js.map +1 -0
  67. package/dist/module/features/exampleSolution/assets/grid.png +0 -0
  68. package/dist/module/features/exampleSolution/components/ExampleSolutionModalContent.js +91 -0
  69. package/dist/module/features/exampleSolution/components/ExampleSolutionModalContent.js.map +1 -0
  70. package/dist/module/features/exampleSolution/components/LavaIcon.js +36 -0
  71. package/dist/module/features/exampleSolution/components/LavaIcon.js.map +1 -0
  72. package/dist/module/features/exampleSolution/components/MessageBlock.js +53 -0
  73. package/dist/module/features/exampleSolution/components/MessageBlock.js.map +1 -0
  74. package/dist/module/features/exampleSolution/components/QuestionSection.js +60 -0
  75. package/dist/module/features/exampleSolution/components/QuestionSection.js.map +1 -0
  76. package/dist/module/features/exampleSolution/components/SolutionSection.js +67 -0
  77. package/dist/module/features/exampleSolution/components/SolutionSection.js.map +1 -0
  78. package/dist/module/features/exampleSolution/constants.js +9 -0
  79. package/dist/module/features/exampleSolution/constants.js.map +1 -0
  80. package/dist/module/features/exampleSolution/hooks/useExampleSolution.js +56 -0
  81. package/dist/module/features/exampleSolution/hooks/useExampleSolution.js.map +1 -0
  82. package/dist/module/features/exampleSolution/index.js +6 -0
  83. package/dist/module/features/exampleSolution/index.js.map +1 -0
  84. package/dist/module/features/exampleSolution/model/ExampleSolution.model.js +17 -0
  85. package/dist/module/features/exampleSolution/model/ExampleSolution.model.js.map +1 -0
  86. package/dist/module/features/exampleSolution/model/ExampleSolutionApi.js +27 -0
  87. package/dist/module/features/exampleSolution/model/ExampleSolutionApi.js.map +1 -0
  88. package/dist/module/features/exampleSolution/model/ExampleSolutionCache.js +13 -0
  89. package/dist/module/features/exampleSolution/model/ExampleSolutionCache.js.map +1 -0
  90. package/dist/module/features/exampleSolution/types.js +4 -0
  91. package/dist/module/features/exampleSolution/types.js.map +1 -0
  92. package/dist/module/index.js +2 -0
  93. package/dist/module/index.js.map +1 -1
  94. package/dist/module/shared/icons/ExcitedLavaIcon.js +673 -0
  95. package/dist/module/shared/icons/ExcitedLavaIcon.js.map +1 -0
  96. package/dist/module/shared/icons/LavaIconInGlasses.js +608 -0
  97. package/dist/module/shared/icons/LavaIconInGlasses.js.map +1 -0
  98. package/dist/module/shared/icons/index.js +21 -0
  99. package/dist/module/shared/icons/index.js.map +1 -0
  100. package/dist/module/shared/translation/localization/ca.json +7 -1
  101. package/dist/module/shared/translation/localization/en.json +8 -2
  102. package/dist/module/shared/translation/localization/gb.json +7 -1
  103. package/dist/module/shared/translation/localization/sct.json +7 -1
  104. package/dist/module/shared/translation/localization/sw.json +7 -1
  105. package/dist/typescript/commonjs/features/chatbot/components/Alternatives/Alternatives.d.ts.map +1 -1
  106. package/dist/typescript/commonjs/features/chatbot/components/Alternatives/HelpRequestOption.d.ts +3 -1
  107. package/dist/typescript/commonjs/features/chatbot/components/Alternatives/HelpRequestOption.d.ts.map +1 -1
  108. package/dist/typescript/commonjs/features/chatbot/components/Alternatives/InputButton.d.ts +9 -0
  109. package/dist/typescript/commonjs/features/chatbot/components/Alternatives/InputButton.d.ts.map +1 -0
  110. package/dist/typescript/commonjs/features/chatbot/components/Alternatives/InputWithHintRow.d.ts +10 -0
  111. package/dist/typescript/commonjs/features/chatbot/components/Alternatives/InputWithHintRow.d.ts.map +1 -0
  112. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/MessageLoader.d.ts.map +1 -1
  113. package/dist/typescript/commonjs/features/exampleSolution/ExampleSolutionModal.d.ts +11 -0
  114. package/dist/typescript/commonjs/features/exampleSolution/ExampleSolutionModal.d.ts.map +1 -0
  115. package/dist/typescript/commonjs/features/exampleSolution/components/ExampleSolutionModalContent.d.ts +4 -0
  116. package/dist/typescript/commonjs/features/exampleSolution/components/ExampleSolutionModalContent.d.ts.map +1 -0
  117. package/dist/typescript/commonjs/features/exampleSolution/components/LavaIcon.d.ts +10 -0
  118. package/dist/typescript/commonjs/features/exampleSolution/components/LavaIcon.d.ts.map +1 -0
  119. package/dist/typescript/commonjs/features/exampleSolution/components/MessageBlock.d.ts +10 -0
  120. package/dist/typescript/commonjs/features/exampleSolution/components/MessageBlock.d.ts.map +1 -0
  121. package/dist/typescript/commonjs/features/exampleSolution/components/QuestionSection.d.ts +9 -0
  122. package/dist/typescript/commonjs/features/exampleSolution/components/QuestionSection.d.ts.map +1 -0
  123. package/dist/typescript/commonjs/features/exampleSolution/components/SolutionSection.d.ts +9 -0
  124. package/dist/typescript/commonjs/features/exampleSolution/components/SolutionSection.d.ts.map +1 -0
  125. package/dist/typescript/commonjs/features/exampleSolution/constants.d.ts +6 -0
  126. package/dist/typescript/commonjs/features/exampleSolution/constants.d.ts.map +1 -0
  127. package/dist/typescript/commonjs/features/exampleSolution/hooks/useExampleSolution.d.ts +9 -0
  128. package/dist/typescript/commonjs/features/exampleSolution/hooks/useExampleSolution.d.ts.map +1 -0
  129. package/dist/typescript/commonjs/features/exampleSolution/index.d.ts +4 -0
  130. package/dist/typescript/commonjs/features/exampleSolution/index.d.ts.map +1 -0
  131. package/dist/typescript/commonjs/features/exampleSolution/model/ExampleSolution.model.d.ts +9 -0
  132. package/dist/typescript/commonjs/features/exampleSolution/model/ExampleSolution.model.d.ts.map +1 -0
  133. package/dist/typescript/commonjs/features/exampleSolution/model/ExampleSolutionApi.d.ts +13 -0
  134. package/dist/typescript/commonjs/features/exampleSolution/model/ExampleSolutionApi.d.ts.map +1 -0
  135. package/dist/typescript/commonjs/features/exampleSolution/model/ExampleSolutionCache.d.ts +11 -0
  136. package/dist/typescript/commonjs/features/exampleSolution/model/ExampleSolutionCache.d.ts.map +1 -0
  137. package/dist/typescript/commonjs/features/exampleSolution/types.d.ts +26 -0
  138. package/dist/typescript/commonjs/features/exampleSolution/types.d.ts.map +1 -0
  139. package/dist/typescript/commonjs/index.d.ts +2 -0
  140. package/dist/typescript/commonjs/index.d.ts.map +1 -1
  141. package/dist/typescript/commonjs/shared/icons/ExcitedLavaIcon.d.ts +4 -0
  142. package/dist/typescript/commonjs/shared/icons/ExcitedLavaIcon.d.ts.map +1 -0
  143. package/dist/typescript/commonjs/shared/icons/LavaIconInGlasses.d.ts +4 -0
  144. package/dist/typescript/commonjs/shared/icons/LavaIconInGlasses.d.ts.map +1 -0
  145. package/dist/typescript/commonjs/shared/icons/index.d.ts +19 -0
  146. package/dist/typescript/commonjs/shared/icons/index.d.ts.map +1 -0
  147. package/dist/typescript/commonjs/shared/translation/constants.d.ts +30 -0
  148. package/dist/typescript/commonjs/shared/translation/constants.d.ts.map +1 -1
  149. package/dist/typescript/commonjs/shared/translation/model.d.ts +12 -0
  150. package/dist/typescript/commonjs/shared/translation/model.d.ts.map +1 -1
  151. package/dist/typescript/module/features/chatbot/components/Alternatives/Alternatives.d.ts.map +1 -1
  152. package/dist/typescript/module/features/chatbot/components/Alternatives/HelpRequestOption.d.ts +3 -1
  153. package/dist/typescript/module/features/chatbot/components/Alternatives/HelpRequestOption.d.ts.map +1 -1
  154. package/dist/typescript/module/features/chatbot/components/Alternatives/InputButton.d.ts +9 -0
  155. package/dist/typescript/module/features/chatbot/components/Alternatives/InputButton.d.ts.map +1 -0
  156. package/dist/typescript/module/features/chatbot/components/Alternatives/InputWithHintRow.d.ts +10 -0
  157. package/dist/typescript/module/features/chatbot/components/Alternatives/InputWithHintRow.d.ts.map +1 -0
  158. package/dist/typescript/module/features/chatbot/components/ChatMessage/MessageLoader.d.ts.map +1 -1
  159. package/dist/typescript/module/features/exampleSolution/ExampleSolutionModal.d.ts +11 -0
  160. package/dist/typescript/module/features/exampleSolution/ExampleSolutionModal.d.ts.map +1 -0
  161. package/dist/typescript/module/features/exampleSolution/components/ExampleSolutionModalContent.d.ts +4 -0
  162. package/dist/typescript/module/features/exampleSolution/components/ExampleSolutionModalContent.d.ts.map +1 -0
  163. package/dist/typescript/module/features/exampleSolution/components/LavaIcon.d.ts +10 -0
  164. package/dist/typescript/module/features/exampleSolution/components/LavaIcon.d.ts.map +1 -0
  165. package/dist/typescript/module/features/exampleSolution/components/MessageBlock.d.ts +10 -0
  166. package/dist/typescript/module/features/exampleSolution/components/MessageBlock.d.ts.map +1 -0
  167. package/dist/typescript/module/features/exampleSolution/components/QuestionSection.d.ts +9 -0
  168. package/dist/typescript/module/features/exampleSolution/components/QuestionSection.d.ts.map +1 -0
  169. package/dist/typescript/module/features/exampleSolution/components/SolutionSection.d.ts +9 -0
  170. package/dist/typescript/module/features/exampleSolution/components/SolutionSection.d.ts.map +1 -0
  171. package/dist/typescript/module/features/exampleSolution/constants.d.ts +6 -0
  172. package/dist/typescript/module/features/exampleSolution/constants.d.ts.map +1 -0
  173. package/dist/typescript/module/features/exampleSolution/hooks/useExampleSolution.d.ts +9 -0
  174. package/dist/typescript/module/features/exampleSolution/hooks/useExampleSolution.d.ts.map +1 -0
  175. package/dist/typescript/module/features/exampleSolution/index.d.ts +4 -0
  176. package/dist/typescript/module/features/exampleSolution/index.d.ts.map +1 -0
  177. package/dist/typescript/module/features/exampleSolution/model/ExampleSolution.model.d.ts +9 -0
  178. package/dist/typescript/module/features/exampleSolution/model/ExampleSolution.model.d.ts.map +1 -0
  179. package/dist/typescript/module/features/exampleSolution/model/ExampleSolutionApi.d.ts +13 -0
  180. package/dist/typescript/module/features/exampleSolution/model/ExampleSolutionApi.d.ts.map +1 -0
  181. package/dist/typescript/module/features/exampleSolution/model/ExampleSolutionCache.d.ts +11 -0
  182. package/dist/typescript/module/features/exampleSolution/model/ExampleSolutionCache.d.ts.map +1 -0
  183. package/dist/typescript/module/features/exampleSolution/types.d.ts +26 -0
  184. package/dist/typescript/module/features/exampleSolution/types.d.ts.map +1 -0
  185. package/dist/typescript/module/index.d.ts +2 -0
  186. package/dist/typescript/module/index.d.ts.map +1 -1
  187. package/dist/typescript/module/shared/icons/ExcitedLavaIcon.d.ts +4 -0
  188. package/dist/typescript/module/shared/icons/ExcitedLavaIcon.d.ts.map +1 -0
  189. package/dist/typescript/module/shared/icons/LavaIconInGlasses.d.ts +4 -0
  190. package/dist/typescript/module/shared/icons/LavaIconInGlasses.d.ts.map +1 -0
  191. package/dist/typescript/module/shared/icons/index.d.ts +19 -0
  192. package/dist/typescript/module/shared/icons/index.d.ts.map +1 -0
  193. package/dist/typescript/module/shared/translation/constants.d.ts +30 -0
  194. package/dist/typescript/module/shared/translation/constants.d.ts.map +1 -1
  195. package/dist/typescript/module/shared/translation/model.d.ts +12 -0
  196. package/dist/typescript/module/shared/translation/model.d.ts.map +1 -1
  197. package/package.json +6 -2
  198. package/src/features/chatbot/components/Alternatives/Alternatives.tsx +18 -8
  199. package/src/features/chatbot/components/Alternatives/HelpRequestOption.tsx +146 -35
  200. package/src/features/chatbot/components/Alternatives/InputButton.tsx +101 -0
  201. package/src/features/chatbot/components/Alternatives/InputWithHintRow.tsx +157 -0
  202. package/src/features/chatbot/components/ChatMessage/MessageLoader.tsx +6 -2
  203. package/src/features/chatbot/components/ChatMessages/ChatbotMessages.tsx +1 -1
  204. package/src/features/exampleSolution/ExampleSolutionModal.tsx +29 -0
  205. package/src/features/exampleSolution/assets/grid.png +0 -0
  206. package/src/features/exampleSolution/components/ExampleSolutionModalContent.tsx +71 -0
  207. package/src/features/exampleSolution/components/LavaIcon.tsx +35 -0
  208. package/src/features/exampleSolution/components/MessageBlock.tsx +67 -0
  209. package/src/features/exampleSolution/components/QuestionSection.tsx +56 -0
  210. package/src/features/exampleSolution/components/SolutionSection.tsx +69 -0
  211. package/src/features/exampleSolution/constants.ts +5 -0
  212. package/src/features/exampleSolution/hooks/useExampleSolution.ts +66 -0
  213. package/src/features/exampleSolution/index.ts +3 -0
  214. package/src/features/exampleSolution/model/ExampleSolution.model.ts +12 -0
  215. package/src/features/exampleSolution/model/ExampleSolutionApi.ts +33 -0
  216. package/src/features/exampleSolution/model/ExampleSolutionCache.ts +20 -0
  217. package/src/features/exampleSolution/types.ts +26 -0
  218. package/src/index.ts +2 -0
  219. package/src/shared/icons/ExcitedLavaIcon.tsx +541 -0
  220. package/src/shared/icons/LavaIconInGlasses.tsx +489 -0
  221. package/src/shared/icons/index.ts +18 -0
  222. package/src/shared/translation/localization/ca.json +7 -1
  223. package/src/shared/translation/localization/en.json +8 -2
  224. package/src/shared/translation/localization/gb.json +7 -1
  225. package/src/shared/translation/localization/sct.json +7 -1
  226. package/src/shared/translation/localization/sw.json +7 -1
@@ -1,10 +1,12 @@
1
1
  import React from 'react';
2
+ import { SharedValue } from 'react-native-reanimated';
2
3
  type HelpRequestOptionProps = {
3
4
  onPress: () => void;
4
5
  message: string;
5
6
  disabled: boolean;
6
7
  hoverColor?: string;
8
+ visibleSv: SharedValue<number>;
7
9
  };
8
- export declare const HelpRequestOption: ({ onPress, message, disabled, hoverColor, }: HelpRequestOptionProps) => React.JSX.Element;
10
+ export declare const HelpRequestOption: ({ onPress, message, disabled, hoverColor, visibleSv, }: HelpRequestOptionProps) => React.JSX.Element;
9
11
  export {};
10
12
  //# sourceMappingURL=HelpRequestOption.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"HelpRequestOption.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/chatbot/components/Alternatives/HelpRequestOption.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAA;AAK1D,KAAK,sBAAsB,GAAG;IAC5B,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,OAAO,EAAE,MAAM,CAAA;IACf,QAAQ,EAAE,OAAO,CAAA;IACjB,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB,CAAA;AAED,eAAO,MAAM,iBAAiB,gDAK3B,sBAAsB,sBAyCxB,CAAA"}
1
+ {"version":3,"file":"HelpRequestOption.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/chatbot/components/Alternatives/HelpRequestOption.tsx"],"names":[],"mappings":"AA4FA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAiB,EAKf,WAAW,EACZ,MAAM,yBAAyB,CAAA;AAGhC,KAAK,sBAAsB,GAAG;IAC5B,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,OAAO,EAAE,MAAM,CAAA;IACf,QAAQ,EAAE,OAAO,CAAA;IACjB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,SAAS,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;CAC/B,CAAA;AAED,eAAO,MAAM,iBAAiB,2DAM3B,sBAAsB,sBAoDxB,CAAA"}
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ type HelpRequestOptionProps = {
3
+ onPress: () => void;
4
+ disabled: boolean;
5
+ hoverColor?: string;
6
+ };
7
+ export declare const InputButton: ({ onPress, disabled, hoverColor, }: HelpRequestOptionProps) => React.JSX.Element;
8
+ export {};
9
+ //# sourceMappingURL=InputButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InputButton.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/chatbot/components/Alternatives/InputButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAUzB,KAAK,sBAAsB,GAAG;IAC5B,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,QAAQ,EAAE,OAAO,CAAA;IACjB,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB,CAAA;AAED,eAAO,MAAM,WAAW,uCAIrB,sBAAsB,sBAiDxB,CAAA"}
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ type InputWithHintRowProps = {
3
+ onPress: () => void;
4
+ message: string;
5
+ disabled: boolean;
6
+ hoverColor?: string;
7
+ };
8
+ export declare const InputWithHintRow: ({ onPress, message, disabled, hoverColor, }: InputWithHintRowProps) => React.JSX.Element;
9
+ export {};
10
+ //# sourceMappingURL=InputWithHintRow.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InputWithHintRow.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/chatbot/components/Alternatives/InputWithHintRow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAA;AAcvC,KAAK,qBAAqB,GAAG;IAC3B,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,OAAO,EAAE,MAAM,CAAA;IACf,QAAQ,EAAE,OAAO,CAAA;IACjB,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB,CAAA;AAED,eAAO,MAAM,gBAAgB,gDAK1B,qBAAqB,sBAsFvB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"MessageLoader.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/chatbot/components/ChatMessage/MessageLoader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAOzB,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAErD,KAAK,kBAAkB,GAAG;IACxB,WAAW,CAAC,EAAE,WAAW,CAAA;CAC1B,CAAA;AAED,eAAO,MAAM,aAAa,oBAAwC,kBAAkB,sBASnF,CAAA"}
1
+ {"version":3,"file":"MessageLoader.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/chatbot/components/ChatMessage/MessageLoader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAOzB,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAGrD,KAAK,kBAAkB,GAAG;IACxB,WAAW,CAAC,EAAE,WAAW,CAAA;CAC1B,CAAA;AAED,eAAO,MAAM,aAAa,oBAAwC,kBAAkB,sBASnF,CAAA"}
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { ExampleSolutionModalParams } from './types';
3
+ type ExampleSolutionModalComponentProps = {
4
+ modal: {
5
+ closeModal: () => void;
6
+ params: ExampleSolutionModalParams;
7
+ };
8
+ };
9
+ export declare const ExampleSolutionModal: ({ modal: { closeModal, params }, }: ExampleSolutionModalComponentProps) => React.JSX.Element;
10
+ export {};
11
+ //# sourceMappingURL=ExampleSolutionModal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExampleSolutionModal.d.ts","sourceRoot":"","sources":["../../../../../src/features/exampleSolution/ExampleSolutionModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,EAAE,0BAA0B,EAAE,MAAM,SAAS,CAAA;AAEpD,KAAK,kCAAkC,GAAG;IACxC,KAAK,EAAE;QACL,UAAU,EAAE,MAAM,IAAI,CAAA;QACtB,MAAM,EAAE,0BAA0B,CAAA;KACnC,CAAA;CACF,CAAA;AAED,eAAO,MAAM,oBAAoB,uCAE9B,kCAAkC,sBAcpC,CAAA"}
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { ExampleSolutionModalParams } from '../types';
3
+ export declare const ExampleSolutionModalContent: ({ model, payload, cacheKey, }: ExampleSolutionModalParams) => React.JSX.Element;
4
+ //# sourceMappingURL=ExampleSolutionModalContent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExampleSolutionModalContent.d.ts","sourceRoot":"","sources":["../../../../../../src/features/exampleSolution/components/ExampleSolutionModalContent.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AAMzB,OAAO,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAA;AAKrD,eAAO,MAAM,2BAA2B,kCAIrC,0BAA0B,sBAiB5B,CAAA"}
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { StyleProp, ViewStyle } from 'react-native';
3
+ import { ExampleSolutionStatuses } from '../constants';
4
+ type LavaIconProps = {
5
+ status: ExampleSolutionStatuses;
6
+ style?: StyleProp<ViewStyle>;
7
+ };
8
+ export declare const LavaIcon: ({ status, style }: LavaIconProps) => React.JSX.Element;
9
+ export {};
10
+ //# sourceMappingURL=LavaIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LavaIcon.d.ts","sourceRoot":"","sources":["../../../../../../src/features/exampleSolution/components/LavaIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AACnD,OAAO,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAA;AAItD,KAAK,aAAa,GAAG;IACnB,MAAM,EAAE,uBAAuB,CAAA;IAC/B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAA;CAC7B,CAAA;AAED,eAAO,MAAM,QAAQ,sBAAuB,aAAa,sBAoBxD,CAAA"}
@@ -0,0 +1,10 @@
1
+ import { StyleProp, ViewStyle } from 'react-native';
2
+ import React from 'react';
3
+ import { ExampleSolutionStatuses } from '../constants';
4
+ type MessageBlockProps = {
5
+ status: ExampleSolutionStatuses;
6
+ style?: StyleProp<ViewStyle>;
7
+ };
8
+ export declare const MessageBlock: ({ status, style }: MessageBlockProps) => React.JSX.Element | null;
9
+ export {};
10
+ //# sourceMappingURL=MessageBlock.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MessageBlock.d.ts","sourceRoot":"","sources":["../../../../../../src/features/exampleSolution/components/MessageBlock.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAc,SAAS,EAAE,MAAM,cAAc,CAAA;AAC/D,OAAO,KAAK,MAAM,OAAO,CAAA;AAUzB,OAAO,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAA;AAEtD,KAAK,iBAAiB,GAAG;IACvB,MAAM,EAAE,uBAAuB,CAAA;IAC/B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAA;CAC7B,CAAA;AAED,eAAO,MAAM,YAAY,sBAAuB,iBAAiB,6BA0BhE,CAAA"}
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { ExampleSolutionStatuses } from '../constants';
3
+ type QuestionSectionProps = {
4
+ question?: string;
5
+ status: ExampleSolutionStatuses;
6
+ };
7
+ export declare const QuestionSection: ({ question, status }: QuestionSectionProps) => React.JSX.Element;
8
+ export {};
9
+ //# sourceMappingURL=QuestionSection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QuestionSection.d.ts","sourceRoot":"","sources":["../../../../../../src/features/exampleSolution/components/QuestionSection.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAA;AAEtD,KAAK,oBAAoB,GAAG;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,MAAM,EAAE,uBAAuB,CAAA;CAChC,CAAA;AAED,eAAO,MAAM,eAAe,yBAA0B,oBAAoB,sBAazE,CAAA"}
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { ExampleSolutionStatuses } from '../constants';
3
+ type SolutionSectionProps = {
4
+ answer?: string;
5
+ status: ExampleSolutionStatuses;
6
+ };
7
+ export declare const SolutionSection: ({ answer, status }: SolutionSectionProps) => React.JSX.Element;
8
+ export {};
9
+ //# sourceMappingURL=SolutionSection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SolutionSection.d.ts","sourceRoot":"","sources":["../../../../../../src/features/exampleSolution/components/SolutionSection.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAA;AAGtD,KAAK,oBAAoB,GAAG;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,uBAAuB,CAAA;CAChC,CAAA;AAID,eAAO,MAAM,eAAe,uBAAwB,oBAAoB,sBAsBvE,CAAA"}
@@ -0,0 +1,6 @@
1
+ export declare const enum ExampleSolutionStatuses {
2
+ LOADING = "loading",
3
+ DONE_DATA = "doneData",
4
+ CACHE = "cache"
5
+ }
6
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/features/exampleSolution/constants.ts"],"names":[],"mappings":"AAAA,0BAAkB,uBAAuB;IACvC,OAAO,YAAY;IACnB,SAAS,aAAa;IACtB,KAAK,UAAU;CAChB"}
@@ -0,0 +1,9 @@
1
+ import { ExampleSolutionModalParams, ExampleSolutionResponse } from '../types';
2
+ import { ExampleSolutionStatuses } from '../constants';
3
+ type UseExampleSolutionReturn = {
4
+ result: ExampleSolutionResponse | null;
5
+ status: ExampleSolutionStatuses;
6
+ };
7
+ export declare const useExampleSolution: ({ model, payload, cacheKey, }: ExampleSolutionModalParams) => UseExampleSolutionReturn;
8
+ export {};
9
+ //# sourceMappingURL=useExampleSolution.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useExampleSolution.d.ts","sourceRoot":"","sources":["../../../../../../src/features/exampleSolution/hooks/useExampleSolution.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,0BAA0B,EAAE,uBAAuB,EAAE,MAAM,UAAU,CAAA;AAC9E,OAAO,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAA;AAItD,KAAK,wBAAwB,GAAG;IAC9B,MAAM,EAAE,uBAAuB,GAAG,IAAI,CAAA;IACtC,MAAM,EAAE,uBAAuB,CAAA;CAChC,CAAA;AAED,eAAO,MAAM,kBAAkB,kCAI5B,0BAA0B,KAAG,wBAiD/B,CAAA"}
@@ -0,0 +1,4 @@
1
+ export * from './ExampleSolutionModal';
2
+ export * from './model/ExampleSolution.model';
3
+ export * from './types';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/exampleSolution/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAA;AACtC,cAAc,+BAA+B,CAAA;AAC7C,cAAc,SAAS,CAAA"}
@@ -0,0 +1,9 @@
1
+ import { GifCelebrationsModelProps } from '../types';
2
+ import { ExampleSolutionsApi } from './ExampleSolutionApi';
3
+ import { ExampleSolutionCache } from './ExampleSolutionCache';
4
+ export declare class ExampleSolutionModel {
5
+ readonly api: ExampleSolutionsApi;
6
+ readonly cache: ExampleSolutionCache;
7
+ constructor({ api, errorHandler }: GifCelebrationsModelProps);
8
+ }
9
+ //# sourceMappingURL=ExampleSolution.model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExampleSolution.model.d.ts","sourceRoot":"","sources":["../../../../../../src/features/exampleSolution/model/ExampleSolution.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,UAAU,CAAA;AACpD,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAC1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAE7D,qBAAa,oBAAoB;IAC/B,SAAgB,GAAG,sBAAA;IACnB,SAAgB,KAAK,uBAA6B;gBAEtC,EAAE,GAAG,EAAE,YAAY,EAAE,EAAE,yBAAyB;CAG7D"}
@@ -0,0 +1,13 @@
1
+ import { ExampleSolutionApiRequests, ExampleSolutionErrorHandler } from '../types';
2
+ type ExampleSolutionApiProps = {
3
+ api: ExampleSolutionApiRequests;
4
+ errorHandler?: ExampleSolutionErrorHandler;
5
+ };
6
+ export declare class ExampleSolutionsApi {
7
+ readonly generateExampleSolutionFx: import("./../../../lib/effector/createControllerEffect").ControlledEffect<import("../types").ExampleSolutionPayload, import("../types").ExampleSolutionResponse>;
8
+ readonly errorHandlerFx?: ExampleSolutionErrorHandler;
9
+ readonly errorHandlingFx: import("effector").Effect<void, void, Error>;
10
+ constructor({ api, errorHandler }: ExampleSolutionApiProps);
11
+ }
12
+ export {};
13
+ //# sourceMappingURL=ExampleSolutionApi.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExampleSolutionApi.d.ts","sourceRoot":"","sources":["../../../../../../src/features/exampleSolution/model/ExampleSolutionApi.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,2BAA2B,EAAE,MAAM,UAAU,CAAA;AAIlF,KAAK,uBAAuB,GAAG;IAC7B,GAAG,EAAE,0BAA0B,CAAA;IAC/B,YAAY,CAAC,EAAE,2BAA2B,CAAA;CAC3C,CAAA;AAED,qBAAa,mBAAmB;IAC9B,SAAgB,yBAAyB,mKAAA;IACzC,SAAgB,cAAc,CAAC,EAAE,2BAA2B,CAAA;IAE5D,SAAgB,eAAe,+CAO7B;gBAEU,EAAE,GAAG,EAAE,YAAY,EAAE,EAAE,uBAAuB;CAS3D"}
@@ -0,0 +1,11 @@
1
+ import { ExampleSolutionResponse } from '../types';
2
+ type AddExampleSolution = {
3
+ cacheKey: string;
4
+ response: ExampleSolutionResponse;
5
+ };
6
+ export declare class ExampleSolutionCache {
7
+ readonly addExampleSolution: import("effector").EventCallable<AddExampleSolution>;
8
+ readonly $state: import("effector").StoreWritable<Record<string, ExampleSolutionResponse>>;
9
+ }
10
+ export {};
11
+ //# sourceMappingURL=ExampleSolutionCache.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExampleSolutionCache.d.ts","sourceRoot":"","sources":["../../../../../../src/features/exampleSolution/model/ExampleSolutionCache.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAE,MAAM,UAAU,CAAA;AAElD,KAAK,kBAAkB,GAAG;IACxB,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,uBAAuB,CAAA;CAClC,CAAA;AAED,qBAAa,oBAAoB;IAC/B,SAAgB,kBAAkB,uDAAoC;IACtE,SAAgB,MAAM,4EAQrB;CACF"}
@@ -0,0 +1,26 @@
1
+ import { ExampleSolutionModel } from './model/ExampleSolution.model';
2
+ export type ExampleSolutionPayload = {
3
+ question: string;
4
+ answer: string;
5
+ language: string;
6
+ altText?: string;
7
+ imageCdnId?: string;
8
+ };
9
+ export type ExampleSolutionResponse = {
10
+ question: string;
11
+ answer: string;
12
+ };
13
+ export type ExampleSolutionApiRequests = {
14
+ generateExampleSolution: (body: ExampleSolutionPayload) => Promise<ExampleSolutionResponse>;
15
+ };
16
+ export type ExampleSolutionErrorHandler = (errorMessage: string) => void;
17
+ export type GifCelebrationsModelProps = {
18
+ api: ExampleSolutionApiRequests;
19
+ errorHandler?: ExampleSolutionErrorHandler;
20
+ };
21
+ export type ExampleSolutionModalParams = {
22
+ cacheKey: string;
23
+ payload: ExampleSolutionPayload;
24
+ model: ExampleSolutionModel;
25
+ };
26
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/features/exampleSolution/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAA;AAEpE,MAAM,MAAM,sBAAsB,GAAG;IACnC,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;IAChB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB,CAAA;AACD,MAAM,MAAM,uBAAuB,GAAG;IACpC,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,EAAE,MAAM,CAAA;CACf,CAAA;AACD,MAAM,MAAM,0BAA0B,GAAG;IACvC,uBAAuB,EAAE,CAAC,IAAI,EAAE,sBAAsB,KAAK,OAAO,CAAC,uBAAuB,CAAC,CAAA;CAC5F,CAAA;AACD,MAAM,MAAM,2BAA2B,GAAG,CAAC,YAAY,EAAE,MAAM,KAAK,IAAI,CAAA;AACxE,MAAM,MAAM,yBAAyB,GAAG;IACtC,GAAG,EAAE,0BAA0B,CAAA;IAC/B,YAAY,CAAC,EAAE,2BAA2B,CAAA;CAC3C,CAAA;AACD,MAAM,MAAM,0BAA0B,GAAG;IACvC,QAAQ,EAAE,MAAM,CAAA;IAChB,OAAO,EAAE,sBAAsB,CAAA;IAC/B,KAAK,EAAE,oBAAoB,CAAA;CAC5B,CAAA"}
@@ -7,4 +7,6 @@ export * from './features/endOfAssignment';
7
7
  export * from './features/formulaSheet';
8
8
  export * from './features/problemSelector';
9
9
  export * from './features/gifCelebrations';
10
+ export * from './features/exampleSolution';
11
+ export * from './shared/icons';
10
12
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAA;AAC/F,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AACxD,cAAc,oBAAoB,CAAA;AAClC,cAAc,qBAAqB,CAAA;AACnC,cAAc,yBAAyB,CAAA;AACvC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,yBAAyB,CAAA;AACvC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,4BAA4B,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAA;AAC/F,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AACxD,cAAc,oBAAoB,CAAA;AAClC,cAAc,qBAAqB,CAAA;AACnC,cAAc,yBAAyB,CAAA;AACvC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,yBAAyB,CAAA;AACvC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,4BAA4B,CAAA;AAC1C,cAAc,4BAA4B,CAAA;AAC1C,cAAc,gBAAgB,CAAA"}
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { IconProps } from './icon.types';
3
+ export declare const ExcitedLavaIcon: ({ width, height }: IconProps) => React.JSX.Element;
4
+ //# sourceMappingURL=ExcitedLavaIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExcitedLavaIcon.d.ts","sourceRoot":"","sources":["../../../../../src/shared/icons/ExcitedLavaIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAExC,eAAO,MAAM,eAAe,sBAAkC,SAAS,sBAwhBtE,CAAA"}
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { IconProps } from './icon.types';
3
+ export declare const LavaIconInGlasses: ({ width, height }: IconProps) => React.JSX.Element;
4
+ //# sourceMappingURL=LavaIconInGlasses.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LavaIconInGlasses.d.ts","sourceRoot":"","sources":["../../../../../src/shared/icons/LavaIconInGlasses.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAUzB,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAExC,eAAO,MAAM,iBAAiB,sBAAkC,SAAS,sBA4dxE,CAAA"}
@@ -0,0 +1,19 @@
1
+ export * from './ArrowRightIcon';
2
+ export * from './ChatbotIcon';
3
+ export * from './CloseIcon';
4
+ export * from './ExcitedLavaIcon';
5
+ export * from './GlobeIcon';
6
+ export * from './Halloween';
7
+ export * from './HighlighterIcon';
8
+ export * from './LavaIconInGlasses';
9
+ export * from './MessageBubbleIcon';
10
+ export * from './PauseIcon';
11
+ export * from './Pi';
12
+ export * from './PlayIcon';
13
+ export * from './SpeakerIcon';
14
+ export * from './Star';
15
+ export * from './StopIcon';
16
+ export * from './Valentine';
17
+ export * from './Winter';
18
+ export * from './XCloseIcon';
19
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/shared/icons/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA;AAChC,cAAc,eAAe,CAAA;AAC7B,cAAc,aAAa,CAAA;AAC3B,cAAc,mBAAmB,CAAA;AACjC,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,mBAAmB,CAAA;AACjC,cAAc,qBAAqB,CAAA;AACnC,cAAc,qBAAqB,CAAA;AACnC,cAAc,aAAa,CAAA;AAC3B,cAAc,MAAM,CAAA;AACpB,cAAc,YAAY,CAAA;AAC1B,cAAc,eAAe,CAAA;AAC7B,cAAc,QAAQ,CAAA;AACtB,cAAc,YAAY,CAAA;AAC1B,cAAc,aAAa,CAAA;AAC3B,cAAc,UAAU,CAAA;AACxB,cAAc,cAAc,CAAA"}
@@ -25,6 +25,12 @@ export declare const LOCALIZATION_CONFIGS: {
25
25
  onTheWay: string;
26
26
  almostThere: string;
27
27
  };
28
+ exampleSolution: {
29
+ exampleSolution: string;
30
+ letMeThink: string;
31
+ aha: string;
32
+ errorMessage: string;
33
+ };
28
34
  };
29
35
  "en-GB": {
30
36
  "teacherFeedback.noComments": string;
@@ -52,6 +58,12 @@ export declare const LOCALIZATION_CONFIGS: {
52
58
  onTheWay: string;
53
59
  almostThere: string;
54
60
  };
61
+ exampleSolution: {
62
+ exampleSolution: string;
63
+ letMeThink: string;
64
+ aha: string;
65
+ errorMessage: string;
66
+ };
55
67
  };
56
68
  "sv-SE": {
57
69
  "teacherFeedback.noComments": string;
@@ -79,6 +91,12 @@ export declare const LOCALIZATION_CONFIGS: {
79
91
  onTheWay: string;
80
92
  almostThere: string;
81
93
  };
94
+ exampleSolution: {
95
+ exampleSolution: string;
96
+ letMeThink: string;
97
+ aha: string;
98
+ errorMessage: string;
99
+ };
82
100
  };
83
101
  "en-CA": {
84
102
  "teacherFeedback.noComments": string;
@@ -106,6 +124,12 @@ export declare const LOCALIZATION_CONFIGS: {
106
124
  onTheWay: string;
107
125
  almostThere: string;
108
126
  };
127
+ exampleSolution: {
128
+ exampleSolution: string;
129
+ letMeThink: string;
130
+ aha: string;
131
+ errorMessage: string;
132
+ };
109
133
  };
110
134
  "en-SCT": {
111
135
  "teacherFeedback.noComments": string;
@@ -133,6 +157,12 @@ export declare const LOCALIZATION_CONFIGS: {
133
157
  onTheWay: string;
134
158
  almostThere: string;
135
159
  };
160
+ exampleSolution: {
161
+ exampleSolution: string;
162
+ letMeThink: string;
163
+ aha: string;
164
+ errorMessage: string;
165
+ };
136
166
  };
137
167
  };
138
168
  //# sourceMappingURL=constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/shared/translation/constants.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMhC,CAAA"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/shared/translation/constants.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMhC,CAAA"}
@@ -26,6 +26,12 @@ export declare const setLocalization: import("effector").EventCallable<{
26
26
  onTheWay: string;
27
27
  almostThere: string;
28
28
  };
29
+ exampleSolution: {
30
+ exampleSolution: string;
31
+ letMeThink: string;
32
+ aha: string;
33
+ errorMessage: string;
34
+ };
29
35
  } | ((config: typeof LOCALIZATION_CONFIGS) => Translations)>;
30
36
  export declare const $localization: import("effector").StoreWritable<{
31
37
  "teacherFeedback.noComments": string;
@@ -53,5 +59,11 @@ export declare const $localization: import("effector").StoreWritable<{
53
59
  onTheWay: string;
54
60
  almostThere: string;
55
61
  };
62
+ exampleSolution: {
63
+ exampleSolution: string;
64
+ letMeThink: string;
65
+ aha: string;
66
+ errorMessage: string;
67
+ };
56
68
  }>;
57
69
  //# sourceMappingURL=model.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../../../../src/shared/translation/model.ts"],"names":[],"mappings":"AACA,OAAO,EAAU,YAAY,EAAE,MAAM,SAAS,CAAA;AAC9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAElD,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;cACD,OAAO,oBAAoB,KAAK,YAAY,EACpE,CAAA;AAEH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;EAMzB,CAAA"}
1
+ {"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../../../../src/shared/translation/model.ts"],"names":[],"mappings":"AACA,OAAO,EAAU,YAAY,EAAE,MAAM,SAAS,CAAA;AAC9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAElD,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cACD,OAAO,oBAAoB,KAAK,YAAY,EACpE,CAAA;AAEH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMzB,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@magmamath/students-features",
3
- "version": "0.6.12",
3
+ "version": "0.6.14-rc.0",
4
4
  "description": "Magmamath features library",
5
5
  "source": "src/index.ts",
6
6
  "main": "src/index.ts",
@@ -24,7 +24,9 @@
24
24
  "react": "*",
25
25
  "react-native": "*",
26
26
  "react-native-reanimated": ">=0.3.16",
27
- "react-native-svg": "^15.10.0"
27
+ "react-native-svg": "^15.10.0",
28
+ "react-native-gesture-handler": "*",
29
+ "react-native-modalfy": "*"
28
30
  },
29
31
  "devDependencies": {
30
32
  "@magmamath/react-native-ui": "0.4.37",
@@ -45,6 +47,8 @@
45
47
  "react-native-builder-bob": "^0.33.3",
46
48
  "react-native-reanimated": "^3.17.2",
47
49
  "react-native-svg": "^15.10.0",
50
+ "react-native-gesture-handler": "^2.28.0",
51
+ "react-native-modalfy": "^3.7.0",
48
52
  "release-it": "^17.10.0",
49
53
  "typescript": "^5.2.2"
50
54
  },
@@ -2,10 +2,11 @@ import React from 'react'
2
2
  import { StyleSheet, View } from 'react-native'
3
3
  import { useStoreMap, useUnit } from 'effector-react'
4
4
 
5
- import { HelpRequestOption } from './HelpRequestOption'
6
5
  import { useChatModel } from '../../context/ChatBotModelContext'
7
6
  import { ColorScheme } from '../../types/style.types'
8
7
  import { CONTROLS_COLORS_MAP } from '../../constants'
8
+ import { InputWithHintRow } from './InputWithHintRow'
9
+ import { useText } from '../../../../shared/translation'
9
10
 
10
11
  type AlternativesProps = {
11
12
  onPressAlternative: (message: string, translatedMessage?: string) => void
@@ -20,6 +21,7 @@ export const Alternatives = ({
20
21
  isHintFeedback,
21
22
  colorScheme = ColorScheme.Blue,
22
23
  }: AlternativesProps) => {
24
+ const t = useText()
23
25
  const model = useChatModel()
24
26
  const isTranslated = useUnit(model.translation.$isTranslated)
25
27
  const alternatives = useUnit(model.$alternatives)
@@ -38,12 +40,19 @@ export const Alternatives = ({
38
40
  return (
39
41
  <View style={styles.container}>
40
42
  {options.map(({ text, translatedText }, index) => (
41
- <HelpRequestOption
42
- key={index}
43
- onPress={() => onPressAlternative(text, translatedText)}
44
- message={isTranslated ? (translatedText as string) : text}
45
- disabled={isTranslationPending}
46
- hoverColor={CONTROLS_COLORS_MAP[colorScheme].hover}
43
+ // <HelpRequestOption
44
+ // key={index}
45
+ // onPress={() => onPressAlternative(text, translatedText)}
46
+ // message={isTranslated ? (translatedText as string) : text}
47
+ // disabled={isTranslationPending}
48
+ // hoverColor={CONTROLS_COLORS_MAP[colorScheme].hover}
49
+ // />
50
+ <InputWithHintRow
51
+ key={index}
52
+ onPress={() => onPressAlternative(text, translatedText)}
53
+ message={isTranslated ? (translatedText as string) : t('chat.giveHint')}
54
+ disabled={isTranslationPending}
55
+ hoverColor={CONTROLS_COLORS_MAP[colorScheme].hover}
47
56
  />
48
57
  ))}
49
58
  </View>
@@ -54,7 +63,8 @@ const styles = StyleSheet.create({
54
63
  container: {
55
64
  flex: 1,
56
65
  width: 305,
66
+ alignItems: 'center',
67
+ justifyContent: 'center',
57
68
  marginVertical: 8,
58
- gap: 8,
59
69
  },
60
70
  })