@magmamath/students-features 0.2.10 → 0.2.12

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 (180) hide show
  1. package/dist/commonjs/features/chatbot/components/ChatControls/ChatControls.js +2 -2
  2. package/dist/commonjs/features/chatbot/components/ChatControls/ChatControls.js.map +1 -1
  3. package/dist/commonjs/features/feedback/components/EmptyComment.js +4 -5
  4. package/dist/commonjs/features/feedback/components/EmptyComment.js.map +1 -1
  5. package/dist/commonjs/features/feedback/components/ListCardCommentsCount.js +1 -1
  6. package/dist/commonjs/features/feedback/components/TeacherFeedback.js +5 -6
  7. package/dist/commonjs/features/feedback/components/TeacherFeedback.js.map +1 -1
  8. package/dist/commonjs/features/feedback/components/TeacherFeedbackButton/TeacherFeedbackButton.js +32 -9
  9. package/dist/commonjs/features/feedback/components/TeacherFeedbackButton/TeacherFeedbackButton.js.map +1 -1
  10. package/dist/commonjs/features/feedback/components/TeacherFeedbackComments/TeacherComment.js +1 -3
  11. package/dist/commonjs/features/feedback/components/TeacherFeedbackComments/TeacherComment.js.map +1 -1
  12. package/dist/commonjs/features/feedback/components/TeacherFeedbackComments/TeacherFeedbackComments.js +1 -8
  13. package/dist/commonjs/features/feedback/components/TeacherFeedbackComments/TeacherFeedbackComments.js.map +1 -1
  14. package/dist/commonjs/features/feedback/components/UnreadMessagesBadge.js +1 -1
  15. package/dist/commonjs/features/feedback/components/UnreadMessagesBadge.js.map +1 -1
  16. package/dist/commonjs/features/feedback/constants.js +11 -3
  17. package/dist/commonjs/features/feedback/constants.js.map +1 -1
  18. package/dist/commonjs/features/feedback/helpers.js +24 -0
  19. package/dist/commonjs/features/feedback/helpers.js.map +1 -1
  20. package/dist/commonjs/features/feedback/model/api.js.map +1 -1
  21. package/dist/commonjs/features/feedback/model/comments.js +17 -33
  22. package/dist/commonjs/features/feedback/model/comments.js.map +1 -1
  23. package/dist/commonjs/features/feedback/model/model.js +5 -3
  24. package/dist/commonjs/features/feedback/model/model.js.map +1 -1
  25. package/dist/commonjs/features/feedback/types.js.map +1 -1
  26. package/dist/commonjs/lib/helpers/helpers.js +20 -16
  27. package/dist/commonjs/lib/helpers/helpers.js.map +1 -1
  28. package/dist/commonjs/lib/localization/en.json +12 -0
  29. package/dist/commonjs/lib/localization/gb.json +12 -0
  30. package/dist/commonjs/lib/localization/sw.json +12 -0
  31. package/dist/commonjs/shared/icons/MessageBubbleIcon.js.map +1 -0
  32. package/dist/commonjs/shared/icons/XCloseIcon.js.map +1 -0
  33. package/dist/commonjs/shared/translation/constants.js +1 -42
  34. package/dist/commonjs/shared/translation/constants.js.map +1 -1
  35. package/dist/commonjs/shared/translation/helpers.js.map +1 -1
  36. package/dist/commonjs/shared/translation/types.js.map +1 -1
  37. package/dist/module/features/chatbot/components/ChatControls/ChatControls.js +2 -2
  38. package/dist/module/features/chatbot/components/ChatControls/ChatControls.js.map +1 -1
  39. package/dist/module/features/feedback/components/EmptyComment.js +5 -6
  40. package/dist/module/features/feedback/components/EmptyComment.js.map +1 -1
  41. package/dist/module/features/feedback/components/ListCardCommentsCount.js +1 -1
  42. package/dist/module/features/feedback/components/ListCardCommentsCount.js.map +1 -1
  43. package/dist/module/features/feedback/components/TeacherFeedback.js +6 -7
  44. package/dist/module/features/feedback/components/TeacherFeedback.js.map +1 -1
  45. package/dist/module/features/feedback/components/TeacherFeedbackButton/TeacherFeedbackButton.js +32 -9
  46. package/dist/module/features/feedback/components/TeacherFeedbackButton/TeacherFeedbackButton.js.map +1 -1
  47. package/dist/module/features/feedback/components/TeacherFeedbackComments/TeacherComment.js +1 -3
  48. package/dist/module/features/feedback/components/TeacherFeedbackComments/TeacherComment.js.map +1 -1
  49. package/dist/module/features/feedback/components/TeacherFeedbackComments/TeacherFeedbackComments.js +2 -9
  50. package/dist/module/features/feedback/components/TeacherFeedbackComments/TeacherFeedbackComments.js.map +1 -1
  51. package/dist/module/features/feedback/components/UnreadMessagesBadge.js +1 -1
  52. package/dist/module/features/feedback/components/UnreadMessagesBadge.js.map +1 -1
  53. package/dist/module/features/feedback/constants.js +10 -2
  54. package/dist/module/features/feedback/constants.js.map +1 -1
  55. package/dist/module/features/feedback/helpers.js +23 -0
  56. package/dist/module/features/feedback/helpers.js.map +1 -1
  57. package/dist/module/features/feedback/model/api.js.map +1 -1
  58. package/dist/module/features/feedback/model/comments.js +14 -30
  59. package/dist/module/features/feedback/model/comments.js.map +1 -1
  60. package/dist/module/features/feedback/model/model.js +6 -4
  61. package/dist/module/features/feedback/model/model.js.map +1 -1
  62. package/dist/module/features/feedback/types.js.map +1 -1
  63. package/dist/module/lib/helpers/helpers.js +20 -16
  64. package/dist/module/lib/helpers/helpers.js.map +1 -1
  65. package/dist/module/lib/localization/en.json +12 -0
  66. package/dist/module/lib/localization/gb.json +12 -0
  67. package/dist/module/lib/localization/sw.json +12 -0
  68. package/dist/module/shared/icons/MessageBubbleIcon.js.map +1 -0
  69. package/dist/module/shared/icons/XCloseIcon.js.map +1 -0
  70. package/dist/module/shared/translation/constants.js +0 -41
  71. package/dist/module/shared/translation/constants.js.map +1 -1
  72. package/dist/module/shared/translation/helpers.js.map +1 -1
  73. package/dist/module/shared/translation/types.js.map +1 -1
  74. package/dist/typescript/commonjs/features/chatbot/components/Chatbot.d.ts.map +1 -1
  75. package/dist/typescript/commonjs/features/feedback/components/EmptyComment.d.ts +1 -6
  76. package/dist/typescript/commonjs/features/feedback/components/EmptyComment.d.ts.map +1 -1
  77. package/dist/typescript/commonjs/features/feedback/components/TeacherFeedback.d.ts +5 -5
  78. package/dist/typescript/commonjs/features/feedback/components/TeacherFeedback.d.ts.map +1 -1
  79. package/dist/typescript/commonjs/features/feedback/components/TeacherFeedbackButton/TeacherFeedbackButton.d.ts.map +1 -1
  80. package/dist/typescript/commonjs/features/feedback/components/TeacherFeedbackComments/TeacherComment.d.ts +2 -4
  81. package/dist/typescript/commonjs/features/feedback/components/TeacherFeedbackComments/TeacherComment.d.ts.map +1 -1
  82. package/dist/typescript/commonjs/features/feedback/components/TeacherFeedbackComments/TeacherFeedbackComments.d.ts +2 -4
  83. package/dist/typescript/commonjs/features/feedback/components/TeacherFeedbackComments/TeacherFeedbackComments.d.ts.map +1 -1
  84. package/dist/typescript/commonjs/features/feedback/components/UnreadMessagesBadge.d.ts +1 -1
  85. package/dist/typescript/commonjs/features/feedback/components/UnreadMessagesBadge.d.ts.map +1 -1
  86. package/dist/typescript/commonjs/features/feedback/constants.d.ts +2 -2
  87. package/dist/typescript/commonjs/features/feedback/constants.d.ts.map +1 -1
  88. package/dist/typescript/commonjs/features/feedback/helpers.d.ts +10 -1
  89. package/dist/typescript/commonjs/features/feedback/helpers.d.ts.map +1 -1
  90. package/dist/typescript/commonjs/features/feedback/model/api.d.ts +6 -2
  91. package/dist/typescript/commonjs/features/feedback/model/api.d.ts.map +1 -1
  92. package/dist/typescript/commonjs/features/feedback/model/comments.d.ts +10 -12
  93. package/dist/typescript/commonjs/features/feedback/model/comments.d.ts.map +1 -1
  94. package/dist/typescript/commonjs/features/feedback/model/model.d.ts +4 -7
  95. package/dist/typescript/commonjs/features/feedback/model/model.d.ts.map +1 -1
  96. package/dist/typescript/commonjs/features/feedback/types.d.ts +8 -1
  97. package/dist/typescript/commonjs/features/feedback/types.d.ts.map +1 -1
  98. package/dist/typescript/commonjs/lib/helpers/helpers.d.ts +1 -2
  99. package/dist/typescript/commonjs/lib/helpers/helpers.d.ts.map +1 -1
  100. package/dist/typescript/commonjs/shared/icons/MessageBubbleIcon.d.ts.map +1 -0
  101. package/dist/typescript/commonjs/shared/icons/XCloseIcon.d.ts.map +1 -0
  102. package/dist/typescript/commonjs/shared/translation/constants.d.ts +38 -40
  103. package/dist/typescript/commonjs/shared/translation/constants.d.ts.map +1 -1
  104. package/dist/typescript/commonjs/shared/translation/helpers.d.ts.map +1 -1
  105. package/dist/typescript/commonjs/shared/translation/types.d.ts +4 -1
  106. package/dist/typescript/commonjs/shared/translation/types.d.ts.map +1 -1
  107. package/dist/typescript/module/features/chatbot/components/Chatbot.d.ts.map +1 -1
  108. package/dist/typescript/module/features/feedback/components/EmptyComment.d.ts +1 -6
  109. package/dist/typescript/module/features/feedback/components/EmptyComment.d.ts.map +1 -1
  110. package/dist/typescript/module/features/feedback/components/TeacherFeedback.d.ts +5 -5
  111. package/dist/typescript/module/features/feedback/components/TeacherFeedback.d.ts.map +1 -1
  112. package/dist/typescript/module/features/feedback/components/TeacherFeedbackButton/TeacherFeedbackButton.d.ts.map +1 -1
  113. package/dist/typescript/module/features/feedback/components/TeacherFeedbackComments/TeacherComment.d.ts +2 -4
  114. package/dist/typescript/module/features/feedback/components/TeacherFeedbackComments/TeacherComment.d.ts.map +1 -1
  115. package/dist/typescript/module/features/feedback/components/TeacherFeedbackComments/TeacherFeedbackComments.d.ts +2 -4
  116. package/dist/typescript/module/features/feedback/components/TeacherFeedbackComments/TeacherFeedbackComments.d.ts.map +1 -1
  117. package/dist/typescript/module/features/feedback/components/UnreadMessagesBadge.d.ts +1 -1
  118. package/dist/typescript/module/features/feedback/components/UnreadMessagesBadge.d.ts.map +1 -1
  119. package/dist/typescript/module/features/feedback/constants.d.ts +2 -2
  120. package/dist/typescript/module/features/feedback/constants.d.ts.map +1 -1
  121. package/dist/typescript/module/features/feedback/helpers.d.ts +10 -1
  122. package/dist/typescript/module/features/feedback/helpers.d.ts.map +1 -1
  123. package/dist/typescript/module/features/feedback/model/api.d.ts +6 -2
  124. package/dist/typescript/module/features/feedback/model/api.d.ts.map +1 -1
  125. package/dist/typescript/module/features/feedback/model/comments.d.ts +10 -12
  126. package/dist/typescript/module/features/feedback/model/comments.d.ts.map +1 -1
  127. package/dist/typescript/module/features/feedback/model/model.d.ts +4 -7
  128. package/dist/typescript/module/features/feedback/model/model.d.ts.map +1 -1
  129. package/dist/typescript/module/features/feedback/types.d.ts +8 -1
  130. package/dist/typescript/module/features/feedback/types.d.ts.map +1 -1
  131. package/dist/typescript/module/lib/helpers/helpers.d.ts +1 -2
  132. package/dist/typescript/module/lib/helpers/helpers.d.ts.map +1 -1
  133. package/dist/typescript/module/shared/icons/MessageBubbleIcon.d.ts.map +1 -0
  134. package/dist/typescript/module/shared/icons/XCloseIcon.d.ts.map +1 -0
  135. package/dist/typescript/module/shared/translation/constants.d.ts +38 -40
  136. package/dist/typescript/module/shared/translation/constants.d.ts.map +1 -1
  137. package/dist/typescript/module/shared/translation/helpers.d.ts.map +1 -1
  138. package/dist/typescript/module/shared/translation/types.d.ts +4 -1
  139. package/dist/typescript/module/shared/translation/types.d.ts.map +1 -1
  140. package/package.json +1 -1
  141. package/src/features/chatbot/components/ChatControls/ChatControls.tsx +2 -2
  142. package/src/features/chatbot/components/Chatbot.tsx +1 -1
  143. package/src/features/feedback/components/EmptyComment.tsx +5 -8
  144. package/src/features/feedback/components/ListCardCommentsCount.tsx +1 -1
  145. package/src/features/feedback/components/TeacherFeedback.tsx +7 -8
  146. package/src/features/feedback/components/TeacherFeedbackButton/TeacherFeedbackButton.tsx +30 -16
  147. package/src/features/feedback/components/TeacherFeedbackComments/TeacherComment.tsx +3 -5
  148. package/src/features/feedback/components/TeacherFeedbackComments/TeacherFeedbackComments.tsx +2 -10
  149. package/src/features/feedback/components/UnreadMessagesBadge.tsx +10 -3
  150. package/src/features/feedback/constants.ts +12 -3
  151. package/src/features/feedback/helpers.ts +31 -0
  152. package/src/features/feedback/model/api.ts +6 -2
  153. package/src/features/feedback/model/comments.ts +17 -39
  154. package/src/features/feedback/model/model.ts +8 -11
  155. package/src/features/feedback/types.ts +7 -1
  156. package/src/lib/helpers/helpers.ts +24 -16
  157. package/src/lib/localization/en.json +12 -0
  158. package/src/lib/localization/gb.json +12 -0
  159. package/src/lib/localization/sw.json +12 -0
  160. package/src/shared/translation/constants.ts +0 -42
  161. package/src/shared/translation/helpers.ts +17 -17
  162. package/src/shared/translation/types.ts +12 -4
  163. package/dist/commonjs/features/feedback/assets/icons/MessageBubbleIcon.js.map +0 -1
  164. package/dist/commonjs/features/feedback/assets/icons/XCloseIcon.js.map +0 -1
  165. package/dist/module/features/feedback/assets/icons/MessageBubbleIcon.js.map +0 -1
  166. package/dist/module/features/feedback/assets/icons/XCloseIcon.js.map +0 -1
  167. package/dist/typescript/commonjs/features/feedback/assets/icons/MessageBubbleIcon.d.ts.map +0 -1
  168. package/dist/typescript/commonjs/features/feedback/assets/icons/XCloseIcon.d.ts.map +0 -1
  169. package/dist/typescript/module/features/feedback/assets/icons/MessageBubbleIcon.d.ts.map +0 -1
  170. package/dist/typescript/module/features/feedback/assets/icons/XCloseIcon.d.ts.map +0 -1
  171. /package/dist/commonjs/{features/feedback/assets → shared}/icons/MessageBubbleIcon.js +0 -0
  172. /package/dist/commonjs/{features/feedback/assets → shared}/icons/XCloseIcon.js +0 -0
  173. /package/dist/module/{features/feedback/assets → shared}/icons/MessageBubbleIcon.js +0 -0
  174. /package/dist/module/{features/feedback/assets → shared}/icons/XCloseIcon.js +0 -0
  175. /package/dist/typescript/commonjs/{features/feedback/assets → shared}/icons/MessageBubbleIcon.d.ts +0 -0
  176. /package/dist/typescript/commonjs/{features/feedback/assets → shared}/icons/XCloseIcon.d.ts +0 -0
  177. /package/dist/typescript/module/{features/feedback/assets → shared}/icons/MessageBubbleIcon.d.ts +0 -0
  178. /package/dist/typescript/module/{features/feedback/assets → shared}/icons/XCloseIcon.d.ts +0 -0
  179. /package/src/{features/feedback/assets → shared}/icons/MessageBubbleIcon.tsx +0 -0
  180. /package/src/{features/feedback/assets → shared}/icons/XCloseIcon.tsx +0 -0
