@magmamath/students-features 0.2.2 → 0.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (218) hide show
  1. package/dist/commonjs/features/chatbot/constants.js +21 -12
  2. package/dist/commonjs/features/chatbot/constants.js.map +1 -1
  3. package/dist/commonjs/features/chatbot/model/api.js +21 -1
  4. package/dist/commonjs/features/chatbot/model/api.js.map +1 -1
  5. package/dist/commonjs/features/feedback/assets/icons/MessageBubbleIcon.js.map +1 -0
  6. package/dist/commonjs/features/feedback/assets/icons/XCloseIcon.js.map +1 -0
  7. package/dist/commonjs/features/feedback/components/{EmptyComment/EmptyComment.js → EmptyComment.js} +3 -3
  8. package/dist/commonjs/features/feedback/components/EmptyComment.js.map +1 -0
  9. package/dist/commonjs/features/feedback/components/{ListCardCommentsCount/ListCardCommentsCount.js → ListCardCommentsCount.js} +2 -2
  10. package/dist/commonjs/features/feedback/components/ListCardCommentsCount.js.map +1 -0
  11. package/dist/commonjs/features/feedback/components/TeacherFeedback.js +8 -8
  12. package/dist/commonjs/features/feedback/components/TeacherFeedback.js.map +1 -1
  13. package/dist/commonjs/features/feedback/components/TeacherFeedbackButton/TeacherFeedbackButton.js +2 -2
  14. package/dist/commonjs/features/feedback/components/TeacherFeedbackComments/TeacherComment.js +3 -3
  15. package/dist/commonjs/features/feedback/components/TeacherFeedbackComments/TeacherComment.js.map +1 -1
  16. package/dist/commonjs/features/feedback/components/TeacherFeedbackComments/TeacherFeedbackComments.js +1 -1
  17. package/dist/commonjs/features/feedback/components/TeacherFeedbackComments/TeacherFeedbackComments.js.map +1 -1
  18. package/dist/commonjs/features/feedback/components/index.js +1 -1
  19. package/dist/commonjs/features/feedback/constants.js +1 -18
  20. package/dist/commonjs/features/feedback/constants.js.map +1 -1
  21. package/dist/commonjs/features/feedback/helpers.js +22 -64
  22. package/dist/commonjs/features/feedback/helpers.js.map +1 -1
  23. package/dist/commonjs/features/feedback/index.js +8 -8
  24. package/dist/commonjs/features/feedback/index.js.map +1 -1
  25. package/dist/commonjs/features/feedback/model/api.js +15 -0
  26. package/dist/commonjs/features/feedback/model/api.js.map +1 -0
  27. package/dist/commonjs/features/feedback/model/comments.js +88 -0
  28. package/dist/commonjs/features/feedback/model/comments.js.map +1 -0
  29. package/dist/commonjs/features/feedback/model/model.js +104 -0
  30. package/dist/commonjs/features/feedback/model/model.js.map +1 -0
  31. package/dist/commonjs/features/feedback/model/sockets.js +25 -0
  32. package/dist/commonjs/features/feedback/model/sockets.js.map +1 -0
  33. package/dist/commonjs/features/feedback/types.js +12 -0
  34. package/dist/commonjs/features/feedback/types.js.map +1 -0
  35. package/dist/commonjs/lib/helpers/helpers.js +24 -1
  36. package/dist/commonjs/lib/helpers/helpers.js.map +1 -1
  37. package/dist/commonjs/shared/translation/constants.js +42 -1
  38. package/dist/commonjs/shared/translation/constants.js.map +1 -1
  39. package/dist/module/features/chatbot/constants.js +20 -11
  40. package/dist/module/features/chatbot/constants.js.map +1 -1
  41. package/dist/module/features/chatbot/model/api.js +21 -1
  42. package/dist/module/features/chatbot/model/api.js.map +1 -1
  43. package/dist/module/features/feedback/assets/icons/MessageBubbleIcon.js.map +1 -0
  44. package/dist/module/features/feedback/assets/icons/XCloseIcon.js.map +1 -0
  45. package/dist/module/features/feedback/components/{EmptyComment/EmptyComment.js → EmptyComment.js} +3 -3
  46. package/dist/module/features/feedback/components/EmptyComment.js.map +1 -0
  47. package/dist/module/features/feedback/components/{ListCardCommentsCount/ListCardCommentsCount.js → ListCardCommentsCount.js} +2 -2
  48. package/dist/module/features/feedback/components/ListCardCommentsCount.js.map +1 -0
  49. package/dist/module/features/feedback/components/TeacherFeedback.js +8 -8
  50. package/dist/module/features/feedback/components/TeacherFeedback.js.map +1 -1
  51. package/dist/module/features/feedback/components/TeacherFeedbackButton/TeacherFeedbackButton.js +2 -2
  52. package/dist/module/features/feedback/components/TeacherFeedbackButton/TeacherFeedbackButton.js.map +1 -1
  53. package/dist/module/features/feedback/components/TeacherFeedbackComments/TeacherComment.js +3 -3
  54. package/dist/module/features/feedback/components/TeacherFeedbackComments/TeacherComment.js.map +1 -1
  55. package/dist/module/features/feedback/components/TeacherFeedbackComments/TeacherFeedbackComments.js +1 -1
  56. package/dist/module/features/feedback/components/TeacherFeedbackComments/TeacherFeedbackComments.js.map +1 -1
  57. package/dist/module/features/feedback/components/index.js +1 -1
  58. package/dist/module/features/feedback/components/index.js.map +1 -1
  59. package/dist/module/features/feedback/constants.js +0 -16
  60. package/dist/module/features/feedback/constants.js.map +1 -1
  61. package/dist/module/features/feedback/helpers.js +20 -62
  62. package/dist/module/features/feedback/helpers.js.map +1 -1
  63. package/dist/module/features/feedback/index.js +2 -2
  64. package/dist/module/features/feedback/index.js.map +1 -1
  65. package/dist/module/features/feedback/model/api.js +10 -0
  66. package/dist/module/features/feedback/model/api.js.map +1 -0
  67. package/dist/module/features/feedback/model/comments.js +83 -0
  68. package/dist/module/features/feedback/model/comments.js.map +1 -0
  69. package/dist/module/features/feedback/model/model.js +99 -0
  70. package/dist/module/features/feedback/model/model.js.map +1 -0
  71. package/dist/module/features/feedback/model/sockets.js +20 -0
  72. package/dist/module/features/feedback/model/sockets.js.map +1 -0
  73. package/dist/module/features/feedback/types.js +8 -0
  74. package/dist/module/features/feedback/types.js.map +1 -0
  75. package/dist/module/lib/helpers/helpers.js +22 -0
  76. package/dist/module/lib/helpers/helpers.js.map +1 -1
  77. package/dist/module/shared/translation/constants.js +41 -0
  78. package/dist/module/shared/translation/constants.js.map +1 -1
  79. package/dist/typescript/commonjs/features/chatbot/constants.d.ts +6 -0
  80. package/dist/typescript/commonjs/features/chatbot/constants.d.ts.map +1 -1
  81. package/dist/typescript/commonjs/features/chatbot/model/api.d.ts +1 -0
  82. package/dist/typescript/commonjs/features/chatbot/model/api.d.ts.map +1 -1
  83. package/dist/typescript/commonjs/features/feedback/assets/icons/MessageBubbleIcon.d.ts.map +1 -0
  84. package/dist/typescript/commonjs/features/feedback/assets/icons/XCloseIcon.d.ts.map +1 -0
  85. package/dist/typescript/commonjs/features/feedback/components/{EmptyComment/EmptyComment.d.ts → EmptyComment.d.ts} +1 -1
  86. package/dist/typescript/commonjs/features/feedback/components/EmptyComment.d.ts.map +1 -0
  87. package/dist/typescript/commonjs/features/feedback/components/ListCardCommentsCount.d.ts.map +1 -0
  88. package/dist/typescript/commonjs/features/feedback/components/TeacherFeedback.d.ts +6 -2
  89. package/dist/typescript/commonjs/features/feedback/components/TeacherFeedback.d.ts.map +1 -1
  90. package/dist/typescript/commonjs/features/feedback/components/TeacherFeedbackComments/TeacherComment.d.ts +2 -2
  91. package/dist/typescript/commonjs/features/feedback/components/TeacherFeedbackComments/TeacherComment.d.ts.map +1 -1
  92. package/dist/typescript/commonjs/features/feedback/components/TeacherFeedbackComments/TeacherFeedbackComments.d.ts +3 -2
  93. package/dist/typescript/commonjs/features/feedback/components/TeacherFeedbackComments/TeacherFeedbackComments.d.ts.map +1 -1
  94. package/dist/typescript/commonjs/features/feedback/components/index.d.ts +1 -1
  95. package/dist/typescript/commonjs/features/feedback/components/index.d.ts.map +1 -1
  96. package/dist/typescript/commonjs/features/feedback/constants.d.ts +0 -14
  97. package/dist/typescript/commonjs/features/feedback/constants.d.ts.map +1 -1
  98. package/dist/typescript/commonjs/features/feedback/helpers.d.ts +9 -2
  99. package/dist/typescript/commonjs/features/feedback/helpers.d.ts.map +1 -1
  100. package/dist/typescript/commonjs/features/feedback/index.d.ts +2 -2
  101. package/dist/typescript/commonjs/features/feedback/index.d.ts.map +1 -1
  102. package/dist/typescript/commonjs/features/feedback/model/api.d.ts +9 -0
  103. package/dist/typescript/commonjs/features/feedback/model/api.d.ts.map +1 -0
  104. package/dist/typescript/commonjs/features/feedback/model/comments.d.ts +16 -0
  105. package/dist/typescript/commonjs/features/feedback/model/comments.d.ts.map +1 -0
  106. package/dist/typescript/commonjs/features/feedback/model/model.d.ts +27 -0
  107. package/dist/typescript/commonjs/features/feedback/model/model.d.ts.map +1 -0
  108. package/dist/typescript/commonjs/features/feedback/model/sockets.d.ts +10 -0
  109. package/dist/typescript/commonjs/features/feedback/model/sockets.d.ts.map +1 -0
  110. package/dist/typescript/commonjs/features/feedback/types.d.ts +40 -0
  111. package/dist/typescript/commonjs/features/feedback/types.d.ts.map +1 -0
  112. package/dist/typescript/commonjs/lib/helpers/helpers.d.ts +2 -0
  113. package/dist/typescript/commonjs/lib/helpers/helpers.d.ts.map +1 -1
  114. package/dist/typescript/commonjs/shared/translation/constants.d.ts +41 -0
  115. package/dist/typescript/commonjs/shared/translation/constants.d.ts.map +1 -1
  116. package/dist/typescript/module/features/chatbot/constants.d.ts +6 -0
  117. package/dist/typescript/module/features/chatbot/constants.d.ts.map +1 -1
  118. package/dist/typescript/module/features/chatbot/model/api.d.ts +1 -0
  119. package/dist/typescript/module/features/chatbot/model/api.d.ts.map +1 -1
  120. package/dist/typescript/module/features/feedback/assets/icons/MessageBubbleIcon.d.ts.map +1 -0
  121. package/dist/typescript/module/features/feedback/assets/icons/XCloseIcon.d.ts.map +1 -0
  122. package/dist/typescript/module/features/feedback/components/{EmptyComment/EmptyComment.d.ts → EmptyComment.d.ts} +1 -1
  123. package/dist/typescript/module/features/feedback/components/EmptyComment.d.ts.map +1 -0
  124. package/dist/typescript/module/features/feedback/components/ListCardCommentsCount.d.ts.map +1 -0
  125. package/dist/typescript/module/features/feedback/components/TeacherFeedback.d.ts +6 -2
  126. package/dist/typescript/module/features/feedback/components/TeacherFeedback.d.ts.map +1 -1
  127. package/dist/typescript/module/features/feedback/components/TeacherFeedbackComments/TeacherComment.d.ts +2 -2
  128. package/dist/typescript/module/features/feedback/components/TeacherFeedbackComments/TeacherComment.d.ts.map +1 -1
  129. package/dist/typescript/module/features/feedback/components/TeacherFeedbackComments/TeacherFeedbackComments.d.ts +3 -2
  130. package/dist/typescript/module/features/feedback/components/TeacherFeedbackComments/TeacherFeedbackComments.d.ts.map +1 -1
  131. package/dist/typescript/module/features/feedback/components/index.d.ts +1 -1
  132. package/dist/typescript/module/features/feedback/components/index.d.ts.map +1 -1
  133. package/dist/typescript/module/features/feedback/constants.d.ts +0 -14
  134. package/dist/typescript/module/features/feedback/constants.d.ts.map +1 -1
  135. package/dist/typescript/module/features/feedback/helpers.d.ts +9 -2
  136. package/dist/typescript/module/features/feedback/helpers.d.ts.map +1 -1
  137. package/dist/typescript/module/features/feedback/index.d.ts +2 -2
  138. package/dist/typescript/module/features/feedback/index.d.ts.map +1 -1
  139. package/dist/typescript/module/features/feedback/model/api.d.ts +9 -0
  140. package/dist/typescript/module/features/feedback/model/api.d.ts.map +1 -0
  141. package/dist/typescript/module/features/feedback/model/comments.d.ts +16 -0
  142. package/dist/typescript/module/features/feedback/model/comments.d.ts.map +1 -0
  143. package/dist/typescript/module/features/feedback/model/model.d.ts +27 -0
  144. package/dist/typescript/module/features/feedback/model/model.d.ts.map +1 -0
  145. package/dist/typescript/module/features/feedback/model/sockets.d.ts +10 -0
  146. package/dist/typescript/module/features/feedback/model/sockets.d.ts.map +1 -0
  147. package/dist/typescript/module/features/feedback/types.d.ts +40 -0
  148. package/dist/typescript/module/features/feedback/types.d.ts.map +1 -0
  149. package/dist/typescript/module/lib/helpers/helpers.d.ts +2 -0
  150. package/dist/typescript/module/lib/helpers/helpers.d.ts.map +1 -1
  151. package/dist/typescript/module/shared/translation/constants.d.ts +41 -0
  152. package/dist/typescript/module/shared/translation/constants.d.ts.map +1 -1
  153. package/package.json +1 -1
  154. package/src/features/chatbot/constants.ts +30 -22
  155. package/src/features/chatbot/model/api.ts +47 -17
  156. package/src/features/feedback/components/{EmptyComment/EmptyComment.tsx → EmptyComment.tsx} +3 -3
  157. package/src/features/feedback/components/{ListCardCommentsCount/ListCardCommentsCount.tsx → ListCardCommentsCount.tsx} +2 -2
  158. package/src/features/feedback/components/TeacherFeedback.tsx +21 -11
  159. package/src/features/feedback/components/TeacherFeedbackButton/TeacherFeedbackButton.tsx +2 -2
  160. package/src/features/feedback/components/TeacherFeedbackComments/TeacherComment.tsx +10 -4
  161. package/src/features/feedback/components/TeacherFeedbackComments/TeacherFeedbackComments.tsx +4 -3
  162. package/src/features/feedback/components/index.ts +1 -1
  163. package/src/features/feedback/constants.ts +2 -18
  164. package/src/features/feedback/helpers.ts +27 -60
  165. package/src/features/feedback/index.ts +2 -2
  166. package/src/features/feedback/model/api.ts +13 -0
  167. package/src/features/feedback/model/comments.ts +82 -0
  168. package/src/features/feedback/model/model.ts +102 -0
  169. package/src/features/feedback/model/sockets.ts +22 -0
  170. package/src/features/feedback/types.ts +42 -0
  171. package/src/lib/helpers/helpers.ts +26 -0
  172. package/src/shared/translation/constants.ts +45 -3
  173. package/dist/commonjs/features/feedback/components/EmptyComment/EmptyComment.js.map +0 -1
  174. package/dist/commonjs/features/feedback/components/ListCardCommentsCount/ListCardCommentsCount.js.map +0 -1
  175. package/dist/commonjs/features/feedback/components/icons/MessageBubbleIcon.js.map +0 -1
  176. package/dist/commonjs/features/feedback/components/icons/XCloseIcon.js.map +0 -1
  177. package/dist/commonjs/features/feedback/model/teacherFeedback.model.js +0 -215
  178. package/dist/commonjs/features/feedback/model/teacherFeedback.model.js.map +0 -1
  179. package/dist/commonjs/features/feedback/types/teacherFeedback.types.js +0 -18
  180. package/dist/commonjs/features/feedback/types/teacherFeedback.types.js.map +0 -1
  181. package/dist/module/features/feedback/components/EmptyComment/EmptyComment.js.map +0 -1
  182. package/dist/module/features/feedback/components/ListCardCommentsCount/ListCardCommentsCount.js.map +0 -1
  183. package/dist/module/features/feedback/components/icons/MessageBubbleIcon.js.map +0 -1
  184. package/dist/module/features/feedback/components/icons/XCloseIcon.js.map +0 -1
  185. package/dist/module/features/feedback/model/teacherFeedback.model.js +0 -210
  186. package/dist/module/features/feedback/model/teacherFeedback.model.js.map +0 -1
  187. package/dist/module/features/feedback/types/teacherFeedback.types.js +0 -14
  188. package/dist/module/features/feedback/types/teacherFeedback.types.js.map +0 -1
  189. package/dist/typescript/commonjs/features/feedback/components/EmptyComment/EmptyComment.d.ts.map +0 -1
  190. package/dist/typescript/commonjs/features/feedback/components/ListCardCommentsCount/ListCardCommentsCount.d.ts.map +0 -1
  191. package/dist/typescript/commonjs/features/feedback/components/icons/MessageBubbleIcon.d.ts.map +0 -1
  192. package/dist/typescript/commonjs/features/feedback/components/icons/XCloseIcon.d.ts.map +0 -1
  193. package/dist/typescript/commonjs/features/feedback/model/teacherFeedback.model.d.ts +0 -45
  194. package/dist/typescript/commonjs/features/feedback/model/teacherFeedback.model.d.ts.map +0 -1
  195. package/dist/typescript/commonjs/features/feedback/types/teacherFeedback.types.d.ts +0 -33
  196. package/dist/typescript/commonjs/features/feedback/types/teacherFeedback.types.d.ts.map +0 -1
  197. package/dist/typescript/module/features/feedback/components/EmptyComment/EmptyComment.d.ts.map +0 -1
  198. package/dist/typescript/module/features/feedback/components/ListCardCommentsCount/ListCardCommentsCount.d.ts.map +0 -1
  199. package/dist/typescript/module/features/feedback/components/icons/MessageBubbleIcon.d.ts.map +0 -1
  200. package/dist/typescript/module/features/feedback/components/icons/XCloseIcon.d.ts.map +0 -1
  201. package/dist/typescript/module/features/feedback/model/teacherFeedback.model.d.ts +0 -45
  202. package/dist/typescript/module/features/feedback/model/teacherFeedback.model.d.ts.map +0 -1
  203. package/dist/typescript/module/features/feedback/types/teacherFeedback.types.d.ts +0 -33
  204. package/dist/typescript/module/features/feedback/types/teacherFeedback.types.d.ts.map +0 -1
  205. package/src/features/feedback/model/teacherFeedback.model.ts +0 -255
  206. package/src/features/feedback/types/teacherFeedback.types.ts +0 -32
  207. /package/dist/commonjs/features/feedback/{components → assets}/icons/MessageBubbleIcon.js +0 -0
  208. /package/dist/commonjs/features/feedback/{components → assets}/icons/XCloseIcon.js +0 -0
  209. /package/dist/module/features/feedback/{components → assets}/icons/MessageBubbleIcon.js +0 -0
  210. /package/dist/module/features/feedback/{components → assets}/icons/XCloseIcon.js +0 -0
  211. /package/dist/typescript/commonjs/features/feedback/{components → assets}/icons/MessageBubbleIcon.d.ts +0 -0
  212. /package/dist/typescript/commonjs/features/feedback/{components → assets}/icons/XCloseIcon.d.ts +0 -0
  213. /package/dist/typescript/commonjs/features/feedback/components/{ListCardCommentsCount/ListCardCommentsCount.d.ts → ListCardCommentsCount.d.ts} +0 -0
  214. /package/dist/typescript/module/features/feedback/{components → assets}/icons/MessageBubbleIcon.d.ts +0 -0
  215. /package/dist/typescript/module/features/feedback/{components → assets}/icons/XCloseIcon.d.ts +0 -0
  216. /package/dist/typescript/module/features/feedback/components/{ListCardCommentsCount/ListCardCommentsCount.d.ts → ListCardCommentsCount.d.ts} +0 -0
  217. /package/src/features/feedback/{components → assets}/icons/MessageBubbleIcon.tsx +0 -0
  218. /package/src/features/feedback/{components → assets}/icons/XCloseIcon.tsx +0 -0
