@magmamath/students-features 0.1.3 → 0.2.0-fix-teacher-feedback-button2

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 (170) hide show
  1. package/dist/commonjs/features/chatbot/components/ChatControls/ChatControls.js +5 -21
  2. package/dist/commonjs/features/chatbot/components/ChatControls/ChatControls.js.map +1 -1
  3. package/dist/commonjs/features/chatbot/model/api.js +1 -26
  4. package/dist/commonjs/features/chatbot/model/api.js.map +1 -1
  5. package/dist/commonjs/features/feedback/components/EmptyComment/EmptyComment.js +54 -0
  6. package/dist/commonjs/features/feedback/components/EmptyComment/EmptyComment.js.map +1 -0
  7. package/dist/commonjs/features/feedback/components/ListCardCommentsCount/ListCardCommentsCount.js +43 -0
  8. package/dist/commonjs/features/feedback/components/ListCardCommentsCount/ListCardCommentsCount.js.map +1 -0
  9. package/dist/commonjs/features/feedback/components/TeacherFeedback.js +51 -0
  10. package/dist/commonjs/features/feedback/components/TeacherFeedback.js.map +1 -0
  11. package/dist/commonjs/features/feedback/components/TeacherFeedbackButton/TeacherFeedbackButton.js +110 -0
  12. package/dist/commonjs/features/feedback/components/TeacherFeedbackButton/TeacherFeedbackButton.js.map +1 -0
  13. package/dist/commonjs/features/feedback/components/TeacherFeedbackButton/colorSchemes.js +44 -0
  14. package/dist/commonjs/features/feedback/components/TeacherFeedbackButton/colorSchemes.js.map +1 -0
  15. package/dist/commonjs/features/feedback/components/TeacherFeedbackComments/TeacherComment.js +97 -0
  16. package/dist/commonjs/features/feedback/components/TeacherFeedbackComments/TeacherComment.js.map +1 -0
  17. package/dist/commonjs/features/feedback/components/TeacherFeedbackComments/TeacherFeedbackComments.js +68 -0
  18. package/dist/commonjs/features/feedback/components/TeacherFeedbackComments/TeacherFeedbackComments.js.map +1 -0
  19. package/dist/commonjs/features/feedback/components/UnreadMessagesBadge.js +61 -0
  20. package/dist/commonjs/features/feedback/components/UnreadMessagesBadge.js.map +1 -0
  21. package/dist/commonjs/features/feedback/components/icons/MessageBubbleIcon.js +32 -0
  22. package/dist/commonjs/features/feedback/components/icons/MessageBubbleIcon.js.map +1 -0
  23. package/dist/commonjs/features/feedback/components/icons/XCloseIcon.js +30 -0
  24. package/dist/commonjs/features/feedback/components/icons/XCloseIcon.js.map +1 -0
  25. package/dist/commonjs/features/feedback/components/index.js +41 -0
  26. package/dist/commonjs/features/feedback/components/index.js.map +1 -0
  27. package/dist/commonjs/features/feedback/constants.js +30 -0
  28. package/dist/commonjs/features/feedback/constants.js.map +1 -0
  29. package/dist/commonjs/features/feedback/helpers.js +70 -0
  30. package/dist/commonjs/features/feedback/helpers.js.map +1 -0
  31. package/dist/commonjs/features/feedback/index.js +50 -0
  32. package/dist/commonjs/features/feedback/index.js.map +1 -0
  33. package/dist/commonjs/features/feedback/model/teacherFeedback.model.js +215 -0
  34. package/dist/commonjs/features/feedback/model/teacherFeedback.model.js.map +1 -0
  35. package/dist/commonjs/features/feedback/types/teacherFeedback.types.js +18 -0
  36. package/dist/commonjs/features/feedback/types/teacherFeedback.types.js.map +1 -0
  37. package/dist/commonjs/index.js +12 -0
  38. package/dist/commonjs/index.js.map +1 -1
  39. package/dist/module/features/chatbot/components/ChatControls/ChatControls.js +6 -22
  40. package/dist/module/features/chatbot/components/ChatControls/ChatControls.js.map +1 -1
  41. package/dist/module/features/chatbot/model/api.js +1 -26
  42. package/dist/module/features/chatbot/model/api.js.map +1 -1
  43. package/dist/module/features/feedback/components/EmptyComment/EmptyComment.js +48 -0
  44. package/dist/module/features/feedback/components/EmptyComment/EmptyComment.js.map +1 -0
  45. package/dist/module/features/feedback/components/ListCardCommentsCount/ListCardCommentsCount.js +37 -0
  46. package/dist/module/features/feedback/components/ListCardCommentsCount/ListCardCommentsCount.js.map +1 -0
  47. package/dist/module/features/feedback/components/TeacherFeedback.js +45 -0
  48. package/dist/module/features/feedback/components/TeacherFeedback.js.map +1 -0
  49. package/dist/module/features/feedback/components/TeacherFeedbackButton/TeacherFeedbackButton.js +104 -0
  50. package/dist/module/features/feedback/components/TeacherFeedbackButton/TeacherFeedbackButton.js.map +1 -0
  51. package/dist/module/features/feedback/components/TeacherFeedbackButton/colorSchemes.js +40 -0
  52. package/dist/module/features/feedback/components/TeacherFeedbackButton/colorSchemes.js.map +1 -0
  53. package/dist/module/features/feedback/components/TeacherFeedbackComments/TeacherComment.js +91 -0
  54. package/dist/module/features/feedback/components/TeacherFeedbackComments/TeacherComment.js.map +1 -0
  55. package/dist/module/features/feedback/components/TeacherFeedbackComments/TeacherFeedbackComments.js +61 -0
  56. package/dist/module/features/feedback/components/TeacherFeedbackComments/TeacherFeedbackComments.js.map +1 -0
  57. package/dist/module/features/feedback/components/UnreadMessagesBadge.js +55 -0
  58. package/dist/module/features/feedback/components/UnreadMessagesBadge.js.map +1 -0
  59. package/dist/module/features/feedback/components/icons/MessageBubbleIcon.js +24 -0
  60. package/dist/module/features/feedback/components/icons/MessageBubbleIcon.js.map +1 -0
  61. package/dist/module/features/feedback/components/icons/XCloseIcon.js +22 -0
  62. package/dist/module/features/feedback/components/icons/XCloseIcon.js.map +1 -0
  63. package/dist/module/features/feedback/components/index.js +8 -0
  64. package/dist/module/features/feedback/components/index.js.map +1 -0
  65. package/dist/module/features/feedback/constants.js +25 -0
  66. package/dist/module/features/feedback/constants.js.map +1 -0
  67. package/dist/module/features/feedback/helpers.js +65 -0
  68. package/dist/module/features/feedback/helpers.js.map +1 -0
  69. package/dist/module/features/feedback/index.js +7 -0
  70. package/dist/module/features/feedback/index.js.map +1 -0
  71. package/dist/module/features/feedback/model/teacherFeedback.model.js +210 -0
  72. package/dist/module/features/feedback/model/teacherFeedback.model.js.map +1 -0
  73. package/dist/module/features/feedback/types/teacherFeedback.types.js +14 -0
  74. package/dist/module/features/feedback/types/teacherFeedback.types.js.map +1 -0
  75. package/dist/module/index.js +1 -0
  76. package/dist/module/index.js.map +1 -1
  77. package/dist/typescript/commonjs/features/chatbot/components/ChatControls/ChatControls.d.ts.map +1 -1
  78. package/dist/typescript/commonjs/features/chatbot/model/api.d.ts +0 -3
  79. package/dist/typescript/commonjs/features/chatbot/model/api.d.ts.map +1 -1
  80. package/dist/typescript/commonjs/features/feedback/components/EmptyComment/EmptyComment.d.ts +8 -0
  81. package/dist/typescript/commonjs/features/feedback/components/EmptyComment/EmptyComment.d.ts.map +1 -0
  82. package/dist/typescript/commonjs/features/feedback/components/ListCardCommentsCount/ListCardCommentsCount.d.ts +7 -0
  83. package/dist/typescript/commonjs/features/feedback/components/ListCardCommentsCount/ListCardCommentsCount.d.ts.map +1 -0
  84. package/dist/typescript/commonjs/features/feedback/components/TeacherFeedback.d.ts +9 -0
  85. package/dist/typescript/commonjs/features/feedback/components/TeacherFeedback.d.ts.map +1 -0
  86. package/dist/typescript/commonjs/features/feedback/components/TeacherFeedbackButton/TeacherFeedbackButton.d.ts +11 -0
  87. package/dist/typescript/commonjs/features/feedback/components/TeacherFeedbackButton/TeacherFeedbackButton.d.ts.map +1 -0
  88. package/dist/typescript/commonjs/features/feedback/components/TeacherFeedbackButton/colorSchemes.d.ts +37 -0
  89. package/dist/typescript/commonjs/features/feedback/components/TeacherFeedbackButton/colorSchemes.d.ts.map +1 -0
  90. package/dist/typescript/commonjs/features/feedback/components/TeacherFeedbackComments/TeacherComment.d.ts +12 -0
  91. package/dist/typescript/commonjs/features/feedback/components/TeacherFeedbackComments/TeacherComment.d.ts.map +1 -0
  92. package/dist/typescript/commonjs/features/feedback/components/TeacherFeedbackComments/TeacherFeedbackComments.d.ts +10 -0
  93. package/dist/typescript/commonjs/features/feedback/components/TeacherFeedbackComments/TeacherFeedbackComments.d.ts.map +1 -0
  94. package/dist/typescript/commonjs/features/feedback/components/UnreadMessagesBadge.d.ts +10 -0
  95. package/dist/typescript/commonjs/features/feedback/components/UnreadMessagesBadge.d.ts.map +1 -0
  96. package/dist/typescript/commonjs/features/feedback/components/icons/MessageBubbleIcon.d.ts +4 -0
  97. package/dist/typescript/commonjs/features/feedback/components/icons/MessageBubbleIcon.d.ts.map +1 -0
  98. package/dist/typescript/commonjs/features/feedback/components/icons/XCloseIcon.d.ts +4 -0
  99. package/dist/typescript/commonjs/features/feedback/components/icons/XCloseIcon.d.ts.map +1 -0
  100. package/dist/typescript/commonjs/features/feedback/components/index.d.ts +6 -0
  101. package/dist/typescript/commonjs/features/feedback/components/index.d.ts.map +1 -0
  102. package/dist/typescript/commonjs/features/feedback/constants.d.ts +20 -0
  103. package/dist/typescript/commonjs/features/feedback/constants.d.ts.map +1 -0
  104. package/dist/typescript/commonjs/features/feedback/helpers.d.ts +3 -0
  105. package/dist/typescript/commonjs/features/feedback/helpers.d.ts.map +1 -0
  106. package/dist/typescript/commonjs/features/feedback/index.d.ts +5 -0
  107. package/dist/typescript/commonjs/features/feedback/index.d.ts.map +1 -0
  108. package/dist/typescript/commonjs/features/feedback/model/teacherFeedback.model.d.ts +45 -0
  109. package/dist/typescript/commonjs/features/feedback/model/teacherFeedback.model.d.ts.map +1 -0
  110. package/dist/typescript/commonjs/features/feedback/types/teacherFeedback.types.d.ts +33 -0
  111. package/dist/typescript/commonjs/features/feedback/types/teacherFeedback.types.d.ts.map +1 -0
  112. package/dist/typescript/commonjs/index.d.ts +1 -0
  113. package/dist/typescript/commonjs/index.d.ts.map +1 -1
  114. package/dist/typescript/module/features/chatbot/components/ChatControls/ChatControls.d.ts.map +1 -1
  115. package/dist/typescript/module/features/chatbot/model/api.d.ts +0 -3
  116. package/dist/typescript/module/features/chatbot/model/api.d.ts.map +1 -1
  117. package/dist/typescript/module/features/feedback/components/EmptyComment/EmptyComment.d.ts +8 -0
  118. package/dist/typescript/module/features/feedback/components/EmptyComment/EmptyComment.d.ts.map +1 -0
  119. package/dist/typescript/module/features/feedback/components/ListCardCommentsCount/ListCardCommentsCount.d.ts +7 -0
  120. package/dist/typescript/module/features/feedback/components/ListCardCommentsCount/ListCardCommentsCount.d.ts.map +1 -0
  121. package/dist/typescript/module/features/feedback/components/TeacherFeedback.d.ts +9 -0
  122. package/dist/typescript/module/features/feedback/components/TeacherFeedback.d.ts.map +1 -0
  123. package/dist/typescript/module/features/feedback/components/TeacherFeedbackButton/TeacherFeedbackButton.d.ts +11 -0
  124. package/dist/typescript/module/features/feedback/components/TeacherFeedbackButton/TeacherFeedbackButton.d.ts.map +1 -0
  125. package/dist/typescript/module/features/feedback/components/TeacherFeedbackButton/colorSchemes.d.ts +37 -0
  126. package/dist/typescript/module/features/feedback/components/TeacherFeedbackButton/colorSchemes.d.ts.map +1 -0
  127. package/dist/typescript/module/features/feedback/components/TeacherFeedbackComments/TeacherComment.d.ts +12 -0
  128. package/dist/typescript/module/features/feedback/components/TeacherFeedbackComments/TeacherComment.d.ts.map +1 -0
  129. package/dist/typescript/module/features/feedback/components/TeacherFeedbackComments/TeacherFeedbackComments.d.ts +10 -0
  130. package/dist/typescript/module/features/feedback/components/TeacherFeedbackComments/TeacherFeedbackComments.d.ts.map +1 -0
  131. package/dist/typescript/module/features/feedback/components/UnreadMessagesBadge.d.ts +10 -0
  132. package/dist/typescript/module/features/feedback/components/UnreadMessagesBadge.d.ts.map +1 -0
  133. package/dist/typescript/module/features/feedback/components/icons/MessageBubbleIcon.d.ts +4 -0
  134. package/dist/typescript/module/features/feedback/components/icons/MessageBubbleIcon.d.ts.map +1 -0
  135. package/dist/typescript/module/features/feedback/components/icons/XCloseIcon.d.ts +4 -0
  136. package/dist/typescript/module/features/feedback/components/icons/XCloseIcon.d.ts.map +1 -0
  137. package/dist/typescript/module/features/feedback/components/index.d.ts +6 -0
  138. package/dist/typescript/module/features/feedback/components/index.d.ts.map +1 -0
  139. package/dist/typescript/module/features/feedback/constants.d.ts +20 -0
  140. package/dist/typescript/module/features/feedback/constants.d.ts.map +1 -0
  141. package/dist/typescript/module/features/feedback/helpers.d.ts +3 -0
  142. package/dist/typescript/module/features/feedback/helpers.d.ts.map +1 -0
  143. package/dist/typescript/module/features/feedback/index.d.ts +5 -0
  144. package/dist/typescript/module/features/feedback/index.d.ts.map +1 -0
  145. package/dist/typescript/module/features/feedback/model/teacherFeedback.model.d.ts +45 -0
  146. package/dist/typescript/module/features/feedback/model/teacherFeedback.model.d.ts.map +1 -0
  147. package/dist/typescript/module/features/feedback/types/teacherFeedback.types.d.ts +33 -0
  148. package/dist/typescript/module/features/feedback/types/teacherFeedback.types.d.ts.map +1 -0
  149. package/dist/typescript/module/index.d.ts +1 -0
  150. package/dist/typescript/module/index.d.ts.map +1 -1
  151. package/package.json +4 -4
  152. package/src/features/chatbot/components/ChatControls/ChatControls.tsx +4 -27
  153. package/src/features/chatbot/model/api.ts +18 -55
  154. package/src/features/feedback/components/EmptyComment/EmptyComment.tsx +43 -0
  155. package/src/features/feedback/components/ListCardCommentsCount/ListCardCommentsCount.tsx +33 -0
  156. package/src/features/feedback/components/TeacherFeedback.tsx +46 -0
  157. package/src/features/feedback/components/TeacherFeedbackButton/TeacherFeedbackButton.tsx +117 -0
  158. package/src/features/feedback/components/TeacherFeedbackButton/colorSchemes.ts +38 -0
  159. package/src/features/feedback/components/TeacherFeedbackComments/TeacherComment.tsx +80 -0
  160. package/src/features/feedback/components/TeacherFeedbackComments/TeacherFeedbackComments.tsx +69 -0
  161. package/src/features/feedback/components/UnreadMessagesBadge.tsx +61 -0
  162. package/src/features/feedback/components/icons/MessageBubbleIcon.tsx +16 -0
  163. package/src/features/feedback/components/icons/XCloseIcon.tsx +14 -0
  164. package/src/features/feedback/components/index.ts +5 -0
  165. package/src/features/feedback/constants.ts +26 -0
  166. package/src/features/feedback/helpers.ts +66 -0
  167. package/src/features/feedback/index.ts +4 -0
  168. package/src/features/feedback/model/teacherFeedback.model.ts +255 -0
  169. package/src/features/feedback/types/teacherFeedback.types.ts +32 -0
  170. package/src/index.ts +1 -0
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import { Locale } from '../../types/teacherFeedback.types';
3
+ type TeacherCommentProps = {
4
+ content: string;
5
+ teacherName: string;
6
+ createdAt: Date;
7
+ locale: Locale | null;
8
+ isLastComment: boolean;
9
+ };
10
+ export declare const TeacherComment: ({ content, teacherName, createdAt, locale, isLastComment }: TeacherCommentProps) => React.JSX.Element;
11
+ export {};
12
+ //# sourceMappingURL=TeacherComment.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { Locale, TeacherComment as FeedbackComment } from '../../types/teacherFeedback.types';
3
+ type TeacherFeedbackCommentsProps = {
4
+ comments: FeedbackComment[] | null;
5
+ locale: Locale | null;
6
+ mode: 'regular' | 'simple';
7
+ };
8
+ export declare const TeacherFeedbackComments: ({ comments, locale, mode }: TeacherFeedbackCommentsProps) => React.JSX.Element | null;
9
+ export {};
10
+ //# sourceMappingURL=TeacherFeedbackComments.d.ts.map
@@ -0,0 +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;AAU7F,KAAK,4BAA4B,GAAG;IAClC,QAAQ,EAAE,eAAe,EAAE,GAAG,IAAI,CAAA;IAClC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB,IAAI,EAAE,SAAS,GAAG,QAAQ,CAAA;CAC3B,CAAA;AAED,eAAO,MAAM,uBAAuB,+BAAgC,4BAA4B,6BAmC/F,CAAA"}
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { StyleProp, ViewStyle } from 'react-native';
3
+ type UnreadMessagesBadgeProps = {
4
+ badgeContent?: number;
5
+ withBorder?: boolean;
6
+ style?: StyleProp<ViewStyle>;
7
+ };
8
+ export declare const UnreadMessagesBadge: ({ badgeContent, withBorder, style }: UnreadMessagesBadgeProps) => React.JSX.Element;
9
+ export {};
10
+ //# sourceMappingURL=UnreadMessagesBadge.d.ts.map
@@ -0,0 +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,MAAM,cAAc,CAAA;AAGrF,KAAK,wBAAwB,GAAG;IAC9B,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAA;CAC7B,CAAA;AAED,eAAO,MAAM,mBAAmB,wCAAiD,wBAAwB,sBAcxG,CAAA"}
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { IconProps } from '@magmamath/react-native-ui';
3
+ export declare const MessageBubbleIcon: ({ size, color }: IconProps) => React.JSX.Element;
4
+ //# sourceMappingURL=MessageBubbleIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MessageBubbleIcon.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/feedback/components/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,4 @@
1
+ import React from 'react';
2
+ import { IconProps } from '@magmamath/react-native-ui';
3
+ export declare const XCloseIcon: ({ size, color }: IconProps) => React.JSX.Element;
4
+ //# sourceMappingURL=XCloseIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"XCloseIcon.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/feedback/components/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"}
@@ -0,0 +1,6 @@
1
+ export { TeacherFeedbackComments } from './TeacherFeedbackComments/TeacherFeedbackComments';
2
+ export { TeacherFeedbackButton } from './TeacherFeedbackButton/TeacherFeedbackButton';
3
+ export { TeacherFeedback } from './TeacherFeedback';
4
+ export { UnreadMessagesBadge } from './UnreadMessagesBadge';
5
+ export { ListCardCommentsCount } from './ListCardCommentsCount/ListCardCommentsCount';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,20 @@
1
+ import { Locale } from './types/teacherFeedback.types';
2
+ export declare const BUENOS_AIRES_FONT: string;
3
+ export declare const NO_COMMENTS_ENG = "No comments yet";
4
+ export declare const NO_COMMENTS_SWE = "Inga kommentarer \u00E4n";
5
+ 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
+ export declare const TEACHER_FEEDBACK_BUTTON_ID = "teacherFeedbackButton";
20
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,3 @@
1
+ import { Locale } from './types/teacherFeedback.types';
2
+ export declare const getRelativeTime: (date: Date, lang: Locale) => string;
3
+ //# sourceMappingURL=helpers.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,5 @@
1
+ export * from './model/teacherFeedback.model';
2
+ export * from './types/teacherFeedback.types';
3
+ export * from './constants';
4
+ export * from './components';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,45 @@
1
+ import { Effect, StoreWritable } from 'effector';
2
+ import { CommentsEntity, GetCommentsByIdProps, Locale, TeacherComment, UpdateCommentSeenStatusProps } from '../types/teacherFeedback.types';
3
+ type TeacherFeedbackModelProps = {
4
+ credits: {
5
+ assignmentId: StoreWritable<string>;
6
+ problemId: StoreWritable<string>;
7
+ locale: StoreWritable<Locale | null>;
8
+ };
9
+ api: {
10
+ getCommentsByAssignmentId: (props: GetCommentsByIdProps) => Promise<Record<string, {
11
+ comments: TeacherComment[];
12
+ }>>;
13
+ updateCommentSeenStatus: (props: UpdateCommentSeenStatusProps) => Promise<void>;
14
+ };
15
+ };
16
+ type CommentsMap = Map<string, Record<string, CommentsEntity>>;
17
+ export declare class TeacherFeedbackModel {
18
+ $assignmentId: StoreWritable<string>;
19
+ $currentProblemId: StoreWritable<string>;
20
+ $locale: StoreWritable<Locale | null>;
21
+ setCommentsSeen: import("effector").EventCallable<{
22
+ ids: string[];
23
+ currentProblemId: string;
24
+ assignmentId: string;
25
+ }>;
26
+ $comments: StoreWritable<CommentsMap>;
27
+ setIsOpened: import("effector").EventCallable<boolean>;
28
+ $isOpened: StoreWritable<boolean>;
29
+ setIsVisible: import("effector").EventCallable<boolean>;
30
+ $isVisible: StoreWritable<boolean>;
31
+ getCommentsByAssignmentIdFx: Effect<GetCommentsByIdProps, {
32
+ data: Record<string, {
33
+ comments: TeacherComment[];
34
+ }>;
35
+ assignmentId: string;
36
+ }>;
37
+ updateCommentSeenFx: Effect<UpdateCommentSeenStatusProps, void>;
38
+ sockets: {
39
+ onCreate: import("effector").EventCallable<TeacherComment>;
40
+ onDeleted: import("effector").EventCallable<TeacherComment>;
41
+ };
42
+ constructor({ api, credits }: TeacherFeedbackModelProps);
43
+ }
44
+ export {};
45
+ //# sourceMappingURL=teacherFeedback.model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"teacherFeedback.model.d.ts","sourceRoot":"","sources":["../../../../../../src/features/feedback/model/teacherFeedback.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0C,MAAM,EAAmB,aAAa,EAAE,MAAM,UAAU,CAAA;AACzG,OAAO,EACL,cAAc,EACd,oBAAoB,EACpB,MAAM,EACN,cAAc,EACd,4BAA4B,EAC7B,MAAM,gCAAgC,CAAA;AAGvC,KAAK,yBAAyB,GAAG;IAC/B,OAAO,EAAE;QACP,YAAY,EAAE,aAAa,CAAC,MAAM,CAAC,CAAA;QACnC,SAAS,EAAE,aAAa,CAAC,MAAM,CAAC,CAAA;QAChC,MAAM,EAAE,aAAa,CAAC,MAAM,GAAG,IAAI,CAAC,CAAA;KACrC,CAAA;IACD,GAAG,EAAE;QACH,yBAAyB,EAAE,CAAC,KAAK,EAAE,oBAAoB,KAAK,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE;YAAE,QAAQ,EAAE,cAAc,EAAE,CAAA;SAAE,CAAC,CAAC,CAAA;QACnH,uBAAuB,EAAE,CAAC,KAAK,EAAE,4BAA4B,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;KAChF,CAAA;CACF,CAAA;AAED,KAAK,WAAW,GAAG,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC,CAAA;AAE9D,qBAAa,oBAAoB;IAC/B,aAAa,EAAE,aAAa,CAAC,MAAM,CAAC,CAAA;IACpC,iBAAiB,EAAE,aAAa,CAAC,MAAM,CAAC,CAAA;IACxC,OAAO,EAAE,aAAa,CAAC,MAAM,GAAG,IAAI,CAAC,CAAA;IAErC,eAAe;aAAsB,MAAM,EAAE;0BAAoB,MAAM;sBAAgB,MAAM;OAAK;IAClG,SAAS,6BAAsC;IAE/C,WAAW,4CAAyB;IACpC,SAAS,yBAAmC;IAC5C,YAAY,4CAAyB;IACrC,UAAU,yBAAoC;IAE9C,2BAA2B,EAAE,MAAM,CACjC,oBAAoB,EACpB;QACE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE;YAAE,QAAQ,EAAE,cAAc,EAAE,CAAA;SAAE,CAAC,CAAA;QACpD,YAAY,EAAE,MAAM,CAAA;KACrB,CACF,CAAA;IACD,mBAAmB,EAAE,MAAM,CAAC,4BAA4B,EAAE,IAAI,CAAC,CAAA;IAE/D,OAAO;;;MAGN;gBAEW,EAAE,GAAG,EAAE,OAAO,EAAE,EAAE,yBAAyB;CA2MxD"}
@@ -0,0 +1,33 @@
1
+ export type GetCommentsByIdProps = {
2
+ id: string;
3
+ };
4
+ export type UpdateCommentSeenStatusProps = {
5
+ ids: string[];
6
+ };
7
+ export type TeacherComment = {
8
+ _id: string;
9
+ teacherId: string;
10
+ teacherName: string;
11
+ studentId: string;
12
+ problemId: string;
13
+ exerciseId: string;
14
+ content: string;
15
+ isRead: boolean;
16
+ createdAt: Date;
17
+ updatedAt: Date;
18
+ __v: number;
19
+ };
20
+ export type CommentsEntity = {
21
+ comments: TeacherComment[];
22
+ unreadMessagesCount: number;
23
+ };
24
+ export declare enum Locale {
25
+ US = "en-US",
26
+ SV = "sv-SE",
27
+ GB = "en-GB"
28
+ }
29
+ export declare enum TeacherFeedbackSocketEvent {
30
+ COMMENT_CREATED = "exerciseCommentCreated",
31
+ COMMENT_DELETED = "exerciseCommentDeleted"
32
+ }
33
+ //# sourceMappingURL=teacherFeedback.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"teacherFeedback.types.d.ts","sourceRoot":"","sources":["../../../../../../src/features/feedback/types/teacherFeedback.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,oBAAoB,GAAG;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,CAAA;AACjD,MAAM,MAAM,4BAA4B,GAAG;IAAE,GAAG,EAAE,MAAM,EAAE,CAAA;CAAE,CAAA;AAE5D,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,oBAAY,MAAM;IAChB,EAAE,UAAU;IACZ,EAAE,UAAU;IACZ,EAAE,UAAU;CACb;AAED,oBAAY,0BAA0B;IACpC,eAAe,2BAA2B;IAC1C,eAAe,2BAA2B;CAC3C"}
@@ -1,4 +1,5 @@
1
1
  export { useFeaturesLocalization, setFeaturesLocalization, Locale } from './shared/translation';