@@ -1,15 +1,15 @@
1
1
  import React from 'react';
2
- import { FeedbackButtonColors, FeedbackMode } from '../constants';
2
+ import { FeedbackButtonColors, FeedbackButtonSize, FeedbackMode } from '../constants';
3
3
  import { TeacherFeedbackModel } from '../model/model';
4
- import { Locale } from '../../../shared/translation';
5
4
  type TeacherFeedbackProps = {
6
5
  model: TeacherFeedbackModel;
7
6
  mode: FeedbackMode;
8
- locale: Locale;
9
7
  assignmentId: string;
10
8
  problemId: string;
11
- color: FeedbackButtonColors;
9
+ color?: FeedbackButtonColors;
10
+ size?: FeedbackButtonSize;
11
+ heightOffset?: number;
12
12
  };
13
- export declare const TeacherFeedback: ({ model, mode, assignmentId, problemId, locale, color, }: TeacherFeedbackProps) => React.JSX.Element | null;
13
+ export declare const TeacherFeedback: ({ model, mode, assignmentId, problemId, color, size, heightOffset, }: TeacherFeedbackProps) => React.JSX.Element | null;
14
14
  export {};
15
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,EAAsB,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,KAAK,EAAE,oBAAoB,CAAA;CAC5B,CAAA;AAED,eAAO,MAAM,eAAe,6DAOzB,oBAAoB,6BAgCtB,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,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AACrF,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAA;AAErD,KAAK,oBAAoB,GAAG;IAC1B,KAAK,EAAE,oBAAoB,CAAA;IAC3B,IAAI,EAAE,YAAY,CAAA;IAClB,YAAY,EAAE,MAAM,CAAA;IACpB,SAAS,EAAE,MAAM,CAAA;IACjB,KAAK,CAAC,EAAE,oBAAoB,CAAA;IAC5B,IAAI,CAAC,EAAE,kBAAkB,CAAA;IACzB,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,eAAe,yEAQzB,oBAAoB,6BA8BtB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"TeacherFeedbackButton.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/feedback/components/TeacherFeedbackButton/TeacherFeedbackButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAOzB,OAAO,EACL,oBAAoB,EACpB,kBAAkB,EAEnB,MAAM,iBAAiB,CAAA;AAOxB,KAAK,0BAA0B,GAAG;IAChC,MAAM,EAAE,OAAO,CAAA;IACf,SAAS,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,IAAI,CAAC,EAAE,kBAAkB,CAAA;IACzB,KAAK,CAAC,EAAE,oBAAoB,CAAA;CAC7B,CAAA;AAED,eAAO,MAAM,qBAAqB,sEAO/B,0BAA0B,sBA6D5B,CAAA"}
1
+ {"version":3,"file":"TeacherFeedbackButton.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/feedback/components/TeacherFeedbackButton/TeacherFeedbackButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAOzB,OAAO,EACL,oBAAoB,EACpB,kBAAkB,EAEnB,MAAM,iBAAiB,CAAA;AA2BxB,KAAK,0BAA0B,GAAG;IAChC,MAAM,EAAE,OAAO,CAAA;IACf,SAAS,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,IAAI,CAAC,EAAE,kBAAkB,CAAA;IACzB,KAAK,CAAC,EAAE,oBAAoB,CAAA;CAC7B,CAAA;AAED,eAAO,MAAM,qBAAqB,sEAO/B,0BAA0B,sBAuD5B,CAAA"}
@@ -1,12 +1,10 @@
1
1
  import React from 'react';