@@ -1,11 +1,15 @@
1
1
  import React from 'react';
2
- import { TeacherFeedbackModel } from '../model/teacherFeedback.model';
3
2
  import { FeedbackMode } from '../constants';
3
+ import { TeacherFeedbackModel } from '../model/model';
4
+ import { Locale } from '../../../shared/translation';
4
5
  type TeacherFeedbackProps = {
5
6
  model: TeacherFeedbackModel;
6
7
  mode: FeedbackMode;
8
+ locale: Locale;
9
+ assignmentId: string;
10
+ problemId: string;
7
11
  isExam: boolean;
8
12
  };
9
- export declare const TeacherFeedback: ({ model, mode, isExam }: TeacherFeedbackProps) => React.JSX.Element | null;
13
+ export declare const TeacherFeedback: ({ model, mode, assignmentId, problemId, locale, isExam, }: TeacherFeedbackProps) => React.JSX.Element | null;
10
14
  export {};
11
15
  //# sourceMappingURL=TeacherFeedback.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TeacherFeedback.d.ts","sourceRoot":"","sources":["../../../../../../src/features/feedback/components/TeacherFeedback.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAKzB,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAA;AACrE,OAAO,EAA4C,YAAY,EAAE,MAAM,cAAc,CAAA;AAErF,KAAK,oBAAoB,GAAG;IAC1B,KAAK,EAAE,oBAAoB,CAAA;IAC3B,IAAI,EAAE,YAAY,CAAA;IAClB,MAAM,EAAE,OAAO,CAAA;CAChB,CAAA;AAED,eAAO,MAAM,eAAe,4BAAqC,oBAAoB,6BA2BpF,CAAA"}
