@magmamath/students-features 0.8.0-rc.2 → 0.8.0-rc.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commonjs/features/chatbot/components/ChatInput/ChatInput.js +1 -1
- package/dist/commonjs/features/chatbot/components/ChatInput/ChatInput.js.map +1 -1
- package/dist/commonjs/features/chatbot/components/ChatInput/FreeText/ChatTextInput.js +10 -5
- package/dist/commonjs/features/chatbot/components/ChatInput/FreeText/ChatTextInput.js.map +1 -1
- package/dist/commonjs/features/chatbot/components/ChatInput/FreeText/FreeTextInputBlock.js +1 -1
- package/dist/commonjs/features/chatbot/components/ChatInput/FreeText/FreeTextInputBlock.js.map +1 -1
- package/dist/commonjs/features/chatbot/components/ChatInput/RequestHintButton.js +7 -7
- package/dist/commonjs/features/chatbot/components/ChatInput/RequestHintButton.js.map +1 -1
- package/dist/commonjs/features/chatbot/components/Chatbot.js.map +1 -1
- package/dist/commonjs/features/chatbot/helpers.js +9 -5
- package/dist/commonjs/features/chatbot/helpers.js.map +1 -1
- package/dist/commonjs/features/chatbot/model/ChatBotModel.js +9 -9
- package/dist/commonjs/features/chatbot/model/ChatBotModel.js.map +1 -1
- package/dist/commonjs/features/chatbot/model/ChatBotThreadManager.js +1 -1
- package/dist/commonjs/features/chatbot/model/ChatBotThreadManager.js.map +1 -1
- package/dist/commonjs/features/chatbot/types/model.types.js +2 -2
- package/dist/commonjs/features/chatbot/types/units.types.js +0 -10
- package/dist/commonjs/features/chatbot/types/units.types.js.map +1 -1
- package/dist/commonjs/features/endOfAssignment/components/CheatDetected/CheatDetected.js +5 -3
- package/dist/commonjs/features/endOfAssignment/components/CheatDetected/CheatDetected.js.map +1 -1
- package/dist/commonjs/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.js +5 -3
- package/dist/commonjs/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.js.map +1 -1
- package/dist/commonjs/features/endOfAssignment/components/ExamLeave/ExamLeave.js +5 -3
- package/dist/commonjs/features/endOfAssignment/components/ExamLeave/ExamLeave.js.map +1 -1
- package/dist/commonjs/features/endOfAssignment/components/ExamPaused/ExamPaused.js +5 -3
- package/dist/commonjs/features/endOfAssignment/components/ExamPaused/ExamPaused.js.map +1 -1
- package/dist/commonjs/features/endOfAssignment/components/ExamSubmit/ExamSubmit.js +5 -3
- package/dist/commonjs/features/endOfAssignment/components/ExamSubmit/ExamSubmit.js.map +1 -1
- package/dist/commonjs/features/endOfAssignment/components/NoAnswer/NoAnswer.js +6 -4
- package/dist/commonjs/features/endOfAssignment/components/NoAnswer/NoAnswer.js.map +1 -1
- package/dist/commonjs/features/exampleSolution/components/ExampleSolutionModalContent.js +0 -8
- package/dist/commonjs/features/exampleSolution/components/ExampleSolutionModalContent.js.map +1 -1
- package/dist/commonjs/shared/hooks/useKeyDownListener.js +5 -1
- package/dist/commonjs/shared/hooks/useKeyDownListener.js.map +1 -1
- package/dist/commonjs/shared/translation/localization/ca.json +1 -0
- package/dist/commonjs/shared/translation/localization/en.json +1 -0
- package/dist/commonjs/shared/translation/localization/gb.json +1 -0
- package/dist/commonjs/shared/translation/localization/sct.json +1 -0
- package/dist/commonjs/shared/translation/localization/sw.json +3 -2
- package/dist/module/features/chatbot/components/ChatInput/ChatInput.js +1 -1
- package/dist/module/features/chatbot/components/ChatInput/ChatInput.js.map +1 -1
- package/dist/module/features/chatbot/components/ChatInput/FreeText/ChatTextInput.js +10 -5
- package/dist/module/features/chatbot/components/ChatInput/FreeText/ChatTextInput.js.map +1 -1
- package/dist/module/features/chatbot/components/ChatInput/FreeText/FreeTextInputBlock.js +1 -1
- package/dist/module/features/chatbot/components/ChatInput/FreeText/FreeTextInputBlock.js.map +1 -1
- package/dist/module/features/chatbot/components/ChatInput/RequestHintButton.js +7 -7
- package/dist/module/features/chatbot/components/ChatInput/RequestHintButton.js.map +1 -1
- package/dist/module/features/chatbot/components/Chatbot.js.map +1 -1
- package/dist/module/features/chatbot/helpers.js +9 -5
- package/dist/module/features/chatbot/helpers.js.map +1 -1
- package/dist/module/features/chatbot/model/ChatBotModel.js +9 -9
- package/dist/module/features/chatbot/model/ChatBotModel.js.map +1 -1
- package/dist/module/features/chatbot/model/ChatBotThreadManager.js +1 -1
- package/dist/module/features/chatbot/model/ChatBotThreadManager.js.map +1 -1
- package/dist/module/features/chatbot/types/model.types.js +2 -2
- package/dist/module/features/chatbot/types/units.types.js +0 -6
- package/dist/module/features/chatbot/types/units.types.js.map +1 -1
- package/dist/module/features/endOfAssignment/components/CheatDetected/CheatDetected.js +5 -3
- package/dist/module/features/endOfAssignment/components/CheatDetected/CheatDetected.js.map +1 -1
- package/dist/module/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.js +5 -3
- package/dist/module/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.js.map +1 -1
- package/dist/module/features/endOfAssignment/components/ExamLeave/ExamLeave.js +5 -3
- package/dist/module/features/endOfAssignment/components/ExamLeave/ExamLeave.js.map +1 -1
- package/dist/module/features/endOfAssignment/components/ExamPaused/ExamPaused.js +5 -3
- package/dist/module/features/endOfAssignment/components/ExamPaused/ExamPaused.js.map +1 -1
- package/dist/module/features/endOfAssignment/components/ExamSubmit/ExamSubmit.js +5 -3
- package/dist/module/features/endOfAssignment/components/ExamSubmit/ExamSubmit.js.map +1 -1
- package/dist/module/features/endOfAssignment/components/NoAnswer/NoAnswer.js +6 -4
- package/dist/module/features/endOfAssignment/components/NoAnswer/NoAnswer.js.map +1 -1
- package/dist/module/features/exampleSolution/components/ExampleSolutionModalContent.js +0 -8
- package/dist/module/features/exampleSolution/components/ExampleSolutionModalContent.js.map +1 -1
- package/dist/module/shared/hooks/useKeyDownListener.js +5 -1
- package/dist/module/shared/hooks/useKeyDownListener.js.map +1 -1
- package/dist/module/shared/translation/localization/ca.json +1 -0
- package/dist/module/shared/translation/localization/en.json +1 -0
- package/dist/module/shared/translation/localization/gb.json +1 -0
- package/dist/module/shared/translation/localization/sct.json +1 -0
- package/dist/module/shared/translation/localization/sw.json +3 -2
- package/dist/typescript/commonjs/features/chatbot/components/ChatInput/FreeText/ChatTextInput.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/components/ChatInput/RequestHintButton.d.ts +2 -2
- package/dist/typescript/commonjs/features/chatbot/components/Chatbot.d.ts +0 -2
- package/dist/typescript/commonjs/features/chatbot/components/Chatbot.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/helpers.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/model/ChatBotModel.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/types/model.types.d.ts +5 -5
- package/dist/typescript/commonjs/features/chatbot/types/units.types.d.ts +0 -4
- package/dist/typescript/commonjs/features/chatbot/types/units.types.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/endOfAssignment/components/CheatDetected/CheatDetected.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/endOfAssignment/components/ExamLeave/ExamLeave.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/endOfAssignment/components/ExamPaused/ExamPaused.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/endOfAssignment/components/ExamSubmit/ExamSubmit.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/endOfAssignment/components/NoAnswer/NoAnswer.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/exampleSolution/components/ExampleSolutionModalContent.d.ts.map +1 -1
- package/dist/typescript/commonjs/shared/hooks/useKeyDownListener.d.ts +7 -1
- package/dist/typescript/commonjs/shared/hooks/useKeyDownListener.d.ts.map +1 -1
- package/dist/typescript/commonjs/shared/hooks/useKeyboard.d.ts +5 -1
- package/dist/typescript/commonjs/shared/hooks/useKeyboard.d.ts.map +1 -1
- package/dist/typescript/commonjs/shared/translation/constants.d.ts +5 -0
- package/dist/typescript/commonjs/shared/translation/constants.d.ts.map +1 -1
- package/dist/typescript/commonjs/shared/translation/model.d.ts +2 -0
- package/dist/typescript/commonjs/shared/translation/model.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/components/ChatInput/FreeText/ChatTextInput.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/components/ChatInput/RequestHintButton.d.ts +2 -2
- package/dist/typescript/module/features/chatbot/components/Chatbot.d.ts +0 -2
- package/dist/typescript/module/features/chatbot/components/Chatbot.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/helpers.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/model/ChatBotModel.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/types/model.types.d.ts +5 -5
- package/dist/typescript/module/features/chatbot/types/units.types.d.ts +0 -4
- package/dist/typescript/module/features/chatbot/types/units.types.d.ts.map +1 -1
- package/dist/typescript/module/features/endOfAssignment/components/CheatDetected/CheatDetected.d.ts.map +1 -1
- package/dist/typescript/module/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.d.ts.map +1 -1
- package/dist/typescript/module/features/endOfAssignment/components/ExamLeave/ExamLeave.d.ts.map +1 -1
- package/dist/typescript/module/features/endOfAssignment/components/ExamPaused/ExamPaused.d.ts.map +1 -1
- package/dist/typescript/module/features/endOfAssignment/components/ExamSubmit/ExamSubmit.d.ts.map +1 -1
- package/dist/typescript/module/features/endOfAssignment/components/NoAnswer/NoAnswer.d.ts.map +1 -1
- package/dist/typescript/module/features/exampleSolution/components/ExampleSolutionModalContent.d.ts.map +1 -1
- package/dist/typescript/module/shared/hooks/useKeyDownListener.d.ts +7 -1
- package/dist/typescript/module/shared/hooks/useKeyDownListener.d.ts.map +1 -1
- package/dist/typescript/module/shared/hooks/useKeyboard.d.ts +5 -1
- package/dist/typescript/module/shared/hooks/useKeyboard.d.ts.map +1 -1
- package/dist/typescript/module/shared/translation/constants.d.ts +5 -0
- package/dist/typescript/module/shared/translation/constants.d.ts.map +1 -1
- package/dist/typescript/module/shared/translation/model.d.ts +2 -0
- package/dist/typescript/module/shared/translation/model.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/features/chatbot/components/ChatInput/ChatInput.tsx +1 -1
- package/src/features/chatbot/components/ChatInput/FreeText/ChatTextInput.tsx +13 -8
- package/src/features/chatbot/components/ChatInput/FreeText/FreeTextInputBlock.tsx +1 -1
- package/src/features/chatbot/components/ChatInput/RequestHintButton.tsx +7 -7
- package/src/features/chatbot/components/Chatbot.tsx +0 -2
- package/src/features/chatbot/helpers.ts +15 -5
- package/src/features/chatbot/model/ChatBotModel.ts +5 -9
- package/src/features/chatbot/model/ChatBotThreadManager.ts +1 -1
- package/src/features/chatbot/types/model.types.ts +5 -5
- package/src/features/chatbot/types/units.types.ts +0 -5
- package/src/features/endOfAssignment/components/CheatDetected/CheatDetected.tsx +6 -4
- package/src/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.tsx +6 -4
- package/src/features/endOfAssignment/components/ExamLeave/ExamLeave.tsx +6 -4
- package/src/features/endOfAssignment/components/ExamPaused/ExamPaused.tsx +6 -4
- package/src/features/endOfAssignment/components/ExamSubmit/ExamSubmit.tsx +6 -4
- package/src/features/endOfAssignment/components/NoAnswer/NoAnswer.tsx +7 -5
- package/src/features/exampleSolution/components/ExampleSolutionModalContent.tsx +0 -4
- package/src/shared/hooks/useKeyDownListener.ts +9 -4
- package/src/shared/translation/localization/ca.json +1 -0
- package/src/shared/translation/localization/en.json +1 -0
- package/src/shared/translation/localization/gb.json +1 -0
- package/src/shared/translation/localization/sct.json +1 -0
- package/src/shared/translation/localization/sw.json +3 -2
- package/dist/commonjs/features/exampleSolution/components/LavaIcon.js +0 -44
- package/dist/commonjs/features/exampleSolution/components/LavaIcon.js.map +0 -1
- package/dist/commonjs/features/exampleSolution/components/MessageBlock.js +0 -61
- package/dist/commonjs/features/exampleSolution/components/MessageBlock.js.map +0 -1
- package/dist/module/features/exampleSolution/components/LavaIcon.js +0 -36
- package/dist/module/features/exampleSolution/components/LavaIcon.js.map +0 -1
- package/dist/module/features/exampleSolution/components/MessageBlock.js +0 -53
- package/dist/module/features/exampleSolution/components/MessageBlock.js.map +0 -1
- package/dist/typescript/commonjs/features/exampleSolution/components/LavaIcon.d.ts +0 -10
- package/dist/typescript/commonjs/features/exampleSolution/components/LavaIcon.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/exampleSolution/components/MessageBlock.d.ts +0 -10
- package/dist/typescript/commonjs/features/exampleSolution/components/MessageBlock.d.ts.map +0 -1
- package/dist/typescript/module/features/exampleSolution/components/LavaIcon.d.ts +0 -10
- package/dist/typescript/module/features/exampleSolution/components/LavaIcon.d.ts.map +0 -1
- package/dist/typescript/module/features/exampleSolution/components/MessageBlock.d.ts +0 -10
- package/dist/typescript/module/features/exampleSolution/components/MessageBlock.d.ts.map +0 -1
- package/src/features/exampleSolution/components/LavaIcon.tsx +0 -35
- package/src/features/exampleSolution/components/MessageBlock.tsx +0 -67
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"units.types.d.ts","sourceRoot":"","sources":["../../../../../../src/features/chatbot/types/units.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,MAAM,GAAG;IACnB,CAAC,EAAE,MAAM,EAAE,CAAA;IACX,CAAC,EAAE,MAAM,EAAE,CAAA;CACZ,CAAA;AACD,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG;IACpC,EAAE,EAAE,MAAM,CAAA;CACX,CAAA;AAED,MAAM,MAAM,WAAW,GAAG;IACxB,EAAE,EAAE,MAAM,CAAA;IACV,oBAAoB,EAAE,MAAM,GAAG,IAAI,CAAA;IACnC,OAAO,EAAE,cAAc,EAAE,GAAG,IAAI,CAAA;IAChC,OAAO,EAAE,MAAM,EAAE,CAAA;IACjB,eAAe,EAAE,MAAM,EAAE,GAAG,IAAI,CAAA;CACjC,CAAA;AAED,MAAM,MAAM,UAAU,GAAG;IACvB,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,EAAE,MAAM,CAAA;IACjB,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB,CAAA;AAED,MAAM,MAAM,mBAAmB,GAAG;IAChC,EAAE,EAAE,MAAM,CAAA;IACV,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,UAAU,EAAE,CAAA;IACrB,YAAY,EAAE,OAAO,CAAA;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,MAAM,MAAM,QAAQ,GAAG;IACrB,QAAQ,EAAE,mBAAmB,EAAE,CAAA;IAC/B,WAAW,EAAE,OAAO,CAAA;IACpB,aAAa,EAAE,WAAW,GAAG,IAAI,CAAA;IACjC,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAC/B,CAAA
|
|
1
|
+
{"version":3,"file":"units.types.d.ts","sourceRoot":"","sources":["../../../../../../src/features/chatbot/types/units.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,MAAM,GAAG;IACnB,CAAC,EAAE,MAAM,EAAE,CAAA;IACX,CAAC,EAAE,MAAM,EAAE,CAAA;CACZ,CAAA;AACD,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG;IACpC,EAAE,EAAE,MAAM,CAAA;CACX,CAAA;AAED,MAAM,MAAM,WAAW,GAAG;IACxB,EAAE,EAAE,MAAM,CAAA;IACV,oBAAoB,EAAE,MAAM,GAAG,IAAI,CAAA;IACnC,OAAO,EAAE,cAAc,EAAE,GAAG,IAAI,CAAA;IAChC,OAAO,EAAE,MAAM,EAAE,CAAA;IACjB,eAAe,EAAE,MAAM,EAAE,GAAG,IAAI,CAAA;CACjC,CAAA;AAED,MAAM,MAAM,UAAU,GAAG;IACvB,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,EAAE,MAAM,CAAA;IACjB,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB,CAAA;AAED,MAAM,MAAM,mBAAmB,GAAG;IAChC,EAAE,EAAE,MAAM,CAAA;IACV,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,UAAU,EAAE,CAAA;IACrB,YAAY,EAAE,OAAO,CAAA;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,MAAM,MAAM,QAAQ,GAAG;IACrB,QAAQ,EAAE,mBAAmB,EAAE,CAAA;IAC/B,WAAW,EAAE,OAAO,CAAA;IACpB,aAAa,EAAE,WAAW,GAAG,IAAI,CAAA;IACjC,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAC/B,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CheatDetected.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/endOfAssignment/components/CheatDetected/CheatDetected.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAYzB,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAIlD,eAAO,MAAM,aAAa,2BAA4B,oBAAoB,
|
|
1
|
+
{"version":3,"file":"CheatDetected.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/endOfAssignment/components/CheatDetected/CheatDetected.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAYzB,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAIlD,eAAO,MAAM,aAAa,2BAA4B,oBAAoB,sBA8BzE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CorrectAnswer.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgC,MAAM,OAAO,CAAA;AAUpD,OAAO,EAAuB,oBAAoB,EAAmB,MAAM,aAAa,CAAA;AAIxF,eAAO,MAAM,aAAa,4CAA6C,oBAAoB,
|
|
1
|
+
{"version":3,"file":"CorrectAnswer.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgC,MAAM,OAAO,CAAA;AAUpD,OAAO,EAAuB,oBAAoB,EAAmB,MAAM,aAAa,CAAA;AAIxF,eAAO,MAAM,aAAa,4CAA6C,oBAAoB,sBA0F1F,CAAA"}
|
package/dist/typescript/commonjs/features/endOfAssignment/components/ExamLeave/ExamLeave.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExamLeave.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/endOfAssignment/components/ExamLeave/ExamLeave.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAYzB,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAIlD,eAAO,MAAM,SAAS,2BAA4B,oBAAoB,
|
|
1
|
+
{"version":3,"file":"ExamLeave.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/endOfAssignment/components/ExamLeave/ExamLeave.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAYzB,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAIlD,eAAO,MAAM,SAAS,2BAA4B,oBAAoB,sBAuCrE,CAAA"}
|
package/dist/typescript/commonjs/features/endOfAssignment/components/ExamPaused/ExamPaused.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExamPaused.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/endOfAssignment/components/ExamPaused/ExamPaused.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAYzB,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAIlD,eAAO,MAAM,UAAU,2BAA4B,oBAAoB,
|
|
1
|
+
{"version":3,"file":"ExamPaused.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/endOfAssignment/components/ExamPaused/ExamPaused.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAYzB,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAIlD,eAAO,MAAM,UAAU,2BAA4B,oBAAoB,sBA8BtE,CAAA"}
|
package/dist/typescript/commonjs/features/endOfAssignment/components/ExamSubmit/ExamSubmit.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExamSubmit.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/endOfAssignment/components/ExamSubmit/ExamSubmit.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAgBzB,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAKlD,eAAO,MAAM,UAAU,4CAA6C,oBAAoB,
|
|
1
|
+
{"version":3,"file":"ExamSubmit.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/endOfAssignment/components/ExamSubmit/ExamSubmit.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAgBzB,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAKlD,eAAO,MAAM,UAAU,4CAA6C,oBAAoB,sBAqDvF,CAAA"}
|
package/dist/typescript/commonjs/features/endOfAssignment/components/NoAnswer/NoAnswer.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NoAnswer.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/endOfAssignment/components/NoAnswer/NoAnswer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAczB,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAKlD,eAAO,MAAM,QAAQ,4CAA6C,oBAAoB,
|
|
1
|
+
{"version":3,"file":"NoAnswer.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/endOfAssignment/components/NoAnswer/NoAnswer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAczB,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAKlD,eAAO,MAAM,QAAQ,4CAA6C,oBAAoB,sBAuFrF,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExampleSolutionModalContent.d.ts","sourceRoot":"","sources":["../../../../../../src/features/exampleSolution/components/ExampleSolutionModalContent.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"ExampleSolutionModalContent.d.ts","sourceRoot":"","sources":["../../../../../../src/features/exampleSolution/components/ExampleSolutionModalContent.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,OAAO,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAA;AAKrD,KAAK,gCAAgC,GAAG;IACtC,MAAM,EAAE,0BAA0B,CAAA;CACnC,CAAA;AAID,eAAO,MAAM,2BAA2B,8CAErC,gCAAgC,sBAwBlC,CAAA"}
|
|
@@ -1,3 +1,9 @@
|
|
|
1
1
|
import { KeyboardKeys } from '../../lib/constants';
|
|
2
|
-
|
|
2
|
+
type UseKeyDownListenerParams = {
|
|
3
|
+
callback: (event: KeyboardEvent) => void;
|
|
4
|
+
enabled?: boolean;
|
|
5
|
+
overrideKeys?: KeyboardKeys[];
|
|
6
|
+
};
|
|
7
|
+
export declare const useKeyDownListener: ({ callback, overrideKeys, enabled, }: UseKeyDownListenerParams) => void;
|
|
8
|
+
export {};
|
|
3
9
|
//# sourceMappingURL=useKeyDownListener.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useKeyDownListener.d.ts","sourceRoot":"","sources":["../../../../../src/shared/hooks/useKeyDownListener.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAElD,
|
|
1
|
+
{"version":3,"file":"useKeyDownListener.d.ts","sourceRoot":"","sources":["../../../../../src/shared/hooks/useKeyDownListener.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAElD,KAAK,wBAAwB,GAAG;IAC9B,QAAQ,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,CAAA;IACxC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,YAAY,CAAC,EAAE,YAAY,EAAE,CAAA;CAC9B,CAAA;AACD,eAAO,MAAM,kBAAkB,yCAI5B,wBAAwB,SAoB1B,CAAA"}
|
|
@@ -7,5 +7,9 @@
|
|
|
7
7
|
* - On web (default), it returns the `useKeyDownListener` hook, which allows you
|
|
8
8
|
* to register a callback that is triggered on keydown events.
|
|
9
9
|
*/
|
|
10
|
-
export declare const useKeyBoard: (callback
|
|
10
|
+
export declare const useKeyBoard: ({ callback, overrideKeys, enabled, }: {
|
|
11
|
+
callback: (event: KeyboardEvent) => void;
|
|
12
|
+
enabled?: boolean;
|
|
13
|
+
overrideKeys?: import("../../lib/constants").KeyboardKeys[];
|
|
14
|
+
}) => void;
|
|
11
15
|
//# sourceMappingURL=useKeyboard.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useKeyboard.d.ts","sourceRoot":"","sources":["../../../../../src/shared/hooks/useKeyboard.ts"],"names":[],"mappings":"AAKA;;;;;;;;GAQG;AACH,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"useKeyboard.d.ts","sourceRoot":"","sources":["../../../../../src/shared/hooks/useKeyboard.ts"],"names":[],"mappings":"AAKA;;;;;;;;GAQG;AACH,eAAO,MAAM,WAAW;;;;UAGtB,CAAC"}
|
|
@@ -15,6 +15,7 @@ export declare const LOCALIZATION_CONFIGS: {
|
|
|
15
15
|
chat: {
|
|
16
16
|
anotherHint: string;
|
|
17
17
|
giveHint: string;
|
|
18
|
+
giveHintOpenChat: string;
|
|
18
19
|
answerAgain: string;
|
|
19
20
|
errorMessage: string;
|
|
20
21
|
howCanIHelp: string;
|
|
@@ -49,6 +50,7 @@ export declare const LOCALIZATION_CONFIGS: {
|
|
|
49
50
|
chat: {
|
|
50
51
|
anotherHint: string;
|
|
51
52
|
giveHint: string;
|
|
53
|
+
giveHintOpenChat: string;
|
|
52
54
|
answerAgain: string;
|
|
53
55
|
errorMessage: string;
|
|
54
56
|
howCanIHelp: string;
|
|
@@ -83,6 +85,7 @@ export declare const LOCALIZATION_CONFIGS: {
|
|
|
83
85
|
chat: {
|
|
84
86
|
anotherHint: string;
|
|
85
87
|
giveHint: string;
|
|
88
|
+
giveHintOpenChat: string;
|
|
86
89
|
answerAgain: string;
|
|
87
90
|
errorMessage: string;
|
|
88
91
|
howCanIHelp: string;
|
|
@@ -117,6 +120,7 @@ export declare const LOCALIZATION_CONFIGS: {
|
|
|
117
120
|
chat: {
|
|
118
121
|
anotherHint: string;
|
|
119
122
|
giveHint: string;
|
|
123
|
+
giveHintOpenChat: string;
|
|
120
124
|
answerAgain: string;
|
|
121
125
|
errorMessage: string;
|
|
122
126
|
howCanIHelp: string;
|
|
@@ -151,6 +155,7 @@ export declare const LOCALIZATION_CONFIGS: {
|
|
|
151
155
|
chat: {
|
|
152
156
|
anotherHint: string;
|
|
153
157
|
giveHint: string;
|
|
158
|
+
giveHintOpenChat: string;
|
|
154
159
|
answerAgain: string;
|
|
155
160
|
errorMessage: string;
|
|
156
161
|
howCanIHelp: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/shared/translation/constants.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/shared/translation/constants.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMhC,CAAA"}
|
|
@@ -16,6 +16,7 @@ export declare const setLocalization: import("effector").EventCallable<{
|
|
|
16
16
|
chat: {
|
|
17
17
|
anotherHint: string;
|
|
18
18
|
giveHint: string;
|
|
19
|
+
giveHintOpenChat: string;
|
|
19
20
|
answerAgain: string;
|
|
20
21
|
errorMessage: string;
|
|
21
22
|
howCanIHelp: string;
|
|
@@ -50,6 +51,7 @@ export declare const $localization: import("effector").StoreWritable<{
|
|
|
50
51
|
chat: {
|
|
51
52
|
anotherHint: string;
|
|
52
53
|
giveHint: string;
|
|
54
|
+
giveHintOpenChat: string;
|
|
53
55
|
answerAgain: string;
|
|
54
56
|
errorMessage: string;
|
|
55
57
|
howCanIHelp: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../../../../src/shared/translation/model.ts"],"names":[],"mappings":"AACA,OAAO,EAAU,YAAY,EAAE,MAAM,SAAS,CAAA;AAC9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAElD,eAAO,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../../../../src/shared/translation/model.ts"],"names":[],"mappings":"AACA,OAAO,EAAU,YAAY,EAAE,MAAM,SAAS,CAAA;AAC9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAElD,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cACD,OAAO,oBAAoB,KAAK,YAAY,EACpE,CAAA;AAEH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMzB,CAAA"}
|
package/dist/typescript/module/features/chatbot/components/ChatInput/FreeText/ChatTextInput.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatTextInput.d.ts","sourceRoot":"","sources":["../../../../../../../../src/features/chatbot/components/ChatInput/FreeText/ChatTextInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2B,MAAM,OAAO,CAAA;AAE/C,OAAO,EACL,oBAAoB,EAIpB,uBAAuB,EACxB,MAAM,cAAc,CAAA;AAErB,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAA;AAW1D,KAAK,kBAAkB,GAAG;IACxB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,IAAI,CAAA;IACpB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;IACrC,MAAM,CAAC,EAAE,CAAC,CAAC,EAAE,oBAAoB,CAAC,uBAAuB,CAAC,KAAK,IAAI,CAAA;IACnE,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,oBAAoB,CAAC,uBAAuB,CAAC,KAAK,IAAI,CAAA;IACpE,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,WAAW,CAAC,EAAE,WAAW,CAAA;CAC1B,CAAA;AAED,eAAO,MAAM,aAAa,kGASvB,kBAAkB,
|
|
1
|
+
{"version":3,"file":"ChatTextInput.d.ts","sourceRoot":"","sources":["../../../../../../../../src/features/chatbot/components/ChatInput/FreeText/ChatTextInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2B,MAAM,OAAO,CAAA;AAE/C,OAAO,EACL,oBAAoB,EAIpB,uBAAuB,EACxB,MAAM,cAAc,CAAA;AAErB,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAA;AAW1D,KAAK,kBAAkB,GAAG;IACxB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,IAAI,CAAA;IACpB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;IACrC,MAAM,CAAC,EAAE,CAAC,CAAC,EAAE,oBAAoB,CAAC,uBAAuB,CAAC,KAAK,IAAI,CAAA;IACnE,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,oBAAoB,CAAC,uBAAuB,CAAC,KAAK,IAAI,CAAA;IACpE,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,WAAW,CAAC,EAAE,WAAW,CAAA;CAC1B,CAAA;AAED,eAAO,MAAM,aAAa,kGASvB,kBAAkB,sBA8EpB,CAAA"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ColorScheme } from '@magmamath/students-features';
|
|
3
3
|
export declare enum HintButtonVariant {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
DEFAULT = "default",
|
|
5
|
+
SHORT = "short"
|
|
6
6
|
}
|
|
7
7
|
type RequestHintButtonProps = {
|
|
8
8
|
onPress: () => void;
|
|
@@ -2,7 +2,6 @@ import React, { ComponentType, PropsWithChildren } from 'react';
|
|
|
2
2
|
import { ChatbotModel } from '../model/ChatBotModel';
|
|
3
3
|
import { AUDIO_CONFIG, DEFAULT_VOICE } from '../constants';
|
|
4
4
|
import { ColorScheme } from '../types/style.types';
|
|
5
|
-
import { ChatInputMode } from '../types/units.types';
|
|
6
5
|
type ChatbotProps = {
|
|
7
6
|
model: ChatbotModel;
|
|
8
7
|
isHintFeedback: boolean;
|
|
@@ -11,7 +10,6 @@ type ChatbotProps = {
|
|
|
11
10
|
voice: typeof DEFAULT_VOICE;
|
|
12
11
|
audioConfig: typeof AUDIO_CONFIG;
|
|
13
12
|
};
|
|
14
|
-
inputMode?: ChatInputMode;
|
|
15
13
|
ButtonWrapper?: ComponentType<PropsWithChildren>;
|
|
16
14
|
iconSize?: {
|
|
17
15
|
width: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Chatbot.d.ts","sourceRoot":"","sources":["../../../../../../src/features/chatbot/components/Chatbot.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAG/D,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAGpD,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAE1D,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;
|
|
1
|
+
{"version":3,"file":"Chatbot.d.ts","sourceRoot":"","sources":["../../../../../../src/features/chatbot/components/Chatbot.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAG/D,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAGpD,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAE1D,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAElD,KAAK,YAAY,GAAG;IAClB,KAAK,EAAE,YAAY,CAAA;IACnB,cAAc,EAAE,OAAO,CAAA;IACvB,qBAAqB,EAAE,OAAO,CAAA;IAC9B,kBAAkB,CAAC,EAAE;QACnB,KAAK,EAAE,OAAO,aAAa,CAAA;QAC3B,WAAW,EAAE,OAAO,YAAY,CAAA;KACjC,CAAA;IACD,aAAa,CAAC,EAAE,aAAa,CAAC,iBAAiB,CAAC,CAAA;IAChD,QAAQ,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAA;IAC5C,WAAW,CAAC,EAAE,WAAW,CAAA;CAC1B,CAAA;AAED,eAAO,MAAM,OAAO,gHAQjB,YAAY,6BA8Bd,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../src/features/chatbot/helpers.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAA;AAE/E,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAC/C,OAAO,EAAE,kBAAkB,EAAmB,MAAM,qBAAqB,CAAA;AAEzE,eAAO,MAAM,kBAAkB,UAAW,MAAM,WAE/C,CAAA;AAED,eAAO,MAAM,kBAAkB,UAAW,MAAM,EAAE,gCAWjD,CAAA;AAED,eAAO,MAAM,qBAAqB,YAAa,uBAAuB,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../src/features/chatbot/helpers.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAA;AAE/E,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAC/C,OAAO,EAAE,kBAAkB,EAAmB,MAAM,qBAAqB,CAAA;AAEzE,eAAO,MAAM,kBAAkB,UAAW,MAAM,WAE/C,CAAA;AAED,eAAO,MAAM,kBAAkB,UAAW,MAAM,EAAE,gCAWjD,CAAA;AAED,eAAO,MAAM,qBAAqB,YAAa,uBAAuB,GAAG,IAAI,mCA0B5E,CAAA;AAED,wBAAgB,yBAAyB,CACvC,OAAO,EAAE,kBAAkB,EAC3B,UAAU,EAAE,UAAU,GACrB,kBAAkB,CA0CpB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatBotModel.d.ts","sourceRoot":"","sources":["../../../../../../src/features/chatbot/model/ChatBotModel.ts"],"names":[],"mappings":"AAAA,OAAO,EAQL,KAAK,KAAK,EACX,MAAM,UAAU,CAAA;AAEjB,OAAO,EACL,cAAc,EACd,iBAAiB,EACjB,qBAAqB,EACrB,uBAAuB,EACvB,cAAc,EAEd,mBAAmB,EAEnB,sBAAsB,EACvB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAA;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AACzD,OAAO,EAAE,qBAAqB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAExD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAE7D,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAA;AACxE,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAErD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAIzD,qBAAa,YAAY;IACvB,SAAgB,WAAW,qBAA2B;IACtD,OAAO,CAAC,QAAQ,CAAC,eAAe,CAA4B;IAE5D,SAAgB,aAAa,uBAE3B;IACF,SAAgB,GAAG,EAAE,UAAU,CAAA;IAE/B,SAAgB,WAAW,EAAE,kBAAkB,CAAA;IAC/C,SAAgB,GAAG,EAAE,qBAAqB,CAAA;IAC1C,SAAgB,aAAa,EAAE,kBAAkB,CAAA;IACjD,SAAgB,SAAS,mBAAyB;IAElD,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAwB;IACtD,SAAgB,WAAW,2CAAkC;IAE7D,OAAO,CAAC,gBAAgB,CAA4B;IACpD,OAAO,CAAC,4BAA4B,CAAC,CAAiC;IAEtE,QAAQ,CAAC,iBAAiB,yCAAgB;IAC1C,QAAQ,CAAC,eAAe,mEAAgD;IACxE,QAAQ,CAAC,aAAa,EAAE,KAAK,CAAC,uBAAuB,GAAG,IAAI,CAAC,CAAA;IAE7D,QAAQ,CAAC,SAAS,4CAAyB;IAC3C,QAAQ,CAAC,UAAU,yCAAgB;IACnC,QAAQ,CAAC,OAAO,4CAA0E;IAE1F,SAAgB,iBAAiB,yCAAgB;IACjD,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAwB;IAC1D,SAAgB,eAAe,kDAAwC;IAEvE,SAAgB,UAAU,0DAAuC;IACjE,SAAgB,QAAQ,0DAAiC;IAEzD,SAAgB,eAAe,4CAAyB;IACxD,SAAgB,eAAe,4CAAuC;IAEtE,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAwB;IAE9C,SAAgB,gBAAgB;;;;;;OAG/B;gBAEW,EAAE,GAAG,EAAE,IAAI,EAAE,mBAAmB,EAAE,QAAa,EAAE,EAAE,iBAAiB;IAoGhF,OAAO,CAAC,uBAAuB;
|
|
1
|
+
{"version":3,"file":"ChatBotModel.d.ts","sourceRoot":"","sources":["../../../../../../src/features/chatbot/model/ChatBotModel.ts"],"names":[],"mappings":"AAAA,OAAO,EAQL,KAAK,KAAK,EACX,MAAM,UAAU,CAAA;AAEjB,OAAO,EACL,cAAc,EACd,iBAAiB,EACjB,qBAAqB,EACrB,uBAAuB,EACvB,cAAc,EAEd,mBAAmB,EAEnB,sBAAsB,EACvB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAA;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AACzD,OAAO,EAAE,qBAAqB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAExD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAE7D,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAA;AACxE,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAErD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAIzD,qBAAa,YAAY;IACvB,SAAgB,WAAW,qBAA2B;IACtD,OAAO,CAAC,QAAQ,CAAC,eAAe,CAA4B;IAE5D,SAAgB,aAAa,uBAE3B;IACF,SAAgB,GAAG,EAAE,UAAU,CAAA;IAE/B,SAAgB,WAAW,EAAE,kBAAkB,CAAA;IAC/C,SAAgB,GAAG,EAAE,qBAAqB,CAAA;IAC1C,SAAgB,aAAa,EAAE,kBAAkB,CAAA;IACjD,SAAgB,SAAS,mBAAyB;IAElD,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAwB;IACtD,SAAgB,WAAW,2CAAkC;IAE7D,OAAO,CAAC,gBAAgB,CAA4B;IACpD,OAAO,CAAC,4BAA4B,CAAC,CAAiC;IAEtE,QAAQ,CAAC,iBAAiB,yCAAgB;IAC1C,QAAQ,CAAC,eAAe,mEAAgD;IACxE,QAAQ,CAAC,aAAa,EAAE,KAAK,CAAC,uBAAuB,GAAG,IAAI,CAAC,CAAA;IAE7D,QAAQ,CAAC,SAAS,4CAAyB;IAC3C,QAAQ,CAAC,UAAU,yCAAgB;IACnC,QAAQ,CAAC,OAAO,4CAA0E;IAE1F,SAAgB,iBAAiB,yCAAgB;IACjD,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAwB;IAC1D,SAAgB,eAAe,kDAAwC;IAEvE,SAAgB,UAAU,0DAAuC;IACjE,SAAgB,QAAQ,0DAAiC;IAEzD,SAAgB,eAAe,4CAAyB;IACxD,SAAgB,eAAe,4CAAuC;IAEtE,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAwB;IAE9C,SAAgB,gBAAgB;;;;;;OAG/B;gBAEW,EAAE,GAAG,EAAE,IAAI,EAAE,mBAAmB,EAAE,QAAa,EAAE,EAAE,iBAAiB;IAoGhF,OAAO,CAAC,uBAAuB;IAiExB,OAAO,CAAC,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;IAa7B,4BAA4B,CAAC,aAAa,EAAE,KAAK,CAAC,OAAO,CAAC;IAa1D,QAAQ,CAAC,MAAM,EAAE,SAAS;IAK1B,mBAAmB,CAAC,OAAO,EAAE,qBAAqB;IAMzD,SAAgB,iBAAiB,wEAAA;IACjC,SAAgB,iBAAiB,yDAAiC;IAE3D,cAAc,CAAC,EAAE,GAAG,EAAE,GAAG,OAAO,EAAE,EAAE,mBAAmB;IAK9D,SAAgB,kBAAkB,YAAa,uBAAuB,UAGrE;IAEM,WAAW,CAAC,GAAG,EAAE,MAAM;IAMvB,SAAS,+CAiBd;IAEF,SAAgB,KAAK,yCAMnB;IAEK,SAAS;IAST,8BAA8B;CAItC"}
|
|
@@ -90,19 +90,19 @@ export type ReinitConversationProps = {
|
|
|
90
90
|
key: string;
|
|
91
91
|
};
|
|
92
92
|
export declare enum ChatRequestType {
|
|
93
|
-
|
|
94
|
-
|
|
93
|
+
FREETEXT = "sendMessage",
|
|
94
|
+
HINT = "getHint"
|
|
95
95
|
}
|
|
96
96
|
type FreeTextWithConversationId = {
|
|
97
|
-
type: ChatRequestType.
|
|
97
|
+
type: ChatRequestType.FREETEXT;
|
|
98
98
|
data: Pick<SendMessagePayload, 'message' | 'conversationId'>;
|
|
99
99
|
};
|
|
100
100
|
type FreeTextNewConversation = {
|
|
101
|
-
type: ChatRequestType.
|
|
101
|
+
type: ChatRequestType.FREETEXT;
|
|
102
102
|
data: SendMessagePayload;
|
|
103
103
|
};
|
|
104
104
|
export type HintRequest = {
|
|
105
|
-
type: ChatRequestType.
|
|
105
|
+
type: ChatRequestType.HINT;
|
|
106
106
|
data: ChatHintPayload;
|
|
107
107
|
};
|
|
108
108
|
export type ChatRequestPayload = FreeTextWithConversationId | FreeTextNewConversation | HintRequest;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"units.types.d.ts","sourceRoot":"","sources":["../../../../../../src/features/chatbot/types/units.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,MAAM,GAAG;IACnB,CAAC,EAAE,MAAM,EAAE,CAAA;IACX,CAAC,EAAE,MAAM,EAAE,CAAA;CACZ,CAAA;AACD,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG;IACpC,EAAE,EAAE,MAAM,CAAA;CACX,CAAA;AAED,MAAM,MAAM,WAAW,GAAG;IACxB,EAAE,EAAE,MAAM,CAAA;IACV,oBAAoB,EAAE,MAAM,GAAG,IAAI,CAAA;IACnC,OAAO,EAAE,cAAc,EAAE,GAAG,IAAI,CAAA;IAChC,OAAO,EAAE,MAAM,EAAE,CAAA;IACjB,eAAe,EAAE,MAAM,EAAE,GAAG,IAAI,CAAA;CACjC,CAAA;AAED,MAAM,MAAM,UAAU,GAAG;IACvB,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,EAAE,MAAM,CAAA;IACjB,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB,CAAA;AAED,MAAM,MAAM,mBAAmB,GAAG;IAChC,EAAE,EAAE,MAAM,CAAA;IACV,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,UAAU,EAAE,CAAA;IACrB,YAAY,EAAE,OAAO,CAAA;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,MAAM,MAAM,QAAQ,GAAG;IACrB,QAAQ,EAAE,mBAAmB,EAAE,CAAA;IAC/B,WAAW,EAAE,OAAO,CAAA;IACpB,aAAa,EAAE,WAAW,GAAG,IAAI,CAAA;IACjC,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAC/B,CAAA
|
|
1
|
+
{"version":3,"file":"units.types.d.ts","sourceRoot":"","sources":["../../../../../../src/features/chatbot/types/units.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,MAAM,GAAG;IACnB,CAAC,EAAE,MAAM,EAAE,CAAA;IACX,CAAC,EAAE,MAAM,EAAE,CAAA;CACZ,CAAA;AACD,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG;IACpC,EAAE,EAAE,MAAM,CAAA;CACX,CAAA;AAED,MAAM,MAAM,WAAW,GAAG;IACxB,EAAE,EAAE,MAAM,CAAA;IACV,oBAAoB,EAAE,MAAM,GAAG,IAAI,CAAA;IACnC,OAAO,EAAE,cAAc,EAAE,GAAG,IAAI,CAAA;IAChC,OAAO,EAAE,MAAM,EAAE,CAAA;IACjB,eAAe,EAAE,MAAM,EAAE,GAAG,IAAI,CAAA;CACjC,CAAA;AAED,MAAM,MAAM,UAAU,GAAG;IACvB,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,EAAE,MAAM,CAAA;IACjB,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB,CAAA;AAED,MAAM,MAAM,mBAAmB,GAAG;IAChC,EAAE,EAAE,MAAM,CAAA;IACV,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,UAAU,EAAE,CAAA;IACrB,YAAY,EAAE,OAAO,CAAA;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,MAAM,MAAM,QAAQ,GAAG;IACrB,QAAQ,EAAE,mBAAmB,EAAE,CAAA;IAC/B,WAAW,EAAE,OAAO,CAAA;IACpB,aAAa,EAAE,WAAW,GAAG,IAAI,CAAA;IACjC,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAC/B,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CheatDetected.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/endOfAssignment/components/CheatDetected/CheatDetected.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAYzB,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAIlD,eAAO,MAAM,aAAa,2BAA4B,oBAAoB,
|
|
1
|
+
{"version":3,"file":"CheatDetected.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/endOfAssignment/components/CheatDetected/CheatDetected.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAYzB,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAIlD,eAAO,MAAM,aAAa,2BAA4B,oBAAoB,sBA8BzE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CorrectAnswer.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgC,MAAM,OAAO,CAAA;AAUpD,OAAO,EAAuB,oBAAoB,EAAmB,MAAM,aAAa,CAAA;AAIxF,eAAO,MAAM,aAAa,4CAA6C,oBAAoB,
|
|
1
|
+
{"version":3,"file":"CorrectAnswer.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgC,MAAM,OAAO,CAAA;AAUpD,OAAO,EAAuB,oBAAoB,EAAmB,MAAM,aAAa,CAAA;AAIxF,eAAO,MAAM,aAAa,4CAA6C,oBAAoB,sBA0F1F,CAAA"}
|
package/dist/typescript/module/features/endOfAssignment/components/ExamLeave/ExamLeave.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExamLeave.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/endOfAssignment/components/ExamLeave/ExamLeave.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAYzB,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAIlD,eAAO,MAAM,SAAS,2BAA4B,oBAAoB,
|
|
1
|
+
{"version":3,"file":"ExamLeave.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/endOfAssignment/components/ExamLeave/ExamLeave.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAYzB,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAIlD,eAAO,MAAM,SAAS,2BAA4B,oBAAoB,sBAuCrE,CAAA"}
|
package/dist/typescript/module/features/endOfAssignment/components/ExamPaused/ExamPaused.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExamPaused.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/endOfAssignment/components/ExamPaused/ExamPaused.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAYzB,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAIlD,eAAO,MAAM,UAAU,2BAA4B,oBAAoB,
|
|
1
|
+
{"version":3,"file":"ExamPaused.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/endOfAssignment/components/ExamPaused/ExamPaused.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAYzB,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAIlD,eAAO,MAAM,UAAU,2BAA4B,oBAAoB,sBA8BtE,CAAA"}
|
package/dist/typescript/module/features/endOfAssignment/components/ExamSubmit/ExamSubmit.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExamSubmit.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/endOfAssignment/components/ExamSubmit/ExamSubmit.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAgBzB,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAKlD,eAAO,MAAM,UAAU,4CAA6C,oBAAoB,
|
|
1
|
+
{"version":3,"file":"ExamSubmit.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/endOfAssignment/components/ExamSubmit/ExamSubmit.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAgBzB,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAKlD,eAAO,MAAM,UAAU,4CAA6C,oBAAoB,sBAqDvF,CAAA"}
|
package/dist/typescript/module/features/endOfAssignment/components/NoAnswer/NoAnswer.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NoAnswer.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/endOfAssignment/components/NoAnswer/NoAnswer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAczB,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAKlD,eAAO,MAAM,QAAQ,4CAA6C,oBAAoB,
|
|
1
|
+
{"version":3,"file":"NoAnswer.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/endOfAssignment/components/NoAnswer/NoAnswer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAczB,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAKlD,eAAO,MAAM,QAAQ,4CAA6C,oBAAoB,sBAuFrF,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExampleSolutionModalContent.d.ts","sourceRoot":"","sources":["../../../../../../src/features/exampleSolution/components/ExampleSolutionModalContent.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"ExampleSolutionModalContent.d.ts","sourceRoot":"","sources":["../../../../../../src/features/exampleSolution/components/ExampleSolutionModalContent.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,OAAO,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAA;AAKrD,KAAK,gCAAgC,GAAG;IACtC,MAAM,EAAE,0BAA0B,CAAA;CACnC,CAAA;AAID,eAAO,MAAM,2BAA2B,8CAErC,gCAAgC,sBAwBlC,CAAA"}
|
|
@@ -1,3 +1,9 @@
|
|
|
1
1
|
import { KeyboardKeys } from '../../lib/constants';
|
|
2
|
-
|
|
2
|
+
type UseKeyDownListenerParams = {
|
|
3
|
+
callback: (event: KeyboardEvent) => void;
|
|
4
|
+
enabled?: boolean;
|
|
5
|
+
overrideKeys?: KeyboardKeys[];
|
|
6
|
+
};
|
|
7
|
+
export declare const useKeyDownListener: ({ callback, overrideKeys, enabled, }: UseKeyDownListenerParams) => void;
|
|
8
|
+
export {};
|
|
3
9
|
//# sourceMappingURL=useKeyDownListener.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useKeyDownListener.d.ts","sourceRoot":"","sources":["../../../../../src/shared/hooks/useKeyDownListener.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAElD,
|
|
1
|
+
{"version":3,"file":"useKeyDownListener.d.ts","sourceRoot":"","sources":["../../../../../src/shared/hooks/useKeyDownListener.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAElD,KAAK,wBAAwB,GAAG;IAC9B,QAAQ,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,CAAA;IACxC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,YAAY,CAAC,EAAE,YAAY,EAAE,CAAA;CAC9B,CAAA;AACD,eAAO,MAAM,kBAAkB,yCAI5B,wBAAwB,SAoB1B,CAAA"}
|
|
@@ -7,5 +7,9 @@
|
|
|
7
7
|
* - On web (default), it returns the `useKeyDownListener` hook, which allows you
|
|
8
8
|
* to register a callback that is triggered on keydown events.
|
|
9
9
|
*/
|
|
10
|
-
export declare const useKeyBoard: (callback
|
|
10
|
+
export declare const useKeyBoard: ({ callback, overrideKeys, enabled, }: {
|
|
11
|
+
callback: (event: KeyboardEvent) => void;
|
|
12
|
+
enabled?: boolean;
|
|
13
|
+
overrideKeys?: import("../../lib/constants").KeyboardKeys[];
|
|
14
|
+
}) => void;
|
|
11
15
|
//# sourceMappingURL=useKeyboard.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useKeyboard.d.ts","sourceRoot":"","sources":["../../../../../src/shared/hooks/useKeyboard.ts"],"names":[],"mappings":"AAKA;;;;;;;;GAQG;AACH,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"useKeyboard.d.ts","sourceRoot":"","sources":["../../../../../src/shared/hooks/useKeyboard.ts"],"names":[],"mappings":"AAKA;;;;;;;;GAQG;AACH,eAAO,MAAM,WAAW;;;;UAGtB,CAAC"}
|
|
@@ -15,6 +15,7 @@ export declare const LOCALIZATION_CONFIGS: {
|
|
|
15
15
|
chat: {
|
|
16
16
|
anotherHint: string;
|
|
17
17
|
giveHint: string;
|
|
18
|
+
giveHintOpenChat: string;
|
|
18
19
|
answerAgain: string;
|
|
19
20
|
errorMessage: string;
|
|
20
21
|
howCanIHelp: string;
|
|
@@ -49,6 +50,7 @@ export declare const LOCALIZATION_CONFIGS: {
|
|
|
49
50
|
chat: {
|
|
50
51
|
anotherHint: string;
|
|
51
52
|
giveHint: string;
|
|
53
|
+
giveHintOpenChat: string;
|
|
52
54
|
answerAgain: string;
|
|
53
55
|
errorMessage: string;
|
|
54
56
|
howCanIHelp: string;
|
|
@@ -83,6 +85,7 @@ export declare const LOCALIZATION_CONFIGS: {
|
|
|
83
85
|
chat: {
|
|
84
86
|
anotherHint: string;
|
|
85
87
|
giveHint: string;
|
|
88
|
+
giveHintOpenChat: string;
|
|
86
89
|
answerAgain: string;
|
|
87
90
|
errorMessage: string;
|
|
88
91
|
howCanIHelp: string;
|
|
@@ -117,6 +120,7 @@ export declare const LOCALIZATION_CONFIGS: {
|
|
|
117
120
|
chat: {
|
|
118
121
|
anotherHint: string;
|
|
119
122
|
giveHint: string;
|
|
123
|
+
giveHintOpenChat: string;
|
|
120
124
|
answerAgain: string;
|
|
121
125
|
errorMessage: string;
|
|
122
126
|
howCanIHelp: string;
|
|
@@ -151,6 +155,7 @@ export declare const LOCALIZATION_CONFIGS: {
|
|
|
151
155
|
chat: {
|
|
152
156
|
anotherHint: string;
|
|
153
157
|
giveHint: string;
|
|
158
|
+
giveHintOpenChat: string;
|
|
154
159
|
answerAgain: string;
|
|
155
160
|
errorMessage: string;
|
|
156
161
|
howCanIHelp: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/shared/translation/constants.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/shared/translation/constants.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMhC,CAAA"}
|
|
@@ -16,6 +16,7 @@ export declare const setLocalization: import("effector").EventCallable<{
|
|
|
16
16
|
chat: {
|
|
17
17
|
anotherHint: string;
|
|
18
18
|
giveHint: string;
|
|
19
|
+
giveHintOpenChat: string;
|
|
19
20
|
answerAgain: string;
|
|
20
21
|
errorMessage: string;
|
|
21
22
|
howCanIHelp: string;
|
|
@@ -50,6 +51,7 @@ export declare const $localization: import("effector").StoreWritable<{
|
|
|
50
51
|
chat: {
|
|
51
52
|
anotherHint: string;
|
|
52
53
|
giveHint: string;
|
|
54
|
+
giveHintOpenChat: string;
|
|
53
55
|
answerAgain: string;
|
|
54
56
|
errorMessage: string;
|
|
55
57
|
howCanIHelp: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../../../../src/shared/translation/model.ts"],"names":[],"mappings":"AACA,OAAO,EAAU,YAAY,EAAE,MAAM,SAAS,CAAA;AAC9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAElD,eAAO,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../../../../src/shared/translation/model.ts"],"names":[],"mappings":"AACA,OAAO,EAAU,YAAY,EAAE,MAAM,SAAS,CAAA;AAC9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAElD,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cACD,OAAO,oBAAoB,KAAK,YAAY,EACpE,CAAA;AAEH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMzB,CAAA"}
|
package/package.json
CHANGED
|
@@ -40,9 +40,9 @@ export const ChatTextInput = ({
|
|
|
40
40
|
colorScheme = ColorScheme.Blue,
|
|
41
41
|
placeholder,
|
|
42
42
|
}: ChatTextInputProps) => {
|
|
43
|
-
const inputRef
|
|
43
|
+
const inputRef = useRef<TextInput>(null)
|
|
44
44
|
const [isFocused, setIsFocused] = useState(false)
|
|
45
|
-
const widthSv = useSharedValue(value ? FULL_WIDTH : COMPACT_WIDTH
|
|
45
|
+
const widthSv = useSharedValue(value ? FULL_WIDTH : COMPACT_WIDTH)
|
|
46
46
|
|
|
47
47
|
const animatedStyle = useAnimatedStyle(
|
|
48
48
|
() => ({
|
|
@@ -63,7 +63,9 @@ export const ChatTextInput = ({
|
|
|
63
63
|
|
|
64
64
|
if (shouldExpandInput) {
|
|
65
65
|
widthSv.value = withTiming(FULL_WIDTH, { duration: ANIMATION_DURATION })
|
|
66
|
-
|
|
66
|
+
return
|
|
67
|
+
}
|
|
68
|
+
if (shouldCollapseInput) {
|
|
67
69
|
widthSv.value = withTiming(COMPACT_WIDTH, { duration: ANIMATION_DURATION })
|
|
68
70
|
}
|
|
69
71
|
}
|
|
@@ -87,11 +89,14 @@ export const ChatTextInput = ({
|
|
|
87
89
|
onBlur?.(e)
|
|
88
90
|
}
|
|
89
91
|
|
|
90
|
-
useKeyBoard(
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
92
|
+
useKeyBoard({
|
|
93
|
+
enabled: isFocused,
|
|
94
|
+
callback: (event) => {
|
|
95
|
+
if (event.key === KeyboardKeys.ENTER) {
|
|
96
|
+
void handleSendMessage()
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
})
|
|
95
100
|
|
|
96
101
|
return (
|
|
97
102
|
<Animated.View style={[styles.inputWrapper, animatedStyle]}>
|
|
@@ -18,18 +18,18 @@ import { ColorScheme } from '@magmamath/students-features'
|
|
|
18
18
|
import { MESSAGE_COLORS_MAP } from '../../constants'
|
|
19
19
|
|
|
20
20
|
export enum HintButtonVariant {
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
DEFAULT = 'default',
|
|
22
|
+
SHORT = 'short',
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
const HOVER_ANIMATION_DURATION = 200
|
|
26
26
|
|
|
27
27
|
const REQUEST_HINT_BUTTON = {
|
|
28
|
-
[HintButtonVariant.
|
|
28
|
+
[HintButtonVariant.DEFAULT]: {
|
|
29
29
|
width: 305,
|
|
30
30
|
fontSize: 20,
|
|
31
31
|
},
|
|
32
|
-
[HintButtonVariant.
|
|
32
|
+
[HintButtonVariant.SHORT]: { width: 163, fontSize: 18 },
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
type RequestHintButtonProps = {
|
|
@@ -46,7 +46,7 @@ export const RequestHintButton = memo(
|
|
|
46
46
|
label,
|
|
47
47
|
disabled = false,
|
|
48
48
|
colorScheme = ColorScheme.Blue,
|
|
49
|
-
variant = HintButtonVariant.
|
|
49
|
+
variant = HintButtonVariant.DEFAULT,
|
|
50
50
|
}: RequestHintButtonProps) => {
|
|
51
51
|
const hoverSv = useSharedValue(0)
|
|
52
52
|
|
|
@@ -66,7 +66,7 @@ export const RequestHintButton = memo(
|
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
const defaultBorderColor =
|
|
69
|
-
variant === HintButtonVariant.
|
|
69
|
+
variant === HintButtonVariant.DEFAULT
|
|
70
70
|
? COLORS.NEUTRAL_1
|
|
71
71
|
: MESSAGE_COLORS_MAP[colorScheme].sent.border
|
|
72
72
|
|
|
@@ -111,7 +111,7 @@ export const RequestHintButton = memo(
|
|
|
111
111
|
</Animated.Text>
|
|
112
112
|
|
|
113
113
|
<Animated.Text style={[styles.iconWrapper, animatedTextStyle]}>
|
|
114
|
-
{variant === HintButtonVariant.
|
|
114
|
+
{variant === HintButtonVariant.DEFAULT ? (
|
|
115
115
|
<ArrowRightIcon color={iconColor} size={16} />
|
|
116
116
|
) : (
|
|
117
117
|
<ArrowUpIcon color={iconColor} size={16} />
|
|
@@ -7,7 +7,6 @@ import { ChatControls } from './ChatControls/ChatControls'
|
|
|
7
7
|
import { AUDIO_CONFIG, DEFAULT_VOICE } from '../constants'
|
|
8
8
|
import { ChatBotModelContext } from '../context/ChatBotModelContext'
|
|
9
9
|
import { ColorScheme } from '../types/style.types'
|
|
10
|
-
import { ChatInputMode } from '../types/units.types'
|
|
11
10
|
|
|
12
11
|
type ChatbotProps = {
|
|
13
12
|
model: ChatbotModel
|
|
@@ -17,7 +16,6 @@ type ChatbotProps = {
|
|
|
17
16
|
voice: typeof DEFAULT_VOICE
|
|
18
17
|
audioConfig: typeof AUDIO_CONFIG
|
|
19
18
|
}
|
|
20
|
-
inputMode?: ChatInputMode
|
|
21
19
|
ButtonWrapper?: ComponentType<PropsWithChildren>
|
|
22
20
|
iconSize?: { width: number; height: number } // TODO: use number instead
|
|
23
21
|
colorScheme?: ColorScheme
|
|
@@ -29,10 +29,20 @@ export const transformAlternatives = (payload: GetAlternativesResponse | null) =
|
|
|
29
29
|
return {
|
|
30
30
|
...payload,
|
|
31
31
|
options: {
|
|
32
|
-
|
|
32
|
+
default: [
|
|
33
|
+
{
|
|
34
|
+
text:
|
|
35
|
+
payload.isOpenChatEnabled && IS_WEB ? t('chat.giveHintOpenChat') : t('chat.giveHint'),
|
|
36
|
+
promptKey: payload.options.default[0].promptKey,
|
|
37
|
+
translatedText: payload.options.default[0].translatedText,
|
|
38
|
+
},
|
|
39
|
+
],
|
|
33
40
|
hints: [
|
|
34
41
|
{
|
|
35
|
-
text:
|
|
42
|
+
text:
|
|
43
|
+
payload.isOpenChatEnabled && IS_WEB
|
|
44
|
+
? t('chat.giveHintOpenChat')
|
|
45
|
+
: t('chat.anotherHint'),
|
|
36
46
|
promptKey: payload.options.hints[0].promptKey,
|
|
37
47
|
translatedText: payload.options.hints[0].translatedText,
|
|
38
48
|
},
|
|
@@ -59,9 +69,9 @@ export function prepareChatRequestPayload(
|
|
|
59
69
|
|
|
60
70
|
if (freeTextMessage) {
|
|
61
71
|
return conversationId
|
|
62
|
-
? { type: ChatRequestType.
|
|
72
|
+
? { type: ChatRequestType.FREETEXT, data: { conversationId, message: freeTextMessage } }
|
|
63
73
|
: {
|
|
64
|
-
type: ChatRequestType.
|
|
74
|
+
type: ChatRequestType.FREETEXT,
|
|
65
75
|
data: {
|
|
66
76
|
message: freeTextMessage,
|
|
67
77
|
correctAnswer: problemAnswer,
|
|
@@ -75,7 +85,7 @@ export function prepareChatRequestPayload(
|
|
|
75
85
|
}
|
|
76
86
|
|
|
77
87
|
return {
|
|
78
|
-
type: ChatRequestType.
|
|
88
|
+
type: ChatRequestType.HINT,
|
|
79
89
|
data: {
|
|
80
90
|
...threadItem.getNextHintProps(),
|
|
81
91
|
correctAnswer: problemAnswer,
|