2
2
  import { StyleProp, ViewStyle } from 'react-native';
3
3
  import { TeacherComment as TeacherCommentEntity } from '../../types';
4
- import { Locale } from '../../../../shared/translation/types';
5
4
  type TeacherCommentProps = {
6
5
  comment: TeacherCommentEntity;
7
- locale: Locale | null;
8
- style: StyleProp<ViewStyle>;
6
+ style?: StyleProp<ViewStyle>;
9
7
  };
10
- export declare const TeacherComment: ({ comment, locale, style }: TeacherCommentProps) => React.JSX.Element;
8
+ export declare const TeacherComment: ({ comment, style }: TeacherCommentProps) => React.JSX.Element;
11
9
  export {};
12
10
  //# 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;AACzB,OAAO,EAA0B,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAI3E,OAAO,EAAE,cAAc,IAAI,oBAAoB,EAAE,MAAM,aAAa,CAAA;AACpE,OAAO,EAAE,MAAM,EAAE,MAAM,sCAAsC,CAAA;AAE7D,KAAK,mBAAmB,GAAG;IACzB,OAAO,EAAE,oBAAoB,CAAA;IAC7B,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB,KAAK,EAAE,SAAS,CAAC,SAAS,CAAC,CAAA;CAC5B,CAAA;AAED,eAAO,MAAM,cAAc,+BAAgC,mBAAmB,sBAkB7E,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;AACzB,OAAO,EAA0B,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAI3E,OAAO,EAAE,cAAc,IAAI,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAEpE,KAAK,mBAAmB,GAAG;IACzB,OAAO,EAAE,oBAAoB,CAAA;IAC7B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAA;CAC7B,CAAA;AAED,eAAO,MAAM,cAAc,uBAAwB,mBAAmB,sBAkBrE,CAAA"}
@@ -1,13 +1,11 @@
1
1
  import React from 'react';
2
2
  import { FeedbackMode } from '../../constants';
3
- import { Locale } from '../../../../shared/translation';
4
3
  import { TeacherComment as TeacherCommentEntity } from '../../types';
5
4
  type TeacherFeedbackCommentsProps = {
6
- comments: TeacherCommentEntity[] | null;
7
- locale: Locale | null;
5
+ comments: TeacherCommentEntity[];
8
6
  mode: FeedbackMode;
9
7
  maxHeightOffset: number;
10
8
  };