1
+ {"version":3,"file":"TeacherFeedback.d.ts","sourceRoot":"","sources":["../../../../../../src/features/feedback/components/TeacherFeedback.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAKzB,OAAO,EAA4C,YAAY,EAAE,MAAM,cAAc,CAAA;AACrF,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAA;AACrD,OAAO,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAA;AAEpD,KAAK,oBAAoB,GAAG;IAC1B,KAAK,EAAE,oBAAoB,CAAA;IAC3B,IAAI,EAAE,YAAY,CAAA;IAClB,MAAM,EAAE,MAAM,CAAA;IACd,YAAY,EAAE,MAAM,CAAA;IACpB,SAAS,EAAE,MAAM,CAAA;IACjB,MAAM,EAAE,OAAO,CAAA;CAChB,CAAA;AAED,eAAO,MAAM,eAAe,8DAOzB,oBAAoB,6BA0BtB,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { Locale } from '../../types/teacherFeedback.types';
2
+ import { Locale } from '@magmamath/students-features';
3
3
  type TeacherCommentProps = {
4
4
  content: string;
5
5
  teacherName: string;
@@ -7,6 +7,6 @@ type TeacherCommentProps = {
7
7
  locale: Locale | null;
8
8
  isLastComment: boolean;
9
9
  };
10
- export declare const TeacherComment: ({ content, teacherName, createdAt, locale, isLastComment }: TeacherCommentProps) => React.JSX.Element;
10
+ export declare const TeacherComment: ({ content, teacherName, createdAt, locale, isLastComment, }: TeacherCommentProps) => React.JSX.Element;
11
11
  export {};
12
12
  //# sourceMappingURL=TeacherComment.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TeacherComment.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/feedback/components/TeacherFeedbackComments/TeacherComment.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAKzB,OAAO,EAAE,MAAM,EAAE,MAAM,mCAAmC,CAAA;AAE1D,KAAK,mBAAmB,GAAG;IACzB,OAAO,EAAE,MAAM,CAAA;IACf,WAAW,EAAE,MAAM,CAAA;IACnB,SAAS,EAAE,IAAI,CAAA;IACf,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB,aAAa,EAAE,OAAO,CAAA;CACvB,CAAA;AAED,eAAO,MAAM,cAAc,+DAAgE,mBAAmB,sBAkB7G,CAAA"}
1
+ {"version":3,"file":"TeacherComment.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/feedback/components/TeacherFeedbackComments/TeacherComment.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAKzB,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAA;AAErD,KAAK,mBAAmB,GAAG;IACzB,OAAO,EAAE,MAAM,CAAA;IACf,WAAW,EAAE,MAAM,CAAA;IACnB,SAAS,EAAE,IAAI,CAAA;IACf,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB,aAAa,EAAE,OAAO,CAAA;CACvB,CAAA;AAED,eAAO,MAAM,cAAc,gEAMxB,mBAAmB,sBAkBrB,CAAA"}
@@ -1,8 +1,9 @@
1
1
  import React from 'react';
2
- import { Locale, TeacherComment as FeedbackComment } from '../../types/teacherFeedback.types';
3
2
  import { FeedbackMode } from '../../constants';
3
+ import { Locale } from '../../../../shared/translation';
4
+ import { TeacherComment as TeacherCommentEntity } from '../../types';
4
5
  type TeacherFeedbackCommentsProps = {
5
- comments: FeedbackComment[] | null;
6
+ comments: TeacherCommentEntity[] | null;
6
7
  locale: Locale | null;
7
8
  mode: FeedbackMode;
8
9
  };
@@ -1 +1 @@
1
- {"version":3,"file":"TeacherFeedbackComments.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/feedback/components/TeacherFeedbackComments/TeacherFeedbackComments.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAA;AAEhD,OAAO,EAAE,MAAM,EAAE,cAAc,IAAI,eAAe,EAAE,MAAM,mCAAmC,CAAA;AAG7F,OAAO,EAAoB,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAOhE,KAAK,4BAA4B,GAAG;IAClC,QAAQ,EAAE,eAAe,EAAE,GAAG,IAAI,CAAA;IAClC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB,IAAI,EAAE,YAAY,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,uBAAuB,gCAIjC,4BAA4B,6BAyC9B,CAAA"}
1
+ {"version":3,"file":"TeacherFeedbackComments.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/feedback/components/TeacherFeedbackComments/TeacherFeedbackComments.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAA;AAIhD,OAAO,EAAoB,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAEhE,OAAO,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAA;AACvD,OAAO,EAAE,cAAc,IAAI,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAMpE,KAAK,4BAA4B,GAAG;IAClC,QAAQ,EAAE,oBAAoB,EAAE,GAAG,IAAI,CAAA;IACvC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB,IAAI,EAAE,YAAY,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,uBAAuB,gCAIjC,4BAA4B,6BAyC9B,CAAA"}
@@ -2,5 +2,5 @@ export { TeacherFeedbackComments } from './TeacherFeedbackComments/TeacherFeedba
2
2
  export { TeacherFeedbackButton } from './TeacherFeedbackButton/TeacherFeedbackButton';
3
3
  export { TeacherFeedback } from './TeacherFeedback';
4
4
  export { UnreadMessagesBadge } from './UnreadMessagesBadge';
5
- export { ListCardCommentsCount } from './ListCardCommentsCount/ListCardCommentsCount';
5
+ export { ListCardCommentsCount } from './ListCardCommentsCount';
6
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/features/feedback/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,mDAAmD,CAAA;AAC3F,OAAO,EAAE,qBAAqB,EAAE,MAAM,+CAA+C,CAAA;AACrF,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAC3D,OAAO,EAAE,qBAAqB,EAAE,MAAM,+CAA+C,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/features/feedback/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,mDAAmD,CAAA;AAC3F,OAAO,EAAE,qBAAqB,EAAE,MAAM,+CAA+C,CAAA;AACrF,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAC3D,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA"}
@@ -1,21 +1,7 @@
1
- import { Locale } from './types/teacherFeedback.types';
2
1
  export declare const BUENOS_AIRES_FONT: string;
3
2
  export declare const NO_COMMENTS_ENG = "No comments yet";
4
3
  export declare const NO_COMMENTS_SWE = "Inga kommentarer \u00E4n";
5
4
  export declare const EMPTY_COMMENT_ID = "empty-comment";
6
- export declare const getEmptyComment: (problemId: string, locale: Locale | null) => {
7
- __v: number;
8
- _id: string;
9
- content: string;
10
- createdAt: Date;
11
- exerciseId: string;
12
- isRead: boolean;
13
- problemId: string;
14
- studentId: string;
15
- teacherId: string;
16
- teacherName: string;
17
- updatedAt: Date;
18
- };
19
5
  export declare const TEACHER_FEEDBACK_BUTTON_ID = "teacherFeedbackButton";
20
6
  export declare enum FeedbackButtonColors {
21
7
  BLUE = "BLUE",
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/features/feedback/constants.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAA;AAEtD,eAAO,MAAM,iBAAiB,QAA6E,CAAA;AAE3G,eAAO,MAAM,eAAe,oBAAoB,CAAA;AAChD,eAAO,MAAM,eAAe,6BAAwB,CAAA;AACpD,eAAO,MAAM,gBAAgB,kBAAkB,CAAA;AAE/C,eAAO,MAAM,eAAe,cAAe,MAAM,UAAU,MAAM,GAAG,IAAI;;;;;;;;;;;;CAcvE,CAAA;AAED,eAAO,MAAM,0BAA0B,0BAA0B,CAAA;AAEjE,oBAAY,oBAAoB;IAC9B,IAAI,SAAS;IACb,MAAM,WAAW;CAClB;AAED,oBAAY,kBAAkB;IAC5B,KAAK,UAAU;IACf,KAAK,UAAU;CAChB;AAED,oBAAY,YAAY;IACtB,MAAM,WAAW;IACjB,MAAM,WAAW;CAClB"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/features/feedback/constants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB,QAC8C,CAAA;AAE5E,eAAO,MAAM,eAAe,oBAAoB,CAAA;AAChD,eAAO,MAAM,eAAe,6BAAwB,CAAA;AACpD,eAAO,MAAM,gBAAgB,kBAAkB,CAAA;AAE/C,eAAO,MAAM,0BAA0B,0BAA0B,CAAA;AAEjE,oBAAY,oBAAoB;IAC9B,IAAI,SAAS;IACb,MAAM,WAAW;CAClB;AAED,oBAAY,kBAAkB;IAC5B,KAAK,UAAU;IACf,KAAK,UAAU;CAChB;AAED,oBAAY,YAAY;IACtB,MAAM,WAAW;IACjB,MAAM,WAAW;CAClB"}
@@ -1,3 +1,10 @@
1
- import { Locale } from './types/teacherFeedback.types';
2
- export declare const getRelativeTime: (date: Date, lang: Locale) => string;
1
+ import { CommentsMap, GetCommentsResponse } from './types';
2
+ export declare function generateCommentsMap(assignmentId: string, data: GetCommentsResponse): CommentsMap;
3
+ type FindCommentsByCreditsProps = {
4
+ data: CommentsMap | null;
5
+ assignmentId: string;
6
+ problemId: string;
7
+ };
8
+ export declare function findCommentsByCredits({ data, assignmentId, problemId, }: FindCommentsByCreditsProps): import("./types").TeacherComment[];
9
+ export {};
3
10
  //# sourceMappingURL=helpers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../src/features/feedback/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAA;AA4CtD,eAAO,MAAM,eAAe,SAAU,IAAI,QAAQ,MAAM,WAqBvD,CAAA"}
1
+ {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../src/features/feedback/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAkB,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAE1E,wBAAgB,mBAAmB,CAAC,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,mBAAmB,GAAG,WAAW,CAgBhG;AAED,KAAK,0BAA0B,GAAG;IAChC,IAAI,EAAE,WAAW,GAAG,IAAI,CAAA;IACxB,YAAY,EAAE,MAAM,CAAA;IACpB,SAAS,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,wBAAgB,qBAAqB,CAAC,EACpC,IAAI,EACJ,YAAY,EACZ,SAAS,GACV,EAAE,0BAA0B,sCAE5B"}
@@ -1,5 +1,5 @@
1
- export * from './model/teacherFeedback.model';
2
- export * from './types/teacherFeedback.types';
1
+ export * from './model/model';
2
+ export * from './types';
3
3
  export * from './constants';
4
4
  export * from './components';
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/feedback/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAA;AAC7C,cAAc,+BAA+B,CAAA;AAC7C,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/feedback/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA;AAC7B,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA"}
@@ -0,0 +1,9 @@
1
+ import { Effect } from 'effector';
2
+ import { TeacherFeedbackModelProps } from './model';
3
+ import { GetCommentsPayload, GetCommentsResponse, UpdateCommentStatusSeenPayload } from '../types';
4
+ export declare class TeacherFeedbackAPI {
5
+ readonly getCommentsFx: Effect<GetCommentsPayload, GetCommentsResponse>;
6
+ readonly updateCommentStatusSeenFx: Effect<UpdateCommentStatusSeenPayload, void>;
7
+ constructor(api: TeacherFeedbackModelProps['api']);
8
+ }
9
+ //# sourceMappingURL=api.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../../../src/features/feedback/model/api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,MAAM,EAAE,MAAM,UAAU,CAAA;AAC/C,OAAO,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAA;AACnD,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,8BAA8B,EAAE,MAAM,UAAU,CAAA;AAElG,qBAAa,kBAAkB;IAC7B,SAAgB,aAAa,EAAE,MAAM,CAAC,kBAAkB,EAAE,mBAAmB,CAAC,CAAA;IAC9E,SAAgB,yBAAyB,EAAE,MAAM,CAAC,8BAA8B,EAAE,IAAI,CAAC,CAAA;gBAE3E,GAAG,EAAE,yBAAyB,CAAC,KAAK,CAAC;CAIlD"}
@@ -0,0 +1,16 @@
1
+ import { CommentsMap, Credits, TeacherComment } from '../types';
2
+ export declare class TeacherComments {
3
+ readonly setAllCommentsRead: import("effector").EventCallable<Credits>;
4
+ readonly addComment: import("effector").EventCallable<Credits & {
5
+ comment: TeacherComment;
6
+ isRead: boolean;
7
+ }>;
8
+ readonly deleteComment: import("effector").EventCallable<Credits & {
9
+ commentId: string;
10
+ }>;
11
+ readonly setData: import("effector").EventCallable<CommentsMap>;
12
+ readonly $data: import("effector").StoreWritable<CommentsMap | null>;
13
+ constructor();
14
+ private update;
15
+ }
16
+ //# sourceMappingURL=comments.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"comments.d.ts","sourceRoot":"","sources":["../../../../../../src/features/feedback/model/comments.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,OAAO,EAAkB,cAAc,EAAE,MAAM,UAAU,CAAA;AAS/E,qBAAa,eAAe;IAC1B,SAAgB,kBAAkB,4CAAyB;IAC3D,SAAgB,UAAU;iBAAoC,cAAc;gBAAU,OAAO;OAAK;IAClG,SAAgB,aAAa;mBAAsC,MAAM;OAAK;IAE9E,SAAgB,OAAO,gDAA6B;IACpD,SAAgB,KAAK,uDAuClB;;IAQH,OAAO,CAAC,MAAM;CAkBf"}
@@ -0,0 +1,27 @@
1
+ import { Store } from 'effector';
2
+ import { TeacherFeedbackAPI } from './api';
3
+ import { TeacherComments } from './comments';
4
+ import { GetCommentsPayload, GetCommentsResponse, TeacherComment, UpdateCommentStatusSeenPayload } from '../types';
5
+ export type TeacherFeedbackModelProps = {
6
+ api: {
7
+ getComments: (props: GetCommentsPayload) => Promise<GetCommentsResponse>;
8
+ updateCommentStatusSeen: (props: UpdateCommentStatusSeenPayload) => Promise<void>;
9
+ };
10
+ socket: any;
11
+ credits: {
12
+ $assignmentId: Store<string>;
13
+ $problemId: Store<string>;
14
+ };
15
+ defaults: {
16
+ EMPTY_COMMENT: TeacherComment;
17
+ };
18
+ };
19
+ export declare class TeacherFeedbackModel {
20
+ private readonly sockets;
21
+ readonly api: TeacherFeedbackAPI;
22
+ readonly comments: TeacherComments;
23
+ readonly setIsOpen: import("effector").EventCallable<boolean>;
24
+ readonly $isOpen: import("effector").StoreWritable<boolean>;
25
+ constructor({ api, socket, credits }: TeacherFeedbackModelProps);
26
+ }
27
+ //# sourceMappingURL=model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../../../../../src/features/feedback/model/model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgC,KAAK,EAAE,MAAM,UAAU,CAAA;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAA;AAE1C,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAE5C,OAAO,EACL,kBAAkB,EAClB,mBAAmB,EACnB,cAAc,EACd,8BAA8B,EAC/B,MAAM,UAAU,CAAA;AAEjB,MAAM,MAAM,yBAAyB,GAAG;IACtC,GAAG,EAAE;QACH,WAAW,EAAE,CAAC,KAAK,EAAE,kBAAkB,KAAK,OAAO,CAAC,mBAAmB,CAAC,CAAA;QACxE,uBAAuB,EAAE,CAAC,KAAK,EAAE,8BAA8B,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;KAClF,CAAA;IACD,MAAM,EAAE,GAAG,CAAA;IACX,OAAO,EAAE;QACP,aAAa,EAAE,KAAK,CAAC,MAAM,CAAC,CAAA;QAC5B,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,CAAA;KAC1B,CAAA;IACD,QAAQ,EAAE;QAAE,aAAa,EAAE,cAAc,CAAA;KAAE,CAAA;CAC5C,CAAA;AAED,qBAAa,oBAAoB;IAC/B,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAwB;IAChD,SAAgB,GAAG,EAAE,kBAAkB,CAAA;IACvC,SAAgB,QAAQ,EAAE,eAAe,CAAA;IACzC,SAAgB,SAAS,4CAAyB;IAClD,SAAgB,OAAO,4CAAiC;gBAE5C,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,yBAAyB;CAqEhE"}
@@ -0,0 +1,10 @@
1
+ import { TeacherComment } from '../types';
2
+ export declare class TeacherFeedbackSockets {
3
+ private readonly socket;
4
+ readonly commentAdded: import("effector").EventCallable<TeacherComment>;
5
+ readonly commentDeleted: import("effector").EventCallable<TeacherComment>;
6
+ constructor(socket: any);
7
+ connect(): void;
8
+ off(): void;
9
+ }
10
+ //# sourceMappingURL=sockets.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sockets.d.ts","sourceRoot":"","sources":["../../../../../../src/features/feedback/model/sockets.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAwB,MAAM,UAAU,CAAA;AAE/D,qBAAa,sBAAsB;IACjC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAK;IAC5B,SAAgB,YAAY,mDAAgC;IAC5D,SAAgB,cAAc,mDAAgC;gBAElD,MAAM,EAAE,GAAG;IAIvB,OAAO;IAKP,GAAG;CAIJ"}
@@ -0,0 +1,40 @@
1
+ export type GetCommentsPayload = {
2
+ id: string;
3
+ };
4
+ export type GetCommentsResponse = {
5
+ [problemId: string]: {
6
+ comments: TeacherComment[];
7
+ };
8
+ };
9
+ export type UpdateCommentStatusSeenPayload = {
10
+ ids: string[];
11
+ };
12
+ export type TeacherComment = {
13
+ _id: string;
14
+ teacherId: string;
15
+ teacherName: string;
16
+ studentId: string;
17
+ problemId: string;
18
+ exerciseId: string;
19
+ content: string;
20
+ isRead: boolean;
21
+ createdAt: Date;
22
+ updatedAt: Date;
23
+ __v: number;
24
+ };
25
+ export type FeedbackEntity = {
26
+ comments: TeacherComment[];
27
+ unreadMessagesCount: number;
28
+ };
29
+ export type CommentsMap = Map<string, {
30
+ [problemId: string]: FeedbackEntity;
31
+ }>;
32
+ export type Credits = {
33
+ assignmentId: string;
34
+ problemId: string;
35
+ };
36
+ export declare enum FeedbackSocketEvents {
37
+ COMMENT_ADDED = "exerciseCommentCreated",
38
+ COMMENT_DELETED = "exerciseCommentDeleted"
39
+ }
40
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/features/feedback/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,kBAAkB,GAAG;IAC/B,EAAE,EAAE,MAAM,CAAA;CACX,CAAA;AAED,MAAM,MAAM,mBAAmB,GAAG;IAChC,CAAC,SAAS,EAAE,MAAM,GAAG;QAAE,QAAQ,EAAE,cAAc,EAAE,CAAA;KAAE,CAAA;CACpD,CAAA;AAED,MAAM,MAAM,8BAA8B,GAAG;IAC3C,GAAG,EAAE,MAAM,EAAE,CAAA;CACd,CAAA;AAED,MAAM,MAAM,cAAc,GAAG;IAC3B,GAAG,EAAE,MAAM,CAAA;IACX,SAAS,EAAE,MAAM,CAAA;IACjB,WAAW,EAAE,MAAM,CAAA;IACnB,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,UAAU,EAAE,MAAM,CAAA;IAClB,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,OAAO,CAAA;IACf,SAAS,EAAE,IAAI,CAAA;IACf,SAAS,EAAE,IAAI,CAAA;IACf,GAAG,EAAE,MAAM,CAAA;CACZ,CAAA;AAED,MAAM,MAAM,cAAc,GAAG;IAC3B,QAAQ,EAAE,cAAc,EAAE,CAAA;IAC1B,mBAAmB,EAAE,MAAM,CAAA;CAC5B,CAAA;AAED,MAAM,MAAM,WAAW,GAAG,GAAG,CAAC,MAAM,EAAE;IAAE,CAAC,SAAS,EAAE,MAAM,GAAG,cAAc,CAAA;CAAE,CAAC,CAAA;AAE9E,MAAM,MAAM,OAAO,GAAG;IACpB,YAAY,EAAE,MAAM,CAAA;IACpB,SAAS,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,oBAAY,oBAAoB;IAC9B,aAAa,2BAA2B;IACxC,eAAe,2BAA2B;CAC3C"}
@@ -1,2 +1,4 @@
1
+ import { Locale } from '@magmamath/students-features';
1
2
  export declare const generateRandomId: () => string;
3
+ export declare const getRelativeTimeText: (date: Date, lang: Locale) => string;
2
4
  //# sourceMappingURL=helpers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../src/lib/helpers/helpers.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,cACsC,CAAA"}
1
+ {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../src/lib/helpers/helpers.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAA;AAErD,eAAO,MAAM,gBAAgB,cACsC,CAAA;AAEnE,eAAO,MAAM,mBAAmB,SAAU,IAAI,QAAQ,MAAM,WAqB3D,CAAA"}
@@ -3,4 +3,45 @@ export declare const LOCALIZATION_CONFIGS: {
3
3
  "en-GB": {};
4
4
  "sv-SE": {};
5
5
  };
6
+ export declare const RELATIVE_TIME_LABELS: {
7
+ "en-SE": {
8
+ justNow: string;
9
+ minuteAgo: string;
10
+ minutesAgo: string;
11
+ hourAgo: string;
12
+ hoursAgo: string;
13
+ dayAgo: string;
14
+ daysAgo: string;
15
+ monthAgo: string;
16
+ monthsAgo: string;
17
+ yearAgo: string;
18
+ yearsAgo: string;
19
+ };
20
+ "sv-SE": {
21
+ justNow: string;
22
+ minuteAgo: string;
23
+ minutesAgo: string;
24
+ hourAgo: string;
25
+ hoursAgo: string;
26
+ dayAgo: string;
27
+ daysAgo: string;
28
+ monthAgo: string;
29
+ monthsAgo: string;
30
+ yearAgo: string;
31
+ yearsAgo: string;
32
+ };
33
+ "en-GB": {
34
+ justNow: string;
35
+ minuteAgo: string;
36
+ minutesAgo: string;
37
+ hourAgo: string;
38
+ hoursAgo: string;
39
+ dayAgo: string;
40
+ daysAgo: string;
41
+ monthAgo: string;
42
+ monthsAgo: string;
43
+ yearAgo: string;
44
+ yearsAgo: string;
45
+ };
46
+ };
6
47
  //# sourceMappingURL=constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/shared/translation/constants.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,oBAAoB;;;;CAIhC,CAAA"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/shared/translation/constants.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,oBAAoB;;;;CAIhC,CAAA;AAED,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwChC,CAAA"}
@@ -18,4 +18,10 @@ export declare const TEXT_TO_SPEECH_CONFIG: {
18
18
  name: string;
19
19
  };
20
20
  };
21
+ export declare const KATEX_REPLACEMENTS: {
22
+ readonly '\\$': "__KATEX_DOLLAR_SYMBOL__";
23
+ };
24
+ export declare const KATEX_REPLACEMENTS_REVERSE: {
25
+ readonly __KATEX_DOLLAR_SYMBOL__: "$";
26
+ };
21
27
  //# sourceMappingURL=constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/features/chatbot/constants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY;;;;CAIxB,CAAA;AAED,eAAO,MAAM,aAAa;;;CAGzB,CAAA;AAED,eAAO,MAAM,qBAAqB;;;;;;;;;;CAgBvB,CAAA"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/features/chatbot/constants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY;;;;CAIxB,CAAA;AAED,eAAO,MAAM,aAAa;;;CAGzB,CAAA;AAED,eAAO,MAAM,qBAAqB;;;;;;;;;;CAgBhC,CAAA;AAEF,eAAO,MAAM,kBAAkB;;CAErB,CAAA;AAEV,eAAO,MAAM,0BAA0B;;CAE7B,CAAA"}
@@ -7,6 +7,7 @@ export declare class ChatbotAPI {
7
7
  getAlternativesFx: Effect<void, GetAlternativesResponse>;
8
8
  translateTextFx: Effect<GoogleTranslatePayload, GoogleTranslateResponse>;
9
9
  textToSpeechTextFx: Effect<GoogleText2SpeechPayload, GoogleText2SpeechResponse>;
10
+ private replaceKatexSyntax;
10
11
  constructor(api: ChatbotModelProps['api']);
11
12
  }
12
13
  //# sourceMappingURL=api.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../../../src/features/chatbot/model/api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,MAAM,EAAE,MAAM,UAAU,CAAA;AAG/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,8CAA8C,CAAA;AAC/E,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AACxD,OAAO,EACH,uBAAuB,EACvB,kBAAkB,EAClB,mBAAmB,EACnB,sBAAsB,EACtB,uBAAuB,EACvB,wBAAwB,EACxB,yBAAyB,EAC5B,MAAM,oBAAoB,CAAA;AAE3B,qBAAa,UAAU;IACnB,aAAa,EAAE,gBAAgB,CAAC,kBAAkB,EAAE,mBAAmB,CAAC,CAAA;IACxE,iBAAiB,EAAE,MAAM,CAAC,IAAI,EAAE,uBAAuB,CAAC,CAAA;IACxD,eAAe,EAAE,MAAM,CAAC,sBAAsB,EAAE,uBAAuB,CAAC,CAAA;IACxE,kBAAkB,EAAE,MAAM,CAAC,wBAAwB,EAAE,yBAAyB,CAAC,CAAA;gBAEnE,GAAG,EAAE,iBAAiB,CAAC,KAAK,CAAC;CAM5C"}
1
+ {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../../../src/features/chatbot/model/api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,MAAM,EAAE,MAAM,UAAU,CAAA;AAG/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,8CAA8C,CAAA;AAC/E,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AACxD,OAAO,EACL,uBAAuB,EACvB,kBAAkB,EAClB,mBAAmB,EACnB,sBAAsB,EACtB,uBAAuB,EACvB,wBAAwB,EACxB,yBAAyB,EAC1B,MAAM,oBAAoB,CAAA;AAG3B,qBAAa,UAAU;IACrB,aAAa,EAAE,gBAAgB,CAAC,kBAAkB,EAAE,mBAAmB,CAAC,CAAA;IACxE,iBAAiB,EAAE,MAAM,CAAC,IAAI,EAAE,uBAAuB,CAAC,CAAA;IACxD,eAAe,EAAE,MAAM,CAAC,sBAAsB,EAAE,uBAAuB,CAAC,CAAA;IACxE,kBAAkB,EAAE,MAAM,CAAC,wBAAwB,EAAE,yBAAyB,CAAC,CAAA;IAE/E,OAAO,CAAC,kBAAkB;gBAad,GAAG,EAAE,iBAAiB,CAAC,KAAK,CAAC;CAsB1C"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MessageBubbleIcon.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/feedback/assets/icons/MessageBubbleIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,SAAS,EAAU,MAAM,4BAA4B,CAAA;AAE9D,eAAO,MAAM,iBAAiB,oBAA6C,SAAS,sBAWnF,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"XCloseIcon.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/feedback/assets/icons/XCloseIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,SAAS,EAAU,MAAM,4BAA4B,CAAA;AAE9D,eAAO,MAAM,UAAU,oBAA6C,SAAS,sBAS5E,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { Locale } from '../../types/teacherFeedback.types';
2
+ import { Locale } from '../../../shared/translation/types';
3
3
  type EmptyCommentProps = {
4
4
  locale: Locale | null;
5
5
  };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EmptyComment.d.ts","sourceRoot":"","sources":["../../../../../../src/features/feedback/components/EmptyComment.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,OAAO,EAAE,MAAM,EAAE,MAAM,mCAAmC,CAAA;AAE1D,KAAK,iBAAiB,GAAG;IACvB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,YAAY,eAAgB,iBAAiB,sBAMzD,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ListCardCommentsCount.d.ts","sourceRoot":"","sources":["../../../../../../src/features/feedback/components/ListCardCommentsCount.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAMzB,KAAK,0BAA0B,GAAG;IAChC,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAED,eAAO,MAAM,qBAAqB,cAAe,0BAA0B,sBAO1E,CAAA"}
@@ -1,11 +1,15 @@
1
1
  import React from 'react';
2
- import { TeacherFeedbackModel } from '../model/teacherFeedback.model';
3
2
  import { FeedbackMode } from '../constants';
3
+ import { TeacherFeedbackModel } from '../model/model';
4
+ import { Locale } from '../../../shared/translation';
4
5
  type TeacherFeedbackProps = {
5
6
  model: TeacherFeedbackModel;
6
7
  mode: FeedbackMode;
8
+ locale: Locale;
9
+ assignmentId: string;
10
+ problemId: string;
7
11
  isExam: boolean;
8
12
  };
9
- export declare const TeacherFeedback: ({ model, mode, isExam }: TeacherFeedbackProps) => React.JSX.Element | null;
13
+ export declare const TeacherFeedback: ({ model, mode, assignmentId, problemId, locale, isExam, }: TeacherFeedbackProps) => React.JSX.Element | null;
10
14
  export {};
11
15
  //# sourceMappingURL=TeacherFeedback.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TeacherFeedback.d.ts","sourceRoot":"","sources":["../../../../../../src/features/feedback/components/TeacherFeedback.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAKzB,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAA;AACrE,OAAO,EAA4C,YAAY,EAAE,MAAM,cAAc,CAAA;AAErF,KAAK,oBAAoB,GAAG;IAC1B,KAAK,EAAE,oBAAoB,CAAA;IAC3B,IAAI,EAAE,YAAY,CAAA;IAClB,MAAM,EAAE,OAAO,CAAA;CAChB,CAAA;AAED,eAAO,MAAM,eAAe,4BAAqC,oBAAoB,6BA2BpF,CAAA"}
1
+ {"version":3,"file":"TeacherFeedback.d.ts","sourceRoot":"","sources":["../../../../../../src/features/feedback/components/TeacherFeedback.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAKzB,OAAO,EAA4C,YAAY,EAAE,MAAM,cAAc,CAAA;AACrF,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAA;AACrD,OAAO,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAA;AAEpD,KAAK,oBAAoB,GAAG;IAC1B,KAAK,EAAE,oBAAoB,CAAA;IAC3B,IAAI,EAAE,YAAY,CAAA;IAClB,MAAM,EAAE,MAAM,CAAA;IACd,YAAY,EAAE,MAAM,CAAA;IACpB,SAAS,EAAE,MAAM,CAAA;IACjB,MAAM,EAAE,OAAO,CAAA;CAChB,CAAA;AAED,eAAO,MAAM,eAAe,8DAOzB,oBAAoB,6BA0BtB,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { Locale } from '../../types/teacherFeedback.types';
2
+ import { Locale } from '@magmamath/students-features';
3
3
  type TeacherCommentProps = {
4
4
  content: string;
5
5
  teacherName: string;
@@ -7,6 +7,6 @@ type TeacherCommentProps = {
7
7
  locale: Locale | null;
8
8
  isLastComment: boolean;
9
9
  };
10
- export declare const TeacherComment: ({ content, teacherName, createdAt, locale, isLastComment }: TeacherCommentProps) => React.JSX.Element;
10
+ export declare const TeacherComment: ({ content, teacherName, createdAt, locale, isLastComment, }: TeacherCommentProps) => React.JSX.Element;
11
11
  export {};
12
12
  //# sourceMappingURL=TeacherComment.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TeacherComment.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/feedback/components/TeacherFeedbackComments/TeacherComment.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAKzB,OAAO,EAAE,MAAM,EAAE,MAAM,mCAAmC,CAAA;AAE1D,KAAK,mBAAmB,GAAG;IACzB,OAAO,EAAE,MAAM,CAAA;IACf,WAAW,EAAE,MAAM,CAAA;IACnB,SAAS,EAAE,IAAI,CAAA;IACf,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB,aAAa,EAAE,OAAO,CAAA;CACvB,CAAA;AAED,eAAO,MAAM,cAAc,+DAAgE,mBAAmB,sBAkB7G,CAAA"}
1
+ {"version":3,"file":"TeacherComment.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/feedback/components/TeacherFeedbackComments/TeacherComment.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAKzB,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAA;AAErD,KAAK,mBAAmB,GAAG;IACzB,OAAO,EAAE,MAAM,CAAA;IACf,WAAW,EAAE,MAAM,CAAA;IACnB,SAAS,EAAE,IAAI,CAAA;IACf,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB,aAAa,EAAE,OAAO,CAAA;CACvB,CAAA;AAED,eAAO,MAAM,cAAc,gEAMxB,mBAAmB,sBAkBrB,CAAA"}
@@ -1,8 +1,9 @@
1
1
  import React from 'react';
2
- import { Locale, TeacherComment as FeedbackComment } from '../../types/teacherFeedback.types';
3
2
  import { FeedbackMode } from '../../constants';
3
+ import { Locale } from '../../../../shared/translation';
4
+ import { TeacherComment as TeacherCommentEntity } from '../../types';
4
5
  type TeacherFeedbackCommentsProps = {
5
- comments: FeedbackComment[] | null;
6
+ comments: TeacherCommentEntity[] | null;
6
7
  locale: Locale | null;
7
8
  mode: FeedbackMode;
8
9
  };
@@ -1 +1 @@
1
- {"version":3,"file":"TeacherFeedbackComments.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/feedback/components/TeacherFeedbackComments/TeacherFeedbackComments.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAA;AAEhD,OAAO,EAAE,MAAM,EAAE,cAAc,IAAI,eAAe,EAAE,MAAM,mCAAmC,CAAA;AAG7F,OAAO,EAAoB,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAOhE,KAAK,4BAA4B,GAAG;IAClC,QAAQ,EAAE,eAAe,EAAE,GAAG,IAAI,CAAA;IAClC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB,IAAI,EAAE,YAAY,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,uBAAuB,gCAIjC,4BAA4B,6BAyC9B,CAAA"}
1
+ {"version":3,"file":"TeacherFeedbackComments.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/feedback/components/TeacherFeedbackComments/TeacherFeedbackComments.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAA;AAIhD,OAAO,EAAoB,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAEhE,OAAO,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAA;AACvD,OAAO,EAAE,cAAc,IAAI,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAMpE,KAAK,4BAA4B,GAAG;IAClC,QAAQ,EAAE,oBAAoB,EAAE,GAAG,IAAI,CAAA;IACvC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB,IAAI,EAAE,YAAY,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,uBAAuB,gCAIjC,4BAA4B,6BAyC9B,CAAA"}
@@ -2,5 +2,5 @@ export { TeacherFeedbackComments } from './TeacherFeedbackComments/TeacherFeedba
2
2
  export { TeacherFeedbackButton } from './TeacherFeedbackButton/TeacherFeedbackButton';
3
3
  export { TeacherFeedback } from './TeacherFeedback';
4
4
  export { UnreadMessagesBadge } from './UnreadMessagesBadge';
5
- export { ListCardCommentsCount } from './ListCardCommentsCount/ListCardCommentsCount';
5
+ export { ListCardCommentsCount } from './ListCardCommentsCount';
6
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/features/feedback/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,mDAAmD,CAAA;AAC3F,OAAO,EAAE,qBAAqB,EAAE,MAAM,+CAA+C,CAAA;AACrF,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAC3D,OAAO,EAAE,qBAAqB,EAAE,MAAM,+CAA+C,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/features/feedback/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,mDAAmD,CAAA;AAC3F,OAAO,EAAE,qBAAqB,EAAE,MAAM,+CAA+C,CAAA;AACrF,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAC3D,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA"}
@@ -1,21 +1,7 @@
1
- import { Locale } from './types/teacherFeedback.types';
2
1
  export declare const BUENOS_AIRES_FONT: string;
3
2
  export declare const NO_COMMENTS_ENG = "No comments yet";
4
3
  export declare const NO_COMMENTS_SWE = "Inga kommentarer \u00E4n";
5
4
  export declare const EMPTY_COMMENT_ID = "empty-comment";
6
- export declare const getEmptyComment: (problemId: string, locale: Locale | null) => {
7
- __v: number;
8
- _id: string;
9
- content: string;
10
- createdAt: Date;
11
- exerciseId: string;
12
- isRead: boolean;
13
- problemId: string;
14
- studentId: string;
15
- teacherId: string;
16
- teacherName: string;
17
- updatedAt: Date;
18
- };
19
5
  export declare const TEACHER_FEEDBACK_BUTTON_ID = "teacherFeedbackButton";
20
6
  export declare enum FeedbackButtonColors {
21
7
  BLUE = "BLUE",
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/features/feedback/constants.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAA;AAEtD,eAAO,MAAM,iBAAiB,QAA6E,CAAA;AAE3G,eAAO,MAAM,eAAe,oBAAoB,CAAA;AAChD,eAAO,MAAM,eAAe,6BAAwB,CAAA;AACpD,eAAO,MAAM,gBAAgB,kBAAkB,CAAA;AAE/C,eAAO,MAAM,eAAe,cAAe,MAAM,UAAU,MAAM,GAAG,IAAI;;;;;;;;;;;;CAcvE,CAAA;AAED,eAAO,MAAM,0BAA0B,0BAA0B,CAAA;AAEjE,oBAAY,oBAAoB;IAC9B,IAAI,SAAS;IACb,MAAM,WAAW;CAClB;AAED,oBAAY,kBAAkB;IAC5B,KAAK,UAAU;IACf,KAAK,UAAU;CAChB;AAED,oBAAY,YAAY;IACtB,MAAM,WAAW;IACjB,MAAM,WAAW;CAClB"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/features/feedback/constants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB,QAC8C,CAAA;AAE5E,eAAO,MAAM,eAAe,oBAAoB,CAAA;AAChD,eAAO,MAAM,eAAe,6BAAwB,CAAA;AACpD,eAAO,MAAM,gBAAgB,kBAAkB,CAAA;AAE/C,eAAO,MAAM,0BAA0B,0BAA0B,CAAA;AAEjE,oBAAY,oBAAoB;IAC9B,IAAI,SAAS;IACb,MAAM,WAAW;CAClB;AAED,oBAAY,kBAAkB;IAC5B,KAAK,UAAU;IACf,KAAK,UAAU;CAChB;AAED,oBAAY,YAAY;IACtB,MAAM,WAAW;IACjB,MAAM,WAAW;CAClB"}
@@ -1,3 +1,10 @@
1
- import { Locale } from './types/teacherFeedback.types';
2
- export declare const getRelativeTime: (date: Date, lang: Locale) => string;
1
+ import { CommentsMap, GetCommentsResponse } from './types';
2
+ export declare function generateCommentsMap(assignmentId: string, data: GetCommentsResponse): CommentsMap;
3
+ type FindCommentsByCreditsProps = {
4
+ data: CommentsMap | null;
5
+ assignmentId: string;
6
+ problemId: string;
7
+ };
8
+ export declare function findCommentsByCredits({ data, assignmentId, problemId, }: FindCommentsByCreditsProps): import("./types").TeacherComment[];
9
+ export {};
3
10
  //# sourceMappingURL=helpers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../src/features/feedback/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAA;AA4CtD,eAAO,MAAM,eAAe,SAAU,IAAI,QAAQ,MAAM,WAqBvD,CAAA"}
1
+ {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../src/features/feedback/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAkB,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAE1E,wBAAgB,mBAAmB,CAAC,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,mBAAmB,GAAG,WAAW,CAgBhG;AAED,KAAK,0BAA0B,GAAG;IAChC,IAAI,EAAE,WAAW,GAAG,IAAI,CAAA;IACxB,YAAY,EAAE,MAAM,CAAA;IACpB,SAAS,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,wBAAgB,qBAAqB,CAAC,EACpC,IAAI,EACJ,YAAY,EACZ,SAAS,GACV,EAAE,0BAA0B,sCAE5B"}
@@ -1,5 +1,5 @@
1
- export * from './model/teacherFeedback.model';
2
- export * from './types/teacherFeedback.types';
1
+ export * from './model/model';
2
+ export * from './types';
3
3
  export * from './constants';
4
4
  export * from './components';
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/feedback/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAA;AAC7C,cAAc,+BAA+B,CAAA;AAC7C,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/feedback/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA;AAC7B,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA"}
@@ -0,0 +1,9 @@
1
+ import { Effect } from 'effector';
2
+ import { TeacherFeedbackModelProps } from './model';
3
+ import { GetCommentsPayload, GetCommentsResponse, UpdateCommentStatusSeenPayload } from '../types';
4
+ export declare class TeacherFeedbackAPI {
5
+ readonly getCommentsFx: Effect<GetCommentsPayload, GetCommentsResponse>;
6
+ readonly updateCommentStatusSeenFx: Effect<UpdateCommentStatusSeenPayload, void>;
7
+ constructor(api: TeacherFeedbackModelProps['api']);
8
+ }
9
+ //# sourceMappingURL=api.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../../../src/features/feedback/model/api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,MAAM,EAAE,MAAM,UAAU,CAAA;AAC/C,OAAO,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAA;AACnD,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,8BAA8B,EAAE,MAAM,UAAU,CAAA;AAElG,qBAAa,kBAAkB;IAC7B,SAAgB,aAAa,EAAE,MAAM,CAAC,kBAAkB,EAAE,mBAAmB,CAAC,CAAA;IAC9E,SAAgB,yBAAyB,EAAE,MAAM,CAAC,8BAA8B,EAAE,IAAI,CAAC,CAAA;gBAE3E,GAAG,EAAE,yBAAyB,CAAC,KAAK,CAAC;CAIlD"}
@@ -0,0 +1,16 @@
1
+ import { CommentsMap, Credits, TeacherComment } from '../types';
2
+ export declare class TeacherComments {
3
+ readonly setAllCommentsRead: import("effector").EventCallable<Credits>;
4
+ readonly addComment: import("effector").EventCallable<Credits & {
5
+ comment: TeacherComment;
6
+ isRead: boolean;
7
+ }>;
8
+ readonly deleteComment: import("effector").EventCallable<Credits & {
9
+ commentId: string;
10
+ }>;
11
+ readonly setData: import("effector").EventCallable<CommentsMap>;
12
+ readonly $data: import("effector").StoreWritable<CommentsMap | null>;
13
+ constructor();
14
+ private update;
15
+ }
16
+ //# sourceMappingURL=comments.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"comments.d.ts","sourceRoot":"","sources":["../../../../../../src/features/feedback/model/comments.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,OAAO,EAAkB,cAAc,EAAE,MAAM,UAAU,CAAA;AAS/E,qBAAa,eAAe;IAC1B,SAAgB,kBAAkB,4CAAyB;IAC3D,SAAgB,UAAU;iBAAoC,cAAc;gBAAU,OAAO;OAAK;IAClG,SAAgB,aAAa;mBAAsC,MAAM;OAAK;IAE9E,SAAgB,OAAO,gDAA6B;IACpD,SAAgB,KAAK,uDAuClB;;IAQH,OAAO,CAAC,MAAM;CAkBf"}