@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.
- package/dist/commonjs/features/chatbot/components/ChatControls/ChatControls.js +2 -2
- package/dist/commonjs/features/chatbot/components/ChatControls/ChatControls.js.map +1 -1
- package/dist/commonjs/features/feedback/components/EmptyComment.js +4 -5
- package/dist/commonjs/features/feedback/components/EmptyComment.js.map +1 -1
- package/dist/commonjs/features/feedback/components/ListCardCommentsCount.js +1 -1
- package/dist/commonjs/features/feedback/components/TeacherFeedback.js +5 -6
- package/dist/commonjs/features/feedback/components/TeacherFeedback.js.map +1 -1
- package/dist/commonjs/features/feedback/components/TeacherFeedbackButton/TeacherFeedbackButton.js +32 -9
- package/dist/commonjs/features/feedback/components/TeacherFeedbackButton/TeacherFeedbackButton.js.map +1 -1
- package/dist/commonjs/features/feedback/components/TeacherFeedbackComments/TeacherComment.js +1 -3
- package/dist/commonjs/features/feedback/components/TeacherFeedbackComments/TeacherComment.js.map +1 -1
- package/dist/commonjs/features/feedback/components/TeacherFeedbackComments/TeacherFeedbackComments.js +1 -8
- package/dist/commonjs/features/feedback/components/TeacherFeedbackComments/TeacherFeedbackComments.js.map +1 -1
- package/dist/commonjs/features/feedback/components/UnreadMessagesBadge.js +1 -1
- package/dist/commonjs/features/feedback/components/UnreadMessagesBadge.js.map +1 -1
- package/dist/commonjs/features/feedback/constants.js +11 -3
- package/dist/commonjs/features/feedback/constants.js.map +1 -1
- package/dist/commonjs/features/feedback/helpers.js +24 -0
- package/dist/commonjs/features/feedback/helpers.js.map +1 -1
- package/dist/commonjs/features/feedback/model/api.js.map +1 -1
- package/dist/commonjs/features/feedback/model/comments.js +17 -33
- package/dist/commonjs/features/feedback/model/comments.js.map +1 -1
- package/dist/commonjs/features/feedback/model/model.js +5 -3
- package/dist/commonjs/features/feedback/model/model.js.map +1 -1
- package/dist/commonjs/features/feedback/types.js.map +1 -1
- package/dist/commonjs/lib/helpers/helpers.js +20 -16
- package/dist/commonjs/lib/helpers/helpers.js.map +1 -1
- package/dist/commonjs/lib/localization/en.json +12 -0
- package/dist/commonjs/lib/localization/gb.json +12 -0
- package/dist/commonjs/lib/localization/sw.json +12 -0
- package/dist/commonjs/shared/icons/MessageBubbleIcon.js.map +1 -0
- package/dist/commonjs/shared/icons/XCloseIcon.js.map +1 -0
- package/dist/commonjs/shared/translation/constants.js +1 -42
- package/dist/commonjs/shared/translation/constants.js.map +1 -1
- package/dist/commonjs/shared/translation/helpers.js.map +1 -1
- package/dist/commonjs/shared/translation/types.js.map +1 -1
- package/dist/module/features/chatbot/components/ChatControls/ChatControls.js +2 -2
- package/dist/module/features/chatbot/components/ChatControls/ChatControls.js.map +1 -1
- package/dist/module/features/feedback/components/EmptyComment.js +5 -6
- package/dist/module/features/feedback/components/EmptyComment.js.map +1 -1
- package/dist/module/features/feedback/components/ListCardCommentsCount.js +1 -1
- package/dist/module/features/feedback/components/ListCardCommentsCount.js.map +1 -1
- package/dist/module/features/feedback/components/TeacherFeedback.js +6 -7
- package/dist/module/features/feedback/components/TeacherFeedback.js.map +1 -1
- package/dist/module/features/feedback/components/TeacherFeedbackButton/TeacherFeedbackButton.js +32 -9
- package/dist/module/features/feedback/components/TeacherFeedbackButton/TeacherFeedbackButton.js.map +1 -1
- package/dist/module/features/feedback/components/TeacherFeedbackComments/TeacherComment.js +1 -3
- package/dist/module/features/feedback/components/TeacherFeedbackComments/TeacherComment.js.map +1 -1
- package/dist/module/features/feedback/components/TeacherFeedbackComments/TeacherFeedbackComments.js +2 -9
- package/dist/module/features/feedback/components/TeacherFeedbackComments/TeacherFeedbackComments.js.map +1 -1
- package/dist/module/features/feedback/components/UnreadMessagesBadge.js +1 -1
- package/dist/module/features/feedback/components/UnreadMessagesBadge.js.map +1 -1
- package/dist/module/features/feedback/constants.js +10 -2
- package/dist/module/features/feedback/constants.js.map +1 -1
- package/dist/module/features/feedback/helpers.js +23 -0
- package/dist/module/features/feedback/helpers.js.map +1 -1
- package/dist/module/features/feedback/model/api.js.map +1 -1
- package/dist/module/features/feedback/model/comments.js +14 -30
- package/dist/module/features/feedback/model/comments.js.map +1 -1
- package/dist/module/features/feedback/model/model.js +6 -4
- package/dist/module/features/feedback/model/model.js.map +1 -1
- package/dist/module/features/feedback/types.js.map +1 -1
- package/dist/module/lib/helpers/helpers.js +20 -16
- package/dist/module/lib/helpers/helpers.js.map +1 -1
- package/dist/module/lib/localization/en.json +12 -0
- package/dist/module/lib/localization/gb.json +12 -0
- package/dist/module/lib/localization/sw.json +12 -0
- package/dist/module/shared/icons/MessageBubbleIcon.js.map +1 -0
- package/dist/module/shared/icons/XCloseIcon.js.map +1 -0
- package/dist/module/shared/translation/constants.js +0 -41
- package/dist/module/shared/translation/constants.js.map +1 -1
- package/dist/module/shared/translation/helpers.js.map +1 -1
- package/dist/module/shared/translation/types.js.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/components/Chatbot.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/feedback/components/EmptyComment.d.ts +1 -6
- package/dist/typescript/commonjs/features/feedback/components/EmptyComment.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/feedback/components/TeacherFeedback.d.ts +5 -5
- package/dist/typescript/commonjs/features/feedback/components/TeacherFeedback.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/feedback/components/TeacherFeedbackButton/TeacherFeedbackButton.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/feedback/components/TeacherFeedbackComments/TeacherComment.d.ts +2 -4
- package/dist/typescript/commonjs/features/feedback/components/TeacherFeedbackComments/TeacherComment.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/feedback/components/TeacherFeedbackComments/TeacherFeedbackComments.d.ts +2 -4
- package/dist/typescript/commonjs/features/feedback/components/TeacherFeedbackComments/TeacherFeedbackComments.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/feedback/components/UnreadMessagesBadge.d.ts +1 -1
- package/dist/typescript/commonjs/features/feedback/components/UnreadMessagesBadge.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/feedback/constants.d.ts +2 -2
- package/dist/typescript/commonjs/features/feedback/constants.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/feedback/helpers.d.ts +10 -1
- package/dist/typescript/commonjs/features/feedback/helpers.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/feedback/model/api.d.ts +6 -2
- package/dist/typescript/commonjs/features/feedback/model/api.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/feedback/model/comments.d.ts +10 -12
- package/dist/typescript/commonjs/features/feedback/model/comments.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/feedback/model/model.d.ts +4 -7
- package/dist/typescript/commonjs/features/feedback/model/model.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/feedback/types.d.ts +8 -1
- package/dist/typescript/commonjs/features/feedback/types.d.ts.map +1 -1
- package/dist/typescript/commonjs/lib/helpers/helpers.d.ts +1 -2
- package/dist/typescript/commonjs/lib/helpers/helpers.d.ts.map +1 -1
- package/dist/typescript/commonjs/shared/icons/MessageBubbleIcon.d.ts.map +1 -0
- package/dist/typescript/commonjs/shared/icons/XCloseIcon.d.ts.map +1 -0
- package/dist/typescript/commonjs/shared/translation/constants.d.ts +38 -40
- package/dist/typescript/commonjs/shared/translation/constants.d.ts.map +1 -1
- package/dist/typescript/commonjs/shared/translation/helpers.d.ts.map +1 -1
- package/dist/typescript/commonjs/shared/translation/types.d.ts +4 -1
- package/dist/typescript/commonjs/shared/translation/types.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/components/Chatbot.d.ts.map +1 -1
- package/dist/typescript/module/features/feedback/components/EmptyComment.d.ts +1 -6
- package/dist/typescript/module/features/feedback/components/EmptyComment.d.ts.map +1 -1
- package/dist/typescript/module/features/feedback/components/TeacherFeedback.d.ts +5 -5
- package/dist/typescript/module/features/feedback/components/TeacherFeedback.d.ts.map +1 -1
- package/dist/typescript/module/features/feedback/components/TeacherFeedbackButton/TeacherFeedbackButton.d.ts.map +1 -1
- package/dist/typescript/module/features/feedback/components/TeacherFeedbackComments/TeacherComment.d.ts +2 -4
- package/dist/typescript/module/features/feedback/components/TeacherFeedbackComments/TeacherComment.d.ts.map +1 -1
- package/dist/typescript/module/features/feedback/components/TeacherFeedbackComments/TeacherFeedbackComments.d.ts +2 -4
- package/dist/typescript/module/features/feedback/components/TeacherFeedbackComments/TeacherFeedbackComments.d.ts.map +1 -1
- package/dist/typescript/module/features/feedback/components/UnreadMessagesBadge.d.ts +1 -1
- package/dist/typescript/module/features/feedback/components/UnreadMessagesBadge.d.ts.map +1 -1
- package/dist/typescript/module/features/feedback/constants.d.ts +2 -2
- package/dist/typescript/module/features/feedback/constants.d.ts.map +1 -1
- package/dist/typescript/module/features/feedback/helpers.d.ts +10 -1
- package/dist/typescript/module/features/feedback/helpers.d.ts.map +1 -1
- package/dist/typescript/module/features/feedback/model/api.d.ts +6 -2
- package/dist/typescript/module/features/feedback/model/api.d.ts.map +1 -1
- package/dist/typescript/module/features/feedback/model/comments.d.ts +10 -12
- package/dist/typescript/module/features/feedback/model/comments.d.ts.map +1 -1
- package/dist/typescript/module/features/feedback/model/model.d.ts +4 -7
- package/dist/typescript/module/features/feedback/model/model.d.ts.map +1 -1
- package/dist/typescript/module/features/feedback/types.d.ts +8 -1
- package/dist/typescript/module/features/feedback/types.d.ts.map +1 -1
- package/dist/typescript/module/lib/helpers/helpers.d.ts +1 -2
- package/dist/typescript/module/lib/helpers/helpers.d.ts.map +1 -1
- package/dist/typescript/module/shared/icons/MessageBubbleIcon.d.ts.map +1 -0
- package/dist/typescript/module/shared/icons/XCloseIcon.d.ts.map +1 -0
- package/dist/typescript/module/shared/translation/constants.d.ts +38 -40
- package/dist/typescript/module/shared/translation/constants.d.ts.map +1 -1
- package/dist/typescript/module/shared/translation/helpers.d.ts.map +1 -1
- package/dist/typescript/module/shared/translation/types.d.ts +4 -1
- package/dist/typescript/module/shared/translation/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/features/chatbot/components/ChatControls/ChatControls.tsx +2 -2
- package/src/features/chatbot/components/Chatbot.tsx +1 -1
- package/src/features/feedback/components/EmptyComment.tsx +5 -8
- package/src/features/feedback/components/ListCardCommentsCount.tsx +1 -1
- package/src/features/feedback/components/TeacherFeedback.tsx +7 -8
- package/src/features/feedback/components/TeacherFeedbackButton/TeacherFeedbackButton.tsx +30 -16
- package/src/features/feedback/components/TeacherFeedbackComments/TeacherComment.tsx +3 -5
- package/src/features/feedback/components/TeacherFeedbackComments/TeacherFeedbackComments.tsx +2 -10
- package/src/features/feedback/components/UnreadMessagesBadge.tsx +10 -3
- package/src/features/feedback/constants.ts +12 -3
- package/src/features/feedback/helpers.ts +31 -0
- package/src/features/feedback/model/api.ts +6 -2
- package/src/features/feedback/model/comments.ts +17 -39
- package/src/features/feedback/model/model.ts +8 -11
- package/src/features/feedback/types.ts +7 -1
- package/src/lib/helpers/helpers.ts +24 -16
- package/src/lib/localization/en.json +12 -0
- package/src/lib/localization/gb.json +12 -0
- package/src/lib/localization/sw.json +12 -0
- package/src/shared/translation/constants.ts +0 -42
- package/src/shared/translation/helpers.ts +17 -17
- package/src/shared/translation/types.ts +12 -4
- package/dist/commonjs/features/feedback/assets/icons/MessageBubbleIcon.js.map +0 -1
- package/dist/commonjs/features/feedback/assets/icons/XCloseIcon.js.map +0 -1
- package/dist/module/features/feedback/assets/icons/MessageBubbleIcon.js.map +0 -1
- package/dist/module/features/feedback/assets/icons/XCloseIcon.js.map +0 -1
- package/dist/typescript/commonjs/features/feedback/assets/icons/MessageBubbleIcon.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/feedback/assets/icons/XCloseIcon.d.ts.map +0 -1
- package/dist/typescript/module/features/feedback/assets/icons/MessageBubbleIcon.d.ts.map +0 -1
- package/dist/typescript/module/features/feedback/assets/icons/XCloseIcon.d.ts.map +0 -1
- /package/dist/commonjs/{features/feedback/assets → shared}/icons/MessageBubbleIcon.js +0 -0
- /package/dist/commonjs/{features/feedback/assets → shared}/icons/XCloseIcon.js +0 -0
- /package/dist/module/{features/feedback/assets → shared}/icons/MessageBubbleIcon.js +0 -0
- /package/dist/module/{features/feedback/assets → shared}/icons/XCloseIcon.js +0 -0
- /package/dist/typescript/commonjs/{features/feedback/assets → shared}/icons/MessageBubbleIcon.d.ts +0 -0
- /package/dist/typescript/commonjs/{features/feedback/assets → shared}/icons/XCloseIcon.d.ts +0 -0
- /package/dist/typescript/module/{features/feedback/assets → shared}/icons/MessageBubbleIcon.d.ts +0 -0
- /package/dist/typescript/module/{features/feedback/assets → shared}/icons/XCloseIcon.d.ts +0 -0
- /package/src/{features/feedback/assets → shared}/icons/MessageBubbleIcon.tsx +0 -0
- /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
|
|
9
|
+
color?: FeedbackButtonColors;
|
|
10
|
+
size?: FeedbackButtonSize;
|
|
11
|
+
heightOffset?: number;
|
|
12
12
|
};
|
|
13
|
-
export declare const TeacherFeedback: ({ model, mode, assignmentId, problemId,
|
|
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,
|
|
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;
|
|
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
|
-
|
|
8
|
-
style: StyleProp<ViewStyle>;
|
|
6
|
+
style?: StyleProp<ViewStyle>;
|
|
9
7
|
};
|
|
10
|
-
export declare const TeacherComment: ({ comment,
|
|
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;
|
|
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[]
|
|
7
|
-
locale: Locale | null;
|
|
5
|
+
comments: TeacherCommentEntity[];
|
|
8
6
|
mode: FeedbackMode;
|
|
9
7
|
maxHeightOffset: number;
|
|
10
8
|
};
|
|
11
|
-
export declare const TeacherFeedbackComments: ({ comments,
|
|
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,
|
|
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,
|
|
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":"
|
|
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,
|
|
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:
|
|
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,
|
|
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,
|
|
2
|
+
import { AddCommentProps, CommentsMap, Credits, DeleteCommentProps } from '../types';
|
|
3
3
|
import { TeacherFeedbackAPI } from './api';
|
|
4
|
-
|
|
5
|
-
|
|
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<
|
|
9
|
-
|
|
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
|
|
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,
|
|
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 {
|
|
5
|
-
import { GetCommentsPayload, GetCommentsResponse,
|
|
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:
|
|
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
|
|
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,
|
|
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,
|
|
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
|
|
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":"
|
|
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
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
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
|
|
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,
|
|
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
|
-
|
|
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,
|
|
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,
|
|
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
|
-
|
|
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;
|
|
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
|
|
9
|
+
color?: FeedbackButtonColors;
|
|
10
|
+
size?: FeedbackButtonSize;
|
|
11
|
+
heightOffset?: number;
|
|
12
12
|
};
|
|
13
|
-
export declare const TeacherFeedback: ({ model, mode, assignmentId, problemId,
|
|
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,
|
|
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;
|
|
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
|
-
|
|
8
|
-
style: StyleProp<ViewStyle>;
|
|
6
|
+
style?: StyleProp<ViewStyle>;
|
|
9
7
|
};
|
|
10
|
-
export declare const TeacherComment: ({ comment,
|
|
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;
|
|
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[]
|
|
7
|
-
locale: Locale | null;
|
|
5
|
+
comments: TeacherCommentEntity[];
|
|
8
6
|
mode: FeedbackMode;
|
|
9
7
|
maxHeightOffset: number;
|
|
10
8
|
};
|
|
11
|
-
export declare const TeacherFeedbackComments: ({ comments,
|
|
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,
|
|
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,
|
|
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":"
|
|
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,
|
|
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"}
|