11
- export declare const TeacherFeedbackComments: ({ comments, locale, mode, maxHeightOffset, }: TeacherFeedbackCommentsProps) => React.JSX.Element | null;
9
+ export declare const TeacherFeedbackComments: ({ comments, maxHeightOffset, }: TeacherFeedbackCommentsProps) => React.JSX.Element;
12
10
  export {};
13
11
  //# sourceMappingURL=TeacherFeedbackComments.d.ts.map
@@ -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;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;AAQpE,KAAK,4BAA4B,GAAG;IAClC,QAAQ,EAAE,oBAAoB,EAAE,GAAG,IAAI,CAAA;IACvC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB,IAAI,EAAE,YAAY,CAAA;IAClB,eAAe,EAAE,MAAM,CAAA;CACxB,CAAA;AAED,eAAO,MAAM,uBAAuB,iDAKjC,4BAA4B,6BAkC9B,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,cAAc,IAAI,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAQpE,KAAK,4BAA4B,GAAG;IAClC,QAAQ,EAAE,oBAAoB,EAAE,CAAA;IAChC,IAAI,EAAE,YAAY,CAAA;IAClB,eAAe,EAAE,MAAM,CAAA;CACxB,CAAA;AAED,eAAO,MAAM,uBAAuB,mCAGjC,4BAA4B,sBA8B9B,CAAA"}
@@ -6,6 +6,6 @@ type UnreadMessagesBadgeProps = {
6
6
  style?: StyleProp<ViewStyle>;
7
7
  textStyle?: StyleProp<TextStyle>;
8
8
  };
9
- export declare const UnreadMessagesBadge: ({ badgeContent, withBorder, style, textStyle }: UnreadMessagesBadgeProps) => React.JSX.Element;
9
+ export declare const UnreadMessagesBadge: ({ badgeContent, withBorder, style, textStyle, }: UnreadMessagesBadgeProps) => React.JSX.Element;
10
10
  export {};
11
11
  //# sourceMappingURL=UnreadMessagesBadge.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"UnreadMessagesBadge.d.ts","sourceRoot":"","sources":["../../../../../../src/features/feedback/components/UnreadMessagesBadge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAoC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAGhG,KAAK,wBAAwB,GAAG;IAC9B,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAA;IAC5B,SAAS,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAA;CACjC,CAAA;AAED,eAAO,MAAM,mBAAmB,mDAA4D,wBAAwB,sBAcnH,CAAA"}