2
2
  export type { LocalizationConfig } from './shared/translation';
3
3
  export * from './features/chatbot';
4
+ export * from './features/feedback';
4
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAA;AAC/F,YAAY,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAC9D,cAAc,oBAAoB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAA;AAC/F,YAAY,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAC9D,cAAc,oBAAoB,CAAA;AAClC,cAAc,qBAAqB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"ChatControls.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/chatbot/components/ChatControls/ChatControls.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAWxD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAKhD,KAAK,iBAAiB,GAAG;IACvB,KAAK,EAAE,YAAY,CAAA;IACnB,gBAAgB,EAAE,MAAM,IAAI,CAAA;IAC5B,eAAe,EAAE,MAAM,IAAI,CAAA;IAC3B,YAAY,EAAE,MAAM,IAAI,CAAA;IACxB,oBAAoB,EAAE,OAAO,CAAA;IAC7B,aAAa,EAAE,aAAa,CAAC,iBAAiB,CAAC,CAAA;CAChD,CAAA;AAED,eAAO,MAAM,YAAY,qGAOtB,iBAAiB,sBA2DnB,CAAA"}
1
+ {"version":3,"file":"ChatControls.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/chatbot/components/ChatControls/ChatControls.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAIxD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAKhD,KAAK,iBAAiB,GAAG;IACvB,KAAK,EAAE,YAAY,CAAA;IACnB,gBAAgB,EAAE,MAAM,IAAI,CAAA;IAC5B,eAAe,EAAE,MAAM,IAAI,CAAA;IAC3B,YAAY,EAAE,MAAM,IAAI,CAAA;IACxB,oBAAoB,EAAE,OAAO,CAAA;IAC7B,aAAa,EAAE,aAAa,CAAC,iBAAiB,CAAC,CAAA;CAChD,CAAA;AAED,eAAO,MAAM,YAAY,qGAOtB,iBAAiB,sBA+CnB,CAAA"}
@@ -7,9 +7,6 @@ export declare class ChatbotAPI {
7
7
  getAlternativesFx: Effect<void, GetAlternativesResponse>;
8
8
  translateTextFx: Effect<GoogleTranslatePayload, GoogleTranslateResponse>;
9
9
  textToSpeechTextFx: Effect<GoogleText2SpeechPayload, GoogleText2SpeechResponse>;
10
- private KATEX_REPLACEMENTS;
11
- private KATEX_REPLACEMENTS_REVERSE;
12
- private replaceKatexSyntax;
13
10
  constructor(api: ChatbotModelProps['api']);
14
11
  }