1
+ {"version":3,"file":"UnreadMessagesBadge.d.ts","sourceRoot":"","sources":["../../../../../../src/features/feedback/components/UnreadMessagesBadge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAoC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAGhG,KAAK,wBAAwB,GAAG;IAC9B,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAA;IAC5B,SAAS,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAA;CACjC,CAAA;AAED,eAAO,MAAM,mBAAmB,oDAK7B,wBAAwB,sBAgB1B,CAAA"}
@@ -1,6 +1,5 @@
1
+ import { NoCommentsMessage } from './types';
1
2
  export declare const BUENOS_AIRES_FONT: string;
2
- export declare const NO_COMMENTS_ENG = "No comments yet";
3
- export declare const NO_COMMENTS_SWE = "Inga kommentarer \u00E4n";
4
3
  export declare const EMPTY_COMMENT_ID = "empty-comment";
5
4
  export declare const TEACHER_FEEDBACK_BUTTON_ID = "teacherFeedbackButton";
6
5
  export declare enum FeedbackButtonColors {
@@ -15,4 +14,5 @@ export declare enum FeedbackMode {
15
14
  SIMPLE = "SIMPLE",
16
15
  NORMAL = "NORMAL"
17
16
  }
17
+ export declare const EMPTY_COMMENT: NoCommentsMessage;
18
18
  //# sourceMappingURL=constants.d.ts.map
@@ -1 +1 @@
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
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/features/feedback/constants.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAE3C,eAAO,MAAM,iBAAiB,QAC8C,CAAA;AAE5E,eAAO,MAAM,gBAAgB,kBAAkB,CAAA;AAC/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;AAED,eAAO,MAAM,aAAa,EAAE,iBASlB,CAAA"}
@@ -1,4 +1,4 @@
1
- import { CommentsMap, GetCommentsResponse } from './types';
1
+ import { CommentsMap, FeedbackEntity, GetCommentsResponse } from './types';
2
2
  export declare function generateCommentsMap(assignmentId: string, data: GetCommentsResponse): CommentsMap;
3
3
  type FindCommentsByCreditsProps = {
4
4
  data: CommentsMap | null;
@@ -6,5 +6,14 @@ type FindCommentsByCreditsProps = {
6
6
  problemId: string;
7
7
  };
8
8
  export declare function findCommentsByCredits({ data, assignmentId, problemId, }: FindCommentsByCreditsProps): import("./types").TeacherComment[];
9
+ type UpdateCommentsStateProps = {
10
+ state: CommentsMap | null;
11
+ assignmentId: string;
12
+ problemId: string;
13
+ fn: (data: FeedbackEntity) => FeedbackEntity | undefined;
14
+ };
15
+ export declare function updateCommentsState({ state, assignmentId, problemId, fn, }: UpdateCommentsStateProps): Map<string, {
16
+ [problemId: string]: FeedbackEntity;
17
+ }> | null;
9
18
  export {};
10
19
  //# 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,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
+ {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../src/features/feedback/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,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;AAED,KAAK,wBAAwB,GAAG;IAC9B,KAAK,EAAE,WAAW,GAAG,IAAI,CAAA;IACzB,YAAY,EAAE,MAAM,CAAA;IACpB,SAAS,EAAE,MAAM,CAAA;IACjB,EAAE,EAAE,CAAC,IAAI,EAAE,cAAc,KAAK,cAAc,GAAG,SAAS,CAAA;CACzD,CAAA;AAED,wBAAgB,mBAAmB,CAAC,EAClC,KAAK,EACL,YAAY,EACZ,SAAS,EACT,EAAE,GACH,EAAE,wBAAwB;;UAiB1B"}
@@ -1,9 +1,13 @@
1
1
  import { Effect } from 'effector';
2
- import { TeacherFeedbackModelProps } from './model';
3
2
  import { GetCommentsPayload, GetCommentsResponse, UpdateCommentStatusSeenPayload } from '../types';
3
+ type TeacherFeedbackAPIProps = {
4
+ getComments: (props: GetCommentsPayload) => Promise<GetCommentsResponse>;
5
+ updateCommentStatusSeen: (props: UpdateCommentStatusSeenPayload) => Promise<void>;
6
+ };
4
7
  export declare class TeacherFeedbackAPI {
5
8
  readonly getCommentsFx: Effect<GetCommentsPayload, GetCommentsResponse>;
6
9
  readonly updateCommentStatusSeenFx: Effect<UpdateCommentStatusSeenPayload, void>;
7
- constructor(api: TeacherFeedbackModelProps['api']);
10
+ constructor(api: TeacherFeedbackAPIProps);
8
11
  }
12
+ export {};
9
13
  //# sourceMappingURL=api.d.ts.map
@@ -1 +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"}
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,kBAAkB,EAAE,mBAAmB,EAAE,8BAA8B,EAAE,MAAM,UAAU,CAAA;AAElG,KAAK,uBAAuB,GAAG;IAC7B,WAAW,EAAE,CAAC,KAAK,EAAE,kBAAkB,KAAK,OAAO,CAAC,mBAAmB,CAAC,CAAA;IACxE,uBAAuB,EAAE,CAAC,KAAK,EAAE,8BAA8B,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;CAClF,CAAA;AAED,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,uBAAuB;CAIzC"}
@@ -1,20 +1,18 @@
1
1
  import { Store } from 'effector';
2
- import { CommentsMap, Credits, TeacherComment } from '../types';
2
+ import { AddCommentProps, CommentsMap, Credits, DeleteCommentProps } from '../types';
3
3
  import { TeacherFeedbackAPI } from './api';
4
- import { TeacherFeedbackModelProps } from './model';
5
- export declare class TeacherComments {
4
+ type TeacherCommentsModelProps = {
5
+ api: TeacherFeedbackAPI;
6
+ $isOpen: Store<boolean>;
7
+ };
8
+ export declare class TeacherCommentsModel {
6
9
  private readonly setNoCommentsMessage;
7
10
  readonly setAllCommentsRead: import("effector").EventCallable<Credits>;
8
- readonly add: import("effector").EventCallable<Credits & {
9
- comment: TeacherComment;
10
- isRead: boolean;
11
- }>;
12
- readonly delete: import("effector").EventCallable<Credits & {
13
- commentId: string;
14
- }>;
11
+ readonly add: import("effector").EventCallable<AddCommentProps>;
12
+ readonly delete: import("effector").EventCallable<DeleteCommentProps>;
15
13
  readonly setData: import("effector").EventCallable<CommentsMap>;
16
14
  readonly $data: import("effector").StoreWritable<CommentsMap | null>;
17
- constructor(api: TeacherFeedbackAPI, $isOpen: Store<boolean>, EMPTY_COMMENT: TeacherFeedbackModelProps['defaults']['EMPTY_COMMENT']);
18
- private update;
15
+ constructor({ api, $isOpen }: TeacherCommentsModelProps);
19
16
  }
17
+ export {};
20
18
  //# sourceMappingURL=comments.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"comments.d.ts","sourceRoot":"","sources":["../../../../../../src/features/feedback/model/comments.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgC,KAAK,EAAE,MAAM,UAAU,CAAA;AAC9D,OAAO,EAAE,WAAW,EAAE,OAAO,EAAkB,cAAc,EAAE,MAAM,UAAU,CAAA;AAC/E,OAAO,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAA;AAC1C,OAAO,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAA;AASnD,qBAAa,eAAe;IAC1B,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAAgC;IACrE,SAAgB,kBAAkB,4CAAyB;IAC3D,SAAgB,GAAG;iBAAoC,cAAc;gBAAU,OAAO;OAAK;IAC3F,SAAgB,MAAM;mBAAsC,MAAM;OAAK;IAEvE,SAAgB,OAAO,gDAA6B;IACpD,SAAgB,KAAK,uDAsDlB;gBAGD,GAAG,EAAE,kBAAkB,EACvB,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,EACvB,aAAa,EAAE,yBAAyB,CAAC,UAAU,CAAC,CAAC,eAAe,CAAC;IA8BvE,OAAO,CAAC,MAAM;CAkBf"}
1
+ {"version":3,"file":"comments.d.ts","sourceRoot":"","sources":["../../../../../../src/features/feedback/model/comments.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgC,KAAK,EAAE,MAAM,UAAU,CAAA;AAC9D,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,OAAO,EAAE,kBAAkB,EAAkB,MAAM,UAAU,CAAA;AACpG,OAAO,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAA;AAK1C,KAAK,yBAAyB,GAAG;IAC/B,GAAG,EAAE,kBAAkB,CAAA;IACvB,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,CAAA;CACxB,CAAA;AAED,qBAAa,oBAAoB;IAC/B,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAAgC;IACrE,SAAgB,kBAAkB,4CAAyB;IAC3D,SAAgB,GAAG,oDAAiC;IACpD,SAAgB,MAAM,uDAAoC;IAE1D,SAAgB,OAAO,gDAA6B;IACpD,SAAgB,KAAK,uDAsDlB;gBAES,EAAE,GAAG,EAAE,OAAO,EAAE,EAAE,yBAAyB;CA6BxD"}
@@ -1,8 +1,8 @@
1
1
  import { Store } from 'effector';
2
2
  import { TeacherFeedbackAPI } from './api';
3
3
  import { TeacherFeedbackSockets } from './sockets';
4
- import { TeacherComments } from './comments';
5
- import { GetCommentsPayload, GetCommentsResponse, NoCommentsMessage, UpdateCommentStatusSeenPayload } from '../types';
4
+ import { TeacherCommentsModel } from './comments';
5
+ import { GetCommentsPayload, GetCommentsResponse, UpdateCommentStatusSeenPayload } from '../types';
6
6
  export type TeacherFeedbackModelProps = {
7
7
  api: {
8
8
  getComments: (props: GetCommentsPayload) => Promise<GetCommentsResponse>;
@@ -13,18 +13,15 @@ export type TeacherFeedbackModelProps = {
13
13
  $assignmentId: Store<string>;
14
14
  $problemId: Store<string>;
15
15
  };
16
- defaults: {
17
- EMPTY_COMMENT: NoCommentsMessage;
18
- };
19
16
  };
20
17
  export declare class TeacherFeedbackModel {
21
18
  readonly sockets: TeacherFeedbackSockets;
22
19
  readonly api: TeacherFeedbackAPI;
23
- readonly comments: TeacherComments;
20
+ readonly comments: TeacherCommentsModel;
24
21
  readonly setIsOpen: import("effector").EventCallable<boolean>;
25
22
  readonly $isOpen: import("effector").StoreWritable<boolean>;
26
23
  readonly setIsFeedbackIconDisplayed: import("effector").EventCallable<boolean>;
27
24
  readonly $isFeedbackIconDisplayed: import("effector").StoreWritable<boolean>;
28
- constructor({ api, socket, credits, defaults }: TeacherFeedbackModelProps);
25
+ constructor({ api, socket, credits }: TeacherFeedbackModelProps);
29
26
  }
30
27
  //# sourceMappingURL=model.d.ts.map
@@ -1 +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;AAC1C,OAAO,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAA;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAE5C,OAAO,EACL,kBAAkB,EAClB,mBAAmB,EACnB,iBAAiB,EACjB,8BAA8B,EAC/B,MAAM,UAAU,CAAA;AAGjB,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,iBAAiB,CAAA;KAAE,CAAA;CAC/C,CAAA;AAED,qBAAa,oBAAoB;IAC/B,SAAgB,OAAO,EAAE,sBAAsB,CAAA;IAC/C,SAAgB,GAAG,EAAE,kBAAkB,CAAA;IACvC,SAAgB,QAAQ,EAAE,eAAe,CAAA;IACzC,SAAgB,SAAS,4CAAyB;IAClD,SAAgB,OAAO,4CAAiC;IAExD,SAAgB,0BAA0B,4CAAyB;IACnE,SAAgB,wBAAwB,4CAAiD;gBAE7E,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,yBAAyB;CA2F1E"}
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;AAC1C,OAAO,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAA;AAClD,OAAO,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAA;AAEjD,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,8BAA8B,EAAE,MAAM,UAAU,CAAA;AAGlG,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;CACF,CAAA;AAED,qBAAa,oBAAoB;IAC/B,SAAgB,OAAO,EAAE,sBAAsB,CAAA;IAC/C,SAAgB,GAAG,EAAE,kBAAkB,CAAA;IACvC,SAAgB,QAAQ,EAAE,oBAAoB,CAAA;IAC9C,SAAgB,SAAS,4CAAyB;IAClD,SAAgB,OAAO,4CAAiC;IAExD,SAAgB,0BAA0B,4CAAyB;IACnE,SAAgB,wBAAwB,4CAAiD;gBAE7E,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,yBAAyB;CA8FhE"}
@@ -23,7 +23,7 @@ export type TeacherComment = {
23
23
  updatedAt: Date;
24
24
  __v: number;
25
25
  };
26
- export type NoCommentsMessage = Omit<TeacherComment, '_id' | 'problemId' | 'exerciseId'> & {
26
+ export type NoCommentsMessage = Omit<TeacherComment, '_id' | 'problemId' | 'exerciseId' | 'content'> & {
27
27
  _id: typeof EMPTY_COMMENT_ID;
28
28
  };
29
29
  export type FeedbackEntity = {
@@ -41,4 +41,11 @@ export declare enum FeedbackSocketEvents {
41
41
  COMMENT_ADDED = "exerciseCommentCreated",
42
42
  COMMENT_DELETED = "exerciseCommentDeleted"
43
43
  }
44
+ export type AddCommentProps = Credits & {
45
+ comment: TeacherComment;
46
+ isRead: boolean;
47
+ };
48
+ export type DeleteCommentProps = Credits & {
49
+ commentId: string;
50
+ };
44
51
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/features/feedback/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAE9C,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,iBAAiB,GAAG,IAAI,CAAC,cAAc,EAAE,KAAK,GAAG,WAAW,GAAG,YAAY,CAAC,GAAG;IACzF,GAAG,EAAE,OAAO,gBAAgB,CAAA;CAC7B,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
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/features/feedback/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAE9C,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,iBAAiB,GAAG,IAAI,CAClC,cAAc,EACd,KAAK,GAAG,WAAW,GAAG,YAAY,GAAG,SAAS,CAC/C,GAAG;IACF,GAAG,EAAE,OAAO,gBAAgB,CAAA;CAC7B,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;AAED,MAAM,MAAM,eAAe,GAAG,OAAO,GAAG;IAAE,OAAO,EAAE,cAAc,CAAC;IAAC,MAAM,EAAE,OAAO,CAAA;CAAE,CAAA;AACpF,MAAM,MAAM,kBAAkB,GAAG,OAAO,GAAG;IAAE,SAAS,EAAE,MAAM,CAAA;CAAE,CAAA"}
@@ -1,4 +1,3 @@
1
- import { Locale } from '@magmamath/students-features';
2
1
  export declare const generateRandomId: () => string;
3
- export declare const getRelativeTimeText: (date: Date, lang: Locale) => string;
2
+ export declare const getRelativeTimeText: (date: Date) => string;
4
3
  //# sourceMappingURL=helpers.d.ts.map
@@ -1 +1 @@
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"}
1
+ {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../src/lib/helpers/helpers.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB,cACsC,CAAA;AASnE,eAAO,MAAM,mBAAmB,SAAU,IAAI,WAuB7C,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MessageBubbleIcon.d.ts","sourceRoot":"","sources":["../../../../../src/shared/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/shared/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,47 +1,45 @@
1
1
  export declare const LOCALIZATION_CONFIGS: {
2
- "en-SE": {};
3
- "en-GB": {};
4
- "sv-SE": {};
5
- };
6
- export declare const RELATIVE_TIME_LABELS: {
7
2
  "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;
3
+ "teacherFeedback.noComments": string;
4
+ "time.justNow": string;
5
+ "time.minuteAgo": string;
6
+ "time.minutesAgo": string;
7
+ "time.hourAgo": string;
8
+ "time.hoursAgo": string;
9
+ "time.dayAgo": string;
10
+ "time.daysAgo": string;
11
+ "time.monthAgo": string;
12
+ "time.monthsAgo": string;
13
+ "time.yearAgo": string;
14
+ "time.yearsAgo": string;
32
15
  };
33
16
  "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;
17
+ "teacherFeedback.noComments": string;
18
+ "time.justNow": string;
19
+ "time.minuteAgo": string;
20
+ "time.minutesAgo": string;
21
+ "time.hourAgo": string;
22
+ "time.hoursAgo": string;
23
+ "time.dayAgo": string;
24
+ "time.daysAgo": string;
25
+ "time.monthAgo": string;
26
+ "time.monthsAgo": string;
27
+ "time.yearAgo": string;
28
+ "time.yearsAgo": string;
29
+ };
30
+ "sv-SE": {
31
+ "teacherFeedback.noComments": string;
32
+ "time.justNow": string;
33
+ "time.minuteAgo": string;
34
+ "time.minutesAgo": string;
35
+ "time.hourAgo": string;
36
+ "time.hoursAgo": string;
37
+ "time.dayAgo": string;
38
+ "time.daysAgo": string;
39
+ "time.monthAgo": string;
40
+ "time.monthsAgo": string;
41
+ "time.yearAgo": string;
42
+ "time.yearsAgo": string;
45
43
  };
46
44
  };
47
45
  //# 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;AAED,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwChC,CAAA"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/shared/translation/constants.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIhC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../src/shared/translation/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAElD,OAAO,EAAE,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAErD,eAAO,MAAM,oBAAoB,QAAS,MAAM,kBAAiB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,WAWtF,CAAA;AAED,eAAO,MAAM,OAAO,EAAE,OAUrB,CAAA;AAED,eAAO,MAAM,uBAAuB,cACrB,CAAC,CAAC,MAAM,EAAE,OAAO,oBAAoB,KAAK,kBAAkB,CAAC,GAAG,kBAAkB,SAGhG,CAAA"}
1
+ {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../src/shared/translation/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAElD,OAAO,EAAE,OAAO,EAAE,kBAAkB,EAAmB,MAAM,SAAS,CAAA;AAEtE,eAAO,MAAM,oBAAoB,QAAS,MAAM,kBAAiB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,WAWtF,CAAA;AAED,eAAO,MAAM,OAAO,EAAE,OAUrB,CAAA;AAED,eAAO,MAAM,uBAAuB,cACvB,CAAC,CAAC,MAAM,EAAE,OAAO,oBAAoB,KAAK,kBAAkB,CAAC,GAAG,kBAAkB,SAG9F,CAAA"}
@@ -1,4 +1,7 @@
1
- export type GetText = (key: string, args?: Record<string, string> | null) => string;
1
+ import enTranslations from '../../lib/localization/en.json';
2
+ export type Translations = typeof enTranslations;
3
+ export type TranslationKeys = keyof Translations;
4
+ export type GetText = <T extends TranslationKeys>(key: T, args?: Record<string, string> | null) => Translations[T];
2
5
  export declare enum Locale {
3
6
  EN = "en-SE",
4
7
  SW = "sv-SE",
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/shared/translation/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,OAAO,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,KAAK,MAAM,CAAA;AAEnF,oBAAY,MAAM;IACd,EAAE,UAAU;IACZ,EAAE,UAAU;IACZ,EAAE,UAAU;CACf;AAED,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/shared/translation/types.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,gCAAgC,CAAA;AAE3D,MAAM,MAAM,YAAY,GAAG,OAAO,cAAc,CAAA;AAChD,MAAM,MAAM,eAAe,GAAG,MAAM,YAAY,CAAA;AAEhD,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,SAAS,eAAe,EAC9C,GAAG,EAAE,CAAC,EACN,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,KACjC,YAAY,CAAC,CAAC,CAAC,CAAA;AAEpB,oBAAY,MAAM;IAChB,EAAE,UAAU;IACZ,EAAE,UAAU;IACZ,EAAE,UAAU;CACb;AAED,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"Chatbot.d.ts","sourceRoot":"","sources":["../../../../../../src/features/chatbot/components/Chatbot.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEnE,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAG7C,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAA;AACvD,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AACtD,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,KAAK,YAAY,GAAG;IAClB,KAAK,EAAE,YAAY,CAAA;IACnB,yBAAyB,EAAE,MAAM,CAAA;IACjC,cAAc,EAAE,OAAO,CAAA;IACvB,sBAAsB,EAAE,IAAI,CAAC,kBAAkB,EAAE,MAAM,CAAC,CAAA;IACxD,mBAAmB,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,MAAM,CAAA;IAC/C,qBAAqB,EAAE,OAAO,CAAA;IAC9B,oBAAoB,EAAE,OAAO,CAAA;IAC7B,kBAAkB,CAAC,EAAE;QACnB,KAAK,EAAE,OAAO,aAAa,CAAA;QAC3B,WAAW,EAAE,OAAO,YAAY,CAAA;KACjC,CAAA;IACD,aAAa,EAAE,aAAa,CAAC,iBAAiB,CAAC,CAAA;IAC/C,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,eAAe,KAAK,SAAS,CAAA;CACjD,CAAA;AAED,eAAO,MAAM,OAAO,iMAWjB,YAAY,6BA+Cd,CAAA"}
1
+ {"version":3,"file":"Chatbot.d.ts","sourceRoot":"","sources":["../../../../../../src/features/chatbot/components/Chatbot.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,SAAS,EAAa,MAAM,OAAO,CAAA;AAE9E,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAG7C,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAA;AACvD,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AACtD,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,KAAK,YAAY,GAAG;IAClB,KAAK,EAAE,YAAY,CAAA;IACnB,yBAAyB,EAAE,MAAM,CAAA;IACjC,cAAc,EAAE,OAAO,CAAA;IACvB,sBAAsB,EAAE,IAAI,CAAC,kBAAkB,EAAE,MAAM,CAAC,CAAA;IACxD,mBAAmB,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,MAAM,CAAA;IAC/C,qBAAqB,EAAE,OAAO,CAAA;IAC9B,oBAAoB,EAAE,OAAO,CAAA;IAC7B,kBAAkB,CAAC,EAAE;QACnB,KAAK,EAAE,OAAO,aAAa,CAAA;QAC3B,WAAW,EAAE,OAAO,YAAY,CAAA;KACjC,CAAA;IACD,aAAa,EAAE,aAAa,CAAC,iBAAiB,CAAC,CAAA;IAC/C,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,eAAe,KAAK,SAAS,CAAA;CACjD,CAAA;AAED,eAAO,MAAM,OAAO,iMAWjB,YAAY,6BA+Cd,CAAA"}
@@ -1,8 +1,3 @@
1
1
  import React from 'react';
2
- import { Locale } from '../../../shared/translation/types';
3
- type EmptyCommentProps = {
4
- locale: Locale | null;
5
- };
6
- export declare const EmptyComment: ({ locale }: EmptyCommentProps) => React.JSX.Element;
7
- export {};
2
+ export declare const EmptyComment: () => React.JSX.Element;
8
3
  //# sourceMappingURL=EmptyComment.d.ts.map
@@ -1 +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"}
1
+ {"version":3,"file":"EmptyComment.d.ts","sourceRoot":"","sources":["../../../../../../src/features/feedback/components/EmptyComment.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAMzB,eAAO,MAAM,YAAY,yBAOxB,CAAA"}
@@ -1,15 +1,15 @@
1
1
  import React from 'react';
2
- import { FeedbackButtonColors, FeedbackMode } from '../constants';
2
+ import { FeedbackButtonColors, FeedbackButtonSize, FeedbackMode } from '../constants';
3
3
  import { TeacherFeedbackModel } from '../model/model';
4
- import { Locale } from '../../../shared/translation';
5
4
  type TeacherFeedbackProps = {
6
5
  model: TeacherFeedbackModel;
7
6
  mode: FeedbackMode;
8
- locale: Locale;
9
7
  assignmentId: string;
10
8
  problemId: string;
11
- color: FeedbackButtonColors;
9
+ color?: FeedbackButtonColors;
10
+ size?: FeedbackButtonSize;
11
+ heightOffset?: number;
12
12
  };
13
- export declare const TeacherFeedback: ({ model, mode, assignmentId, problemId, locale, color, }: TeacherFeedbackProps) => React.JSX.Element | null;
13
+ export declare const TeacherFeedback: ({ model, mode, assignmentId, problemId, color, size, heightOffset, }: TeacherFeedbackProps) => React.JSX.Element | null;
14
14
  export {};
15
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,EAAsB,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,KAAK,EAAE,oBAAoB,CAAA;CAC5B,CAAA;AAED,eAAO,MAAM,eAAe,6DAOzB,oBAAoB,6BAgCtB,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,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AACrF,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAA;AAErD,KAAK,oBAAoB,GAAG;IAC1B,KAAK,EAAE,oBAAoB,CAAA;IAC3B,IAAI,EAAE,YAAY,CAAA;IAClB,YAAY,EAAE,MAAM,CAAA;IACpB,SAAS,EAAE,MAAM,CAAA;IACjB,KAAK,CAAC,EAAE,oBAAoB,CAAA;IAC5B,IAAI,CAAC,EAAE,kBAAkB,CAAA;IACzB,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,eAAe,yEAQzB,oBAAoB,6BA8BtB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"TeacherFeedbackButton.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/feedback/components/TeacherFeedbackButton/TeacherFeedbackButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAOzB,OAAO,EACL,oBAAoB,EACpB,kBAAkB,EAEnB,MAAM,iBAAiB,CAAA;AAOxB,KAAK,0BAA0B,GAAG;IAChC,MAAM,EAAE,OAAO,CAAA;IACf,SAAS,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,IAAI,CAAC,EAAE,kBAAkB,CAAA;IACzB,KAAK,CAAC,EAAE,oBAAoB,CAAA;CAC7B,CAAA;AAED,eAAO,MAAM,qBAAqB,sEAO/B,0BAA0B,sBA6D5B,CAAA"}
1
+ {"version":3,"file":"TeacherFeedbackButton.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/feedback/components/TeacherFeedbackButton/TeacherFeedbackButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAOzB,OAAO,EACL,oBAAoB,EACpB,kBAAkB,EAEnB,MAAM,iBAAiB,CAAA;AA2BxB,KAAK,0BAA0B,GAAG;IAChC,MAAM,EAAE,OAAO,CAAA;IACf,SAAS,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,IAAI,CAAC,EAAE,kBAAkB,CAAA;IACzB,KAAK,CAAC,EAAE,oBAAoB,CAAA;CAC7B,CAAA;AAED,eAAO,MAAM,qBAAqB,sEAO/B,0BAA0B,sBAuD5B,CAAA"}
@@ -1,12 +1,10 @@
1
1
  import React from 'react';
2
2
  import { StyleProp, ViewStyle } from 'react-native';
3
3
  import { TeacherComment as TeacherCommentEntity } from '../../types';
4
- import { Locale } from '../../../../shared/translation/types';
5
4
  type TeacherCommentProps = {
6
5
  comment: TeacherCommentEntity;
7
- locale: Locale | null;
8
- style: StyleProp<ViewStyle>;
6
+ style?: StyleProp<ViewStyle>;
9
7
  };
10
- export declare const TeacherComment: ({ comment, locale, style }: TeacherCommentProps) => React.JSX.Element;
8
+ export declare const TeacherComment: ({ comment, style }: TeacherCommentProps) => React.JSX.Element;
11
9
  export {};
12
10
  //# 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;AACzB,OAAO,EAA0B,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAI3E,OAAO,EAAE,cAAc,IAAI,oBAAoB,EAAE,MAAM,aAAa,CAAA;AACpE,OAAO,EAAE,MAAM,EAAE,MAAM,sCAAsC,CAAA;AAE7D,KAAK,mBAAmB,GAAG;IACzB,OAAO,EAAE,oBAAoB,CAAA;IAC7B,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB,KAAK,EAAE,SAAS,CAAC,SAAS,CAAC,CAAA;CAC5B,CAAA;AAED,eAAO,MAAM,cAAc,+BAAgC,mBAAmB,sBAkB7E,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;AACzB,OAAO,EAA0B,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAI3E,OAAO,EAAE,cAAc,IAAI,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAEpE,KAAK,mBAAmB,GAAG;IACzB,OAAO,EAAE,oBAAoB,CAAA;IAC7B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAA;CAC7B,CAAA;AAED,eAAO,MAAM,cAAc,uBAAwB,mBAAmB,sBAkBrE,CAAA"}
@@ -1,13 +1,11 @@
1
1
  import React from 'react';
2
2
  import { FeedbackMode } from '../../constants';
3
- import { Locale } from '../../../../shared/translation';
4
3
  import { TeacherComment as TeacherCommentEntity } from '../../types';
5
4
  type TeacherFeedbackCommentsProps = {
6
- comments: TeacherCommentEntity[] | null;
7
- locale: Locale | null;
5
+ comments: TeacherCommentEntity[];
8
6
  mode: FeedbackMode;
9
7
  maxHeightOffset: number;
10
8
  };
11
- export declare const TeacherFeedbackComments: ({ comments, locale, mode, maxHeightOffset, }: TeacherFeedbackCommentsProps) => React.JSX.Element | null;
9
+ export declare const TeacherFeedbackComments: ({ comments, maxHeightOffset, }: TeacherFeedbackCommentsProps) => React.JSX.Element;
12
10
  export {};
13
11
  //# sourceMappingURL=TeacherFeedbackComments.d.ts.map
@@ -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;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;AAQpE,KAAK,4BAA4B,GAAG;IAClC,QAAQ,EAAE,oBAAoB,EAAE,GAAG,IAAI,CAAA;IACvC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB,IAAI,EAAE,YAAY,CAAA;IAClB,eAAe,EAAE,MAAM,CAAA;CACxB,CAAA;AAED,eAAO,MAAM,uBAAuB,iDAKjC,4BAA4B,6BAkC9B,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,cAAc,IAAI,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAQpE,KAAK,4BAA4B,GAAG;IAClC,QAAQ,EAAE,oBAAoB,EAAE,CAAA;IAChC,IAAI,EAAE,YAAY,CAAA;IAClB,eAAe,EAAE,MAAM,CAAA;CACxB,CAAA;AAED,eAAO,MAAM,uBAAuB,mCAGjC,4BAA4B,sBA8B9B,CAAA"}
@@ -6,6 +6,6 @@ type UnreadMessagesBadgeProps = {
6
6
  style?: StyleProp<ViewStyle>;
7
7
  textStyle?: StyleProp<TextStyle>;
8
8
  };
9
- export declare const UnreadMessagesBadge: ({ badgeContent, withBorder, style, textStyle }: UnreadMessagesBadgeProps) => React.JSX.Element;
9
+ export declare const UnreadMessagesBadge: ({ badgeContent, withBorder, style, textStyle, }: UnreadMessagesBadgeProps) => React.JSX.Element;
10
10
  export {};
11
11
  //# sourceMappingURL=UnreadMessagesBadge.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"UnreadMessagesBadge.d.ts","sourceRoot":"","sources":["../../../../../../src/features/feedback/components/UnreadMessagesBadge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAoC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAGhG,KAAK,wBAAwB,GAAG;IAC9B,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAA;IAC5B,SAAS,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAA;CACjC,CAAA;AAED,eAAO,MAAM,mBAAmB,mDAA4D,wBAAwB,sBAcnH,CAAA"}
1
+ {"version":3,"file":"UnreadMessagesBadge.d.ts","sourceRoot":"","sources":["../../../../../../src/features/feedback/components/UnreadMessagesBadge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAoC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAGhG,KAAK,wBAAwB,GAAG;IAC9B,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAA;IAC5B,SAAS,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAA;CACjC,CAAA;AAED,eAAO,MAAM,mBAAmB,oDAK7B,wBAAwB,sBAgB1B,CAAA"}
@@ -1,6 +1,5 @@
1
+ import { NoCommentsMessage } from './types';
1
2
  export declare const BUENOS_AIRES_FONT: string;
2
- export declare const NO_COMMENTS_ENG = "No comments yet";
3
- export declare const NO_COMMENTS_SWE = "Inga kommentarer \u00E4n";
4
3
  export declare const EMPTY_COMMENT_ID = "empty-comment";
5
4
  export declare const TEACHER_FEEDBACK_BUTTON_ID = "teacherFeedbackButton";
6
5
  export declare enum FeedbackButtonColors {
@@ -15,4 +14,5 @@ export declare enum FeedbackMode {
15
14
  SIMPLE = "SIMPLE",
16
15
  NORMAL = "NORMAL"
17
16
  }
17
+ export declare const EMPTY_COMMENT: NoCommentsMessage;
18
18
  //# sourceMappingURL=constants.d.ts.map
@@ -1 +1 @@
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
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/features/feedback/constants.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAE3C,eAAO,MAAM,iBAAiB,QAC8C,CAAA;AAE5E,eAAO,MAAM,gBAAgB,kBAAkB,CAAA;AAC/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;AAED,eAAO,MAAM,aAAa,EAAE,iBASlB,CAAA"}
@@ -1,4 +1,4 @@
1
- import { CommentsMap, GetCommentsResponse } from './types';
1
+ import { CommentsMap, FeedbackEntity, GetCommentsResponse } from './types';
2
2
  export declare function generateCommentsMap(assignmentId: string, data: GetCommentsResponse): CommentsMap;
3
3
  type FindCommentsByCreditsProps = {
4
4
  data: CommentsMap | null;
@@ -6,5 +6,14 @@ type FindCommentsByCreditsProps = {
6
6
  problemId: string;
7
7
  };
8
8
  export declare function findCommentsByCredits({ data, assignmentId, problemId, }: FindCommentsByCreditsProps): import("./types").TeacherComment[];
9
+ type UpdateCommentsStateProps = {
10
+ state: CommentsMap | null;
11
+ assignmentId: string;
12
+ problemId: string;
13
+ fn: (data: FeedbackEntity) => FeedbackEntity | undefined;
14
+ };
15
+ export declare function updateCommentsState({ state, assignmentId, problemId, fn, }: UpdateCommentsStateProps): Map<string, {
16
+ [problemId: string]: FeedbackEntity;
17
+ }> | null;
9
18
  export {};
10
19
  //# 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,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
+ {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../src/features/feedback/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,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;AAED,KAAK,wBAAwB,GAAG;IAC9B,KAAK,EAAE,WAAW,GAAG,IAAI,CAAA;IACzB,YAAY,EAAE,MAAM,CAAA;IACpB,SAAS,EAAE,MAAM,CAAA;IACjB,EAAE,EAAE,CAAC,IAAI,EAAE,cAAc,KAAK,cAAc,GAAG,SAAS,CAAA;CACzD,CAAA;AAED,wBAAgB,mBAAmB,CAAC,EAClC,KAAK,EACL,YAAY,EACZ,SAAS,EACT,EAAE,GACH,EAAE,wBAAwB;;UAiB1B"}