15
12
  //# 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,EACL,uBAAuB,EACvB,kBAAkB,EAClB,mBAAmB,EACnB,sBAAsB,EACtB,uBAAuB,EACvB,wBAAwB,EACxB,yBAAyB,EAC1B,MAAM,oBAAoB,CAAA;AAE3B,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,CAEhB;IAEV,OAAO,CAAC,0BAA0B,CAExB;IAEV,OAAO,CAAC,kBAAkB;gBAad,GAAG,EAAE,iBAAiB,CAAC,KAAK,CAAC;CAsB1C"}
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"}
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { Locale } from '../../types/teacherFeedback.types';
3
+ type EmptyCommentProps = {
4
+ locale: Locale | null;
5
+ };
6
+ export declare const EmptyComment: ({ locale }: EmptyCommentProps) => React.JSX.Element;
7
+ export {};
8
+ //# sourceMappingURL=EmptyComment.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EmptyComment.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/feedback/components/EmptyComment/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,7 @@
1
+ import React from 'react';
2
+ type ListCardCommentsCountProps = {
3
+ count: number;
4
+ };
5
+ export declare const ListCardCommentsCount: ({ count }: ListCardCommentsCountProps) => React.JSX.Element;
6
+ export {};
7
+ //# sourceMappingURL=ListCardCommentsCount.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ListCardCommentsCount.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/feedback/components/ListCardCommentsCount/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"}
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { TeacherFeedbackModel } from '../model/teacherFeedback.model';
3
+ type TeacherFeedbackProps = {
4
+ model: TeacherFeedbackModel;
5
+ mode: 'regular' | 'simple';
6
+ };
7
+ export declare const TeacherFeedback: ({ model, mode }: TeacherFeedbackProps) => React.JSX.Element | null;
8
+ export {};
9
+ //# sourceMappingURL=TeacherFeedback.d.ts.map
@@ -0,0 +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;AAErE,KAAK,oBAAoB,GAAG;IAC1B,KAAK,EAAE,oBAAoB,CAAA;IAC3B,IAAI,EAAE,SAAS,GAAG,QAAQ,CAAA;CAC3B,CAAA;AAED,eAAO,MAAM,eAAe,oBAAqB,oBAAoB,6BA0BpE,CAAA"}
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ type TeacherFeedbackButtonProps = {
3
+ isOpen: boolean;
4
+ isLoading: boolean;
5
+ onPress?: () => void;
6
+ unreadCommentsCount?: number;
7
+ size?: 'small' | 'large';
8
+ };
9
+ export declare const TeacherFeedbackButton: ({ isOpen, onPress, unreadCommentsCount, isLoading, size, }: TeacherFeedbackButtonProps) => React.JSX.Element;
10
+ export {};
11
+ //# sourceMappingURL=TeacherFeedbackButton.d.ts.map
@@ -0,0 +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;AASzB,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,OAAO,GAAG,OAAO,CAAA;CACzB,CAAA;AAED,eAAO,MAAM,qBAAqB,+DAM/B,0BAA0B,sBA8D5B,CAAA"}
@@ -0,0 +1,37 @@
1
+ export declare const COLOR_SCHEMES: {
2
+ BLUE: {
3
+ 1: {
4
+ borderColor: "#2488bb";
5
+ raiseColor: "#2488bb";
6
+ backgroundColor: "#55abe0";
7
+ };
8
+ 2: {
9
+ borderColor: "#2488bb";
10
+ raiseColor: "#2488bb";
11
+ backgroundColor: "#55abe0";
12
+ };
13
+ 0: {
14
+ borderColor: "#2488bb";
15
+ raiseColor: "#2488bb";
16
+ backgroundColor: "#55abe0";
17
+ };
18
+ };
19
+ GREY: {
20
+ 1: {
21
+ borderColor: "#ccccd2";
22
+ raiseColor: "#ccccd2";
23
+ backgroundColor: "#fff";
24
+ };
25
+ 2: {
26
+ borderColor: "#ccccd2";
27
+ raiseColor: "#ccccd2";
28
+ backgroundColor: "#fff";
29
+ };
30
+ 0: {
31
+ borderColor: "#ccccd2";
32
+ raiseColor: "#ccccd2";
33
+ backgroundColor: "#fff";
34
+ };
35
+ };
36
+ };
37
+ //# sourceMappingURL=colorSchemes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"colorSchemes.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/feedback/components/TeacherFeedbackButton/colorSchemes.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmCzB,CAAA"}
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import { Locale } from '../../types/teacherFeedback.types';
3
+ type TeacherCommentProps = {
4
+ content: string;
5
+ teacherName: string;
6
+ createdAt: Date;
7
+ locale: Locale | null;
8
+ isLastComment: boolean;
9
+ };
10
+ export declare const TeacherComment: ({ content, teacherName, createdAt, locale, isLastComment }: TeacherCommentProps) => React.JSX.Element;
11
+ export {};
12
+ //# sourceMappingURL=TeacherComment.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { Locale, TeacherComment as FeedbackComment } from '../../types/teacherFeedback.types';
3
+ type TeacherFeedbackCommentsProps = {
4
+ comments: FeedbackComment[] | null;
5
+ locale: Locale | null;
6
+ mode: 'regular' | 'simple';
7
+ };
8
+ export declare const TeacherFeedbackComments: ({ comments, locale, mode }: TeacherFeedbackCommentsProps) => React.JSX.Element | null;
9
+ export {};
10
+ //# sourceMappingURL=TeacherFeedbackComments.d.ts.map
@@ -0,0 +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;AAU7F,KAAK,4BAA4B,GAAG;IAClC,QAAQ,EAAE,eAAe,EAAE,GAAG,IAAI,CAAA;IAClC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB,IAAI,EAAE,SAAS,GAAG,QAAQ,CAAA;CAC3B,CAAA;AAED,eAAO,MAAM,uBAAuB,+BAAgC,4BAA4B,6BAmC/F,CAAA"}
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { StyleProp, ViewStyle } from 'react-native';
3
+ type UnreadMessagesBadgeProps = {
4
+ badgeContent?: number;
5
+ withBorder?: boolean;
6
+ style?: StyleProp<ViewStyle>;
7
+ };
8
+ export declare const UnreadMessagesBadge: ({ badgeContent, withBorder, style }: UnreadMessagesBadgeProps) => React.JSX.Element;
9
+ export {};
10
+ //# sourceMappingURL=UnreadMessagesBadge.d.ts.map
@@ -0,0 +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,MAAM,cAAc,CAAA;AAGrF,KAAK,wBAAwB,GAAG;IAC9B,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAA;CAC7B,CAAA;AAED,eAAO,MAAM,mBAAmB,wCAAiD,wBAAwB,sBAcxG,CAAA"}
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { IconProps } from '@magmamath/react-native-ui';
3
+ export declare const MessageBubbleIcon: ({ size, color }: IconProps) => React.JSX.Element;
4
+ //# sourceMappingURL=MessageBubbleIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MessageBubbleIcon.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/feedback/components/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,4 @@
1
+ import React from 'react';
2
+ import { IconProps } from '@magmamath/react-native-ui';
3
+ export declare const XCloseIcon: ({ size, color }: IconProps) => React.JSX.Element;
4
+ //# sourceMappingURL=XCloseIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"XCloseIcon.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/feedback/components/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"}
@@ -0,0 +1,6 @@
1
+ export { TeacherFeedbackComments } from './TeacherFeedbackComments/TeacherFeedbackComments';
2
+ export { TeacherFeedbackButton } from './TeacherFeedbackButton/TeacherFeedbackButton';
3
+ export { TeacherFeedback } from './TeacherFeedback';
4
+ export { UnreadMessagesBadge } from './UnreadMessagesBadge';
5
+ export { ListCardCommentsCount } from './ListCardCommentsCount/ListCardCommentsCount';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,20 @@
1
+ import { Locale } from './types/teacherFeedback.types';
2
+ export declare const BUENOS_AIRES_FONT: string;
3
+ export declare const NO_COMMENTS_ENG = "No comments yet";
4
+ export declare const NO_COMMENTS_SWE = "Inga kommentarer \u00E4n";
5
+ 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
+ export declare const TEACHER_FEEDBACK_BUTTON_ID = "teacherFeedbackButton";
20
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,3 @@
1
+ import { Locale } from './types/teacherFeedback.types';
2
+ export declare const getRelativeTime: (date: Date, lang: Locale) => string;
3
+ //# sourceMappingURL=helpers.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,5 @@
1
+ export * from './model/teacherFeedback.model';
2
+ export * from './types/teacherFeedback.types';
3
+ export * from './constants';
4
+ export * from './components';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,45 @@
1
+ import { Effect, StoreWritable } from 'effector';
2
+ import { CommentsEntity, GetCommentsByIdProps, Locale, TeacherComment, UpdateCommentSeenStatusProps } from '../types/teacherFeedback.types';
3
+ type TeacherFeedbackModelProps = {
4
+ credits: {
5
+ assignmentId: StoreWritable<string>;
6
+ problemId: StoreWritable<string>;
7
+ locale: StoreWritable<Locale | null>;
8
+ };
9
+ api: {
10
+ getCommentsByAssignmentId: (props: GetCommentsByIdProps) => Promise<Record<string, {
11
+ comments: TeacherComment[];
12
+ }>>;
13
+ updateCommentSeenStatus: (props: UpdateCommentSeenStatusProps) => Promise<void>;
14
+ };
15
+ };
16
+ type CommentsMap = Map<string, Record<string, CommentsEntity>>;
17
+ export declare class TeacherFeedbackModel {
18
+ $assignmentId: StoreWritable<string>;
19
+ $currentProblemId: StoreWritable<string>;
20
+ $locale: StoreWritable<Locale | null>;
21
+ setCommentsSeen: import("effector").EventCallable<{
22
+ ids: string[];
23
+ currentProblemId: string;
24
+ assignmentId: string;
25
+ }>;
26
+ $comments: StoreWritable<CommentsMap>;
27
+ setIsOpened: import("effector").EventCallable<boolean>;
28
+ $isOpened: StoreWritable<boolean>;
29
+ setIsVisible: import("effector").EventCallable<boolean>;
30
+ $isVisible: StoreWritable<boolean>;
31
+ getCommentsByAssignmentIdFx: Effect<GetCommentsByIdProps, {
32
+ data: Record<string, {
33
+ comments: TeacherComment[];
34
+ }>;
35
+ assignmentId: string;
36
+ }>;
37
+ updateCommentSeenFx: Effect<UpdateCommentSeenStatusProps, void>;
38
+ sockets: {
39
+ onCreate: import("effector").EventCallable<TeacherComment>;
40
+ onDeleted: import("effector").EventCallable<TeacherComment>;
41
+ };
42
+ constructor({ api, credits }: TeacherFeedbackModelProps);
43
+ }
44
+ export {};
45
+ //# sourceMappingURL=teacherFeedback.model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"teacherFeedback.model.d.ts","sourceRoot":"","sources":["../../../../../../src/features/feedback/model/teacherFeedback.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0C,MAAM,EAAmB,aAAa,EAAE,MAAM,UAAU,CAAA;AACzG,OAAO,EACL,cAAc,EACd,oBAAoB,EACpB,MAAM,EACN,cAAc,EACd,4BAA4B,EAC7B,MAAM,gCAAgC,CAAA;AAGvC,KAAK,yBAAyB,GAAG;IAC/B,OAAO,EAAE;QACP,YAAY,EAAE,aAAa,CAAC,MAAM,CAAC,CAAA;QACnC,SAAS,EAAE,aAAa,CAAC,MAAM,CAAC,CAAA;QAChC,MAAM,EAAE,aAAa,CAAC,MAAM,GAAG,IAAI,CAAC,CAAA;KACrC,CAAA;IACD,GAAG,EAAE;QACH,yBAAyB,EAAE,CAAC,KAAK,EAAE,oBAAoB,KAAK,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE;YAAE,QAAQ,EAAE,cAAc,EAAE,CAAA;SAAE,CAAC,CAAC,CAAA;QACnH,uBAAuB,EAAE,CAAC,KAAK,EAAE,4BAA4B,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;KAChF,CAAA;CACF,CAAA;AAED,KAAK,WAAW,GAAG,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC,CAAA;AAE9D,qBAAa,oBAAoB;IAC/B,aAAa,EAAE,aAAa,CAAC,MAAM,CAAC,CAAA;IACpC,iBAAiB,EAAE,aAAa,CAAC,MAAM,CAAC,CAAA;IACxC,OAAO,EAAE,aAAa,CAAC,MAAM,GAAG,IAAI,CAAC,CAAA;IAErC,eAAe;aAAsB,MAAM,EAAE;0BAAoB,MAAM;sBAAgB,MAAM;OAAK;IAClG,SAAS,6BAAsC;IAE/C,WAAW,4CAAyB;IACpC,SAAS,yBAAmC;IAC5C,YAAY,4CAAyB;IACrC,UAAU,yBAAoC;IAE9C,2BAA2B,EAAE,MAAM,CACjC,oBAAoB,EACpB;QACE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE;YAAE,QAAQ,EAAE,cAAc,EAAE,CAAA;SAAE,CAAC,CAAA;QACpD,YAAY,EAAE,MAAM,CAAA;KACrB,CACF,CAAA;IACD,mBAAmB,EAAE,MAAM,CAAC,4BAA4B,EAAE,IAAI,CAAC,CAAA;IAE/D,OAAO;;;MAGN;gBAEW,EAAE,GAAG,EAAE,OAAO,EAAE,EAAE,yBAAyB;CA2MxD"}
@@ -0,0 +1,33 @@
1
+ export type GetCommentsByIdProps = {
2
+ id: string;
3
+ };
4
+ export type UpdateCommentSeenStatusProps = {
5
+ ids: string[];
6
+ };
7
+ export type TeacherComment = {
8
+ _id: string;
9
+ teacherId: string;
10
+ teacherName: string;
11
+ studentId: string;
12
+ problemId: string;
13
+ exerciseId: string;
14
+ content: string;
15
+ isRead: boolean;
16
+ createdAt: Date;
17
+ updatedAt: Date;
18
+ __v: number;
19
+ };
20
+ export type CommentsEntity = {
21
+ comments: TeacherComment[];
22
+ unreadMessagesCount: number;
23
+ };
24
+ export declare enum Locale {
25
+ US = "en-US",
26
+ SV = "sv-SE",
27
+ GB = "en-GB"
28
+ }
29
+ export declare enum TeacherFeedbackSocketEvent {
30
+ COMMENT_CREATED = "exerciseCommentCreated",
31
+ COMMENT_DELETED = "exerciseCommentDeleted"
32
+ }
33
+ //# sourceMappingURL=teacherFeedback.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"teacherFeedback.types.d.ts","sourceRoot":"","sources":["../../../../../../src/features/feedback/types/teacherFeedback.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,oBAAoB,GAAG;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,CAAA;AACjD,MAAM,MAAM,4BAA4B,GAAG;IAAE,GAAG,EAAE,MAAM,EAAE,CAAA;CAAE,CAAA;AAE5D,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,oBAAY,MAAM;IAChB,EAAE,UAAU;IACZ,EAAE,UAAU;IACZ,EAAE,UAAU;CACb;AAED,oBAAY,0BAA0B;IACpC,eAAe,2BAA2B;IAC1C,eAAe,2BAA2B;CAC3C"}
@@ -1,4 +1,5 @@
1
1
  export { useFeaturesLocalization, setFeaturesLocalization, Locale } from './shared/translation';
2
2
  export type { LocalizationConfig } from './shared/translation';
3
3
  export * from './features/chatbot';
4
+ export * from './features/feedback';
4
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAA;AAC/F,YAAY,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAC9D,cAAc,oBAAoB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAA;AAC/F,YAAY,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAC9D,cAAc,oBAAoB,CAAA;AAClC,cAAc,qBAAqB,CAAA"}