@magmamath/students-features 0.6.14-rc.2 → 0.6.14-rc.21
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/{ChatMessages/ChatbotMessages.js → Chat/Chat.js} +8 -15
- package/dist/commonjs/features/chatbot/components/Chat/Chat.js.map +1 -0
- package/dist/commonjs/features/chatbot/components/ChatInput/ChatInput.js +74 -0
- package/dist/commonjs/features/chatbot/components/ChatInput/ChatInput.js.map +1 -0
- package/dist/commonjs/features/chatbot/components/ChatInput/RequestHintButton.js +144 -0
- package/dist/commonjs/features/chatbot/components/ChatInput/RequestHintButton.js.map +1 -0
- package/dist/commonjs/features/chatbot/components/ChatInput/freeText/ChatTextInput.js +135 -0
- package/dist/commonjs/features/chatbot/components/ChatInput/freeText/ChatTextInput.js.map +1 -0
- package/dist/commonjs/features/chatbot/components/ChatInput/freeText/FreeTextInputBlock.js +77 -0
- package/dist/commonjs/features/chatbot/components/ChatInput/freeText/FreeTextInputBlock.js.map +1 -0
- package/dist/commonjs/features/chatbot/components/{Alternatives/InputButton.js → ChatInput/freeText/SendMessageButton.js} +26 -17
- package/dist/commonjs/features/chatbot/components/ChatInput/freeText/SendMessageButton.js.map +1 -0
- package/dist/commonjs/features/chatbot/components/Chatbot.js +2 -2
- package/dist/commonjs/features/chatbot/components/Chatbot.js.map +1 -1
- package/dist/commonjs/features/chatbot/constants.js +2 -1
- package/dist/commonjs/features/chatbot/constants.js.map +1 -1
- package/dist/commonjs/features/chatbot/index.js +7 -0
- package/dist/commonjs/features/chatbot/index.js.map +1 -1
- package/dist/commonjs/features/chatbot/model/ChatBotModel.js +44 -8
- package/dist/commonjs/features/chatbot/model/ChatBotModel.js.map +1 -1
- package/dist/commonjs/features/chatbot/model/ChatBotTextInput.js +16 -0
- package/dist/commonjs/features/chatbot/model/ChatBotTextInput.js.map +1 -0
- package/dist/commonjs/features/chatbot/model/ChatBotThreadManager.js +44 -11
- package/dist/commonjs/features/chatbot/model/ChatBotThreadManager.js.map +1 -1
- package/dist/commonjs/features/chatbot/types/model.types.js.map +1 -1
- package/dist/commonjs/features/chatbot/types/types.js +2 -0
- package/dist/commonjs/features/chatbot/types/types.js.map +1 -0
- package/dist/commonjs/features/chatbot/types/units.types.js +10 -0
- package/dist/commonjs/features/chatbot/types/units.types.js.map +1 -1
- package/dist/commonjs/features/exampleSolution/ExampleSolutionModal.js +1 -3
- package/dist/commonjs/features/exampleSolution/ExampleSolutionModal.js.map +1 -1
- package/dist/commonjs/features/exampleSolution/assets/grid.webp +0 -0
- package/dist/commonjs/features/exampleSolution/components/ExampleSolutionModalContent.js +18 -11
- package/dist/commonjs/features/exampleSolution/components/ExampleSolutionModalContent.js.map +1 -1
- package/dist/commonjs/features/exampleSolution/components/QuestionSection.js +7 -7
- package/dist/commonjs/features/exampleSolution/components/QuestionSection.js.map +1 -1
- package/dist/commonjs/features/exampleSolution/components/SolutionSection.js +55 -29
- package/dist/commonjs/features/exampleSolution/components/SolutionSection.js.map +1 -1
- package/dist/commonjs/features/exampleSolution/model/ExampleSolution.model.js +3 -1
- package/dist/commonjs/features/exampleSolution/model/ExampleSolution.model.js.map +1 -1
- package/dist/commonjs/features/formulaSheet/components/FormulaSheet.js +5 -4
- package/dist/commonjs/features/formulaSheet/components/FormulaSheet.js.map +1 -1
- package/dist/commonjs/shared/hooks/useKeyDownListener.js +3 -2
- package/dist/commonjs/shared/hooks/useKeyDownListener.js.map +1 -1
- package/dist/commonjs/shared/translation/localization/ca.json +2 -1
- package/dist/commonjs/shared/translation/localization/en.json +3 -2
- package/dist/commonjs/shared/translation/localization/gb.json +2 -1
- package/dist/commonjs/shared/translation/localization/sct.json +2 -1
- package/dist/commonjs/shared/translation/localization/sw.json +3 -2
- package/dist/module/features/chatbot/components/{ChatMessages/ChatbotMessages.js → Chat/Chat.js} +6 -13
- package/dist/module/features/chatbot/components/Chat/Chat.js.map +1 -0
- package/dist/module/features/chatbot/components/ChatInput/ChatInput.js +67 -0
- package/dist/module/features/chatbot/components/ChatInput/ChatInput.js.map +1 -0
- package/dist/module/features/chatbot/components/ChatInput/RequestHintButton.js +138 -0
- package/dist/module/features/chatbot/components/ChatInput/RequestHintButton.js.map +1 -0
- package/dist/module/features/chatbot/components/ChatInput/freeText/ChatTextInput.js +128 -0
- package/dist/module/features/chatbot/components/ChatInput/freeText/ChatTextInput.js.map +1 -0
- package/dist/module/features/chatbot/components/ChatInput/freeText/FreeTextInputBlock.js +71 -0
- package/dist/module/features/chatbot/components/ChatInput/freeText/FreeTextInputBlock.js.map +1 -0
- package/dist/module/features/chatbot/components/{Alternatives/InputButton.js → ChatInput/freeText/SendMessageButton.js} +25 -16
- package/dist/module/features/chatbot/components/ChatInput/freeText/SendMessageButton.js.map +1 -0
- package/dist/module/features/chatbot/components/Chatbot.js +2 -2
- package/dist/module/features/chatbot/components/Chatbot.js.map +1 -1
- package/dist/module/features/chatbot/constants.js +1 -0
- package/dist/module/features/chatbot/constants.js.map +1 -1
- package/dist/module/features/chatbot/index.js +1 -0
- package/dist/module/features/chatbot/index.js.map +1 -1
- package/dist/module/features/chatbot/model/ChatBotModel.js +44 -8
- package/dist/module/features/chatbot/model/ChatBotModel.js.map +1 -1
- package/dist/module/features/chatbot/model/ChatBotTextInput.js +11 -0
- package/dist/module/features/chatbot/model/ChatBotTextInput.js.map +1 -0
- package/dist/module/features/chatbot/model/ChatBotThreadManager.js +44 -11
- package/dist/module/features/chatbot/model/ChatBotThreadManager.js.map +1 -1
- package/dist/module/features/chatbot/types/model.types.js.map +1 -1
- package/dist/module/features/chatbot/types/types.js +2 -0
- package/dist/module/features/chatbot/types/types.js.map +1 -0
- package/dist/module/features/chatbot/types/units.types.js +6 -0
- package/dist/module/features/chatbot/types/units.types.js.map +1 -1
- package/dist/module/features/exampleSolution/ExampleSolutionModal.js +1 -3
- package/dist/module/features/exampleSolution/ExampleSolutionModal.js.map +1 -1
- package/dist/module/features/exampleSolution/assets/grid.webp +0 -0
- package/dist/module/features/exampleSolution/components/ExampleSolutionModalContent.js +19 -12
- package/dist/module/features/exampleSolution/components/ExampleSolutionModalContent.js.map +1 -1
- package/dist/module/features/exampleSolution/components/QuestionSection.js +9 -9
- package/dist/module/features/exampleSolution/components/QuestionSection.js.map +1 -1
- package/dist/module/features/exampleSolution/components/SolutionSection.js +57 -31
- package/dist/module/features/exampleSolution/components/SolutionSection.js.map +1 -1
- package/dist/module/features/exampleSolution/model/ExampleSolution.model.js +3 -1
- package/dist/module/features/exampleSolution/model/ExampleSolution.model.js.map +1 -1
- package/dist/module/features/formulaSheet/components/FormulaSheet.js +5 -4
- package/dist/module/features/formulaSheet/components/FormulaSheet.js.map +1 -1
- package/dist/module/shared/hooks/useKeyDownListener.js +3 -2
- package/dist/module/shared/hooks/useKeyDownListener.js.map +1 -1
- package/dist/module/shared/translation/localization/ca.json +2 -1
- package/dist/module/shared/translation/localization/en.json +3 -2
- package/dist/module/shared/translation/localization/gb.json +2 -1
- package/dist/module/shared/translation/localization/sct.json +2 -1
- package/dist/module/shared/translation/localization/sw.json +3 -2
- package/dist/typescript/commonjs/features/chatbot/components/{ChatMessages/ChatbotMessages.d.ts → Chat/Chat.d.ts} +3 -3
- package/dist/typescript/commonjs/features/chatbot/components/Chat/Chat.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/chatbot/components/ChatInput/ChatInput.d.ts +9 -0
- package/dist/typescript/commonjs/features/chatbot/components/ChatInput/ChatInput.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/chatbot/components/ChatInput/RequestHintButton.d.ts +16 -0
- package/dist/typescript/commonjs/features/chatbot/components/ChatInput/RequestHintButton.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/chatbot/components/ChatInput/freeText/ChatTextInput.d.ts +16 -0
- package/dist/typescript/commonjs/features/chatbot/components/ChatInput/freeText/ChatTextInput.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/chatbot/components/ChatInput/freeText/FreeTextInputBlock.d.ts +11 -0
- package/dist/typescript/commonjs/features/chatbot/components/ChatInput/freeText/FreeTextInputBlock.d.ts.map +1 -0
- package/dist/typescript/{module/features/chatbot/components/Alternatives/InputButton.d.ts → commonjs/features/chatbot/components/ChatInput/freeText/SendMessageButton.d.ts} +2 -2
- package/dist/typescript/commonjs/features/chatbot/components/ChatInput/freeText/SendMessageButton.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/chatbot/components/Chatbot.d.ts +2 -0
- package/dist/typescript/commonjs/features/chatbot/components/Chatbot.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/constants.d.ts +1 -0
- package/dist/typescript/commonjs/features/chatbot/constants.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/index.d.ts +1 -0
- package/dist/typescript/commonjs/features/chatbot/index.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/model/ChatBotModel.d.ts +5 -6
- package/dist/typescript/commonjs/features/chatbot/model/ChatBotModel.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/model/ChatBotTextInput.d.ts +8 -0
- package/dist/typescript/commonjs/features/chatbot/model/ChatBotTextInput.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/chatbot/model/ChatBotThreadManager.d.ts +3 -2
- package/dist/typescript/commonjs/features/chatbot/model/ChatBotThreadManager.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/model/translation.d.ts +1 -1
- package/dist/typescript/commonjs/features/chatbot/model/translation.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/types/api.types.d.ts +23 -1
- package/dist/typescript/commonjs/features/chatbot/types/api.types.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/types/model.types.d.ts +11 -2
- package/dist/typescript/commonjs/features/chatbot/types/model.types.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/types/types.d.ts +1 -0
- package/dist/typescript/commonjs/features/chatbot/types/types.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/chatbot/types/units.types.d.ts +5 -0
- package/dist/typescript/commonjs/features/chatbot/types/units.types.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/exampleSolution/ExampleSolutionModal.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/exampleSolution/components/ExampleSolutionModalContent.d.ts +5 -1
- package/dist/typescript/commonjs/features/exampleSolution/components/ExampleSolutionModalContent.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/exampleSolution/components/QuestionSection.d.ts +2 -1
- package/dist/typescript/commonjs/features/exampleSolution/components/QuestionSection.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/exampleSolution/components/SolutionSection.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/exampleSolution/model/ExampleSolution.model.d.ts +3 -2
- package/dist/typescript/commonjs/features/exampleSolution/model/ExampleSolution.model.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/exampleSolution/types.d.ts +2 -1
- package/dist/typescript/commonjs/features/exampleSolution/types.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/formulaSheet/components/FormulaSheet.d.ts.map +1 -1
- package/dist/typescript/commonjs/shared/hooks/useKeyDownListener.d.ts +1 -1
- package/dist/typescript/commonjs/shared/hooks/useKeyDownListener.d.ts.map +1 -1
- package/dist/typescript/commonjs/shared/hooks/useKeyboard.d.ts +1 -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/{ChatMessages/ChatbotMessages.d.ts → Chat/Chat.d.ts} +3 -3
- package/dist/typescript/module/features/chatbot/components/Chat/Chat.d.ts.map +1 -0
- package/dist/typescript/module/features/chatbot/components/ChatInput/ChatInput.d.ts +9 -0
- package/dist/typescript/module/features/chatbot/components/ChatInput/ChatInput.d.ts.map +1 -0
- package/dist/typescript/module/features/chatbot/components/ChatInput/RequestHintButton.d.ts +16 -0
- package/dist/typescript/module/features/chatbot/components/ChatInput/RequestHintButton.d.ts.map +1 -0
- package/dist/typescript/module/features/chatbot/components/ChatInput/freeText/ChatTextInput.d.ts +16 -0
- package/dist/typescript/module/features/chatbot/components/ChatInput/freeText/ChatTextInput.d.ts.map +1 -0
- package/dist/typescript/module/features/chatbot/components/ChatInput/freeText/FreeTextInputBlock.d.ts +11 -0
- package/dist/typescript/module/features/chatbot/components/ChatInput/freeText/FreeTextInputBlock.d.ts.map +1 -0
- package/dist/typescript/{commonjs/features/chatbot/components/Alternatives/InputButton.d.ts → module/features/chatbot/components/ChatInput/freeText/SendMessageButton.d.ts} +2 -2
- package/dist/typescript/module/features/chatbot/components/ChatInput/freeText/SendMessageButton.d.ts.map +1 -0
- package/dist/typescript/module/features/chatbot/components/Chatbot.d.ts +2 -0
- package/dist/typescript/module/features/chatbot/components/Chatbot.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/constants.d.ts +1 -0
- package/dist/typescript/module/features/chatbot/constants.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/index.d.ts +1 -0
- package/dist/typescript/module/features/chatbot/index.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/model/ChatBotModel.d.ts +5 -6
- package/dist/typescript/module/features/chatbot/model/ChatBotModel.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/model/ChatBotTextInput.d.ts +8 -0
- package/dist/typescript/module/features/chatbot/model/ChatBotTextInput.d.ts.map +1 -0
- package/dist/typescript/module/features/chatbot/model/ChatBotThreadManager.d.ts +3 -2
- package/dist/typescript/module/features/chatbot/model/ChatBotThreadManager.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/model/translation.d.ts +1 -1
- package/dist/typescript/module/features/chatbot/model/translation.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/types/api.types.d.ts +23 -1
- package/dist/typescript/module/features/chatbot/types/api.types.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/types/model.types.d.ts +11 -2
- package/dist/typescript/module/features/chatbot/types/model.types.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/types/types.d.ts +1 -0
- package/dist/typescript/module/features/chatbot/types/types.d.ts.map +1 -0
- package/dist/typescript/module/features/chatbot/types/units.types.d.ts +5 -0
- package/dist/typescript/module/features/chatbot/types/units.types.d.ts.map +1 -1
- package/dist/typescript/module/features/exampleSolution/ExampleSolutionModal.d.ts.map +1 -1
- package/dist/typescript/module/features/exampleSolution/components/ExampleSolutionModalContent.d.ts +5 -1
- package/dist/typescript/module/features/exampleSolution/components/ExampleSolutionModalContent.d.ts.map +1 -1
- package/dist/typescript/module/features/exampleSolution/components/QuestionSection.d.ts +2 -1
- package/dist/typescript/module/features/exampleSolution/components/QuestionSection.d.ts.map +1 -1
- package/dist/typescript/module/features/exampleSolution/components/SolutionSection.d.ts.map +1 -1
- package/dist/typescript/module/features/exampleSolution/model/ExampleSolution.model.d.ts +3 -2
- package/dist/typescript/module/features/exampleSolution/model/ExampleSolution.model.d.ts.map +1 -1
- package/dist/typescript/module/features/exampleSolution/types.d.ts +2 -1
- package/dist/typescript/module/features/exampleSolution/types.d.ts.map +1 -1
- package/dist/typescript/module/features/formulaSheet/components/FormulaSheet.d.ts.map +1 -1
- package/dist/typescript/module/shared/hooks/useKeyDownListener.d.ts +1 -1
- package/dist/typescript/module/shared/hooks/useKeyDownListener.d.ts.map +1 -1
- package/dist/typescript/module/shared/hooks/useKeyboard.d.ts +1 -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 +2 -2
- package/src/features/chatbot/components/{ChatMessages/ChatbotMessages.tsx → Chat/Chat.tsx} +12 -17
- package/src/features/chatbot/components/ChatInput/ChatInput.tsx +83 -0
- package/src/features/chatbot/components/ChatInput/RequestHintButton.tsx +156 -0
- package/src/features/chatbot/components/ChatInput/freeText/ChatTextInput.tsx +153 -0
- package/src/features/chatbot/components/ChatInput/freeText/FreeTextInputBlock.tsx +83 -0
- package/src/features/chatbot/components/{Alternatives/InputButton.tsx → ChatInput/freeText/SendMessageButton.tsx} +37 -16
- package/src/features/chatbot/components/Chatbot.tsx +4 -2
- package/src/features/chatbot/constants.ts +3 -0
- package/src/features/chatbot/index.ts +2 -0
- package/src/features/chatbot/model/ChatBotModel.ts +67 -33
- package/src/features/chatbot/model/ChatBotTextInput.ts +10 -0
- package/src/features/chatbot/model/ChatBotThreadManager.ts +35 -9
- package/src/features/chatbot/model/translation.ts +1 -1
- package/src/features/chatbot/types/api.types.ts +25 -1
- package/src/features/chatbot/types/model.types.ts +16 -1
- package/src/features/chatbot/types/types.ts +0 -0
- package/src/features/chatbot/types/units.types.ts +6 -0
- package/src/features/exampleSolution/ExampleSolutionModal.tsx +1 -7
- package/src/features/exampleSolution/assets/grid.webp +0 -0
- package/src/features/exampleSolution/components/ExampleSolutionModalContent.tsx +24 -12
- package/src/features/exampleSolution/components/QuestionSection.tsx +11 -7
- package/src/features/exampleSolution/components/SolutionSection.tsx +72 -29
- package/src/features/exampleSolution/model/ExampleSolution.model.ts +5 -2
- package/src/features/exampleSolution/types.ts +2 -1
- package/src/features/formulaSheet/components/FormulaSheet.tsx +6 -4
- package/src/shared/hooks/useKeyDownListener.ts +3 -1
- package/src/shared/translation/localization/ca.json +2 -1
- package/src/shared/translation/localization/en.json +3 -2
- package/src/shared/translation/localization/gb.json +2 -1
- package/src/shared/translation/localization/sct.json +2 -1
- package/src/shared/translation/localization/sw.json +3 -2
- package/dist/commonjs/features/chatbot/components/Alternatives/Alternatives.js +0 -111
- package/dist/commonjs/features/chatbot/components/Alternatives/Alternatives.js.map +0 -1
- package/dist/commonjs/features/chatbot/components/Alternatives/HelpRequestOption.js +0 -208
- package/dist/commonjs/features/chatbot/components/Alternatives/HelpRequestOption.js.map +0 -1
- package/dist/commonjs/features/chatbot/components/Alternatives/InputButton.js.map +0 -1
- package/dist/commonjs/features/chatbot/components/Alternatives/InputWithHintRow.js +0 -157
- package/dist/commonjs/features/chatbot/components/Alternatives/InputWithHintRow.js.map +0 -1
- package/dist/commonjs/features/chatbot/components/ChatMessages/ChatbotMessages.js.map +0 -1
- package/dist/commonjs/features/exampleSolution/assets/grid.png +0 -0
- package/dist/module/features/chatbot/components/Alternatives/Alternatives.js +0 -105
- package/dist/module/features/chatbot/components/Alternatives/Alternatives.js.map +0 -1
- package/dist/module/features/chatbot/components/Alternatives/HelpRequestOption.js +0 -200
- package/dist/module/features/chatbot/components/Alternatives/HelpRequestOption.js.map +0 -1
- package/dist/module/features/chatbot/components/Alternatives/InputButton.js.map +0 -1
- package/dist/module/features/chatbot/components/Alternatives/InputWithHintRow.js +0 -150
- package/dist/module/features/chatbot/components/Alternatives/InputWithHintRow.js.map +0 -1
- package/dist/module/features/chatbot/components/ChatMessages/ChatbotMessages.js.map +0 -1
- package/dist/module/features/exampleSolution/assets/grid.png +0 -0
- package/dist/typescript/commonjs/features/chatbot/components/Alternatives/Alternatives.d.ts +0 -11
- package/dist/typescript/commonjs/features/chatbot/components/Alternatives/Alternatives.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/chatbot/components/Alternatives/HelpRequestOption.d.ts +0 -13
- package/dist/typescript/commonjs/features/chatbot/components/Alternatives/HelpRequestOption.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/chatbot/components/Alternatives/InputButton.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/chatbot/components/Alternatives/InputWithHintRow.d.ts +0 -11
- package/dist/typescript/commonjs/features/chatbot/components/Alternatives/InputWithHintRow.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/chatbot/components/ChatMessages/ChatbotMessages.d.ts.map +0 -1
- package/dist/typescript/module/features/chatbot/components/Alternatives/Alternatives.d.ts +0 -11
- package/dist/typescript/module/features/chatbot/components/Alternatives/Alternatives.d.ts.map +0 -1
- package/dist/typescript/module/features/chatbot/components/Alternatives/HelpRequestOption.d.ts +0 -13
- package/dist/typescript/module/features/chatbot/components/Alternatives/HelpRequestOption.d.ts.map +0 -1
- package/dist/typescript/module/features/chatbot/components/Alternatives/InputButton.d.ts.map +0 -1
- package/dist/typescript/module/features/chatbot/components/Alternatives/InputWithHintRow.d.ts +0 -11
- package/dist/typescript/module/features/chatbot/components/Alternatives/InputWithHintRow.d.ts.map +0 -1
- package/dist/typescript/module/features/chatbot/components/ChatMessages/ChatbotMessages.d.ts.map +0 -1
- package/src/features/chatbot/components/Alternatives/Alternatives.tsx +0 -135
- package/src/features/chatbot/components/Alternatives/HelpRequestOption.tsx +0 -214
- package/src/features/chatbot/components/Alternatives/InputWithHintRow.tsx +0 -160
- package/src/features/exampleSolution/assets/grid.png +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ExampleSolutionModelProps } from '../types'
|
|
2
2
|
import { ExampleSolutionsApi } from './ExampleSolutionApi'
|
|
3
3
|
import { ExampleSolutionCache } from './ExampleSolutionCache'
|
|
4
4
|
|
|
@@ -6,7 +6,10 @@ export class ExampleSolutionModel {
|
|
|
6
6
|
public readonly api
|
|
7
7
|
public readonly cache = new ExampleSolutionCache()
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
public readonly renderKatexComponent: (katexString: string) => React.ReactNode
|
|
10
|
+
|
|
11
|
+
constructor({ api, errorHandler, renderKatexComponent }: ExampleSolutionModelProps) {
|
|
10
12
|
this.api = new ExampleSolutionsApi({ api, errorHandler })
|
|
13
|
+
this.renderKatexComponent = renderKatexComponent
|
|
11
14
|
}
|
|
12
15
|
}
|
|
@@ -15,9 +15,10 @@ export type ExampleSolutionApiRequests = {
|
|
|
15
15
|
generateExampleSolution: (body: ExampleSolutionPayload) => Promise<ExampleSolutionResponse>
|
|
16
16
|
}
|
|
17
17
|
export type ExampleSolutionErrorHandler = (errorMessage: string) => void
|
|
18
|
-
export type
|
|
18
|
+
export type ExampleSolutionModelProps = {
|
|
19
19
|
api: ExampleSolutionApiRequests
|
|
20
20
|
errorHandler?: ExampleSolutionErrorHandler
|
|
21
|
+
renderKatexComponent: (katexString: string) => React.ReactNode
|
|
21
22
|
}
|
|
22
23
|
export type ExampleSolutionModalParams = {
|
|
23
24
|
cacheKey: string
|
|
@@ -43,6 +43,11 @@ export const FormulaSheet = forwardRef<ButtonRef | null, FormulaSheetProps>(
|
|
|
43
43
|
const sheetFileBlob = useUnit(model.file.$blob)
|
|
44
44
|
const isRequestPending = useUnit(model.api.getPDFFileBlobFx.pending)
|
|
45
45
|
|
|
46
|
+
const onPressHandler = () => {
|
|
47
|
+
model.modal.toggle()
|
|
48
|
+
onPress?.()
|
|
49
|
+
}
|
|
50
|
+
|
|
46
51
|
useEffect(() => {
|
|
47
52
|
model.file.setId(fileId ?? null)
|
|
48
53
|
}, [fileId])
|
|
@@ -55,10 +60,7 @@ export const FormulaSheet = forwardRef<ButtonRef | null, FormulaSheetProps>(
|
|
|
55
60
|
variant={ButtonVariant.SECONDARY}
|
|
56
61
|
colorScheme={buttonColor}
|
|
57
62
|
isActive={isOpen}
|
|
58
|
-
onPress={() =>
|
|
59
|
-
model.modal.toggle()
|
|
60
|
-
onPress?.()
|
|
61
|
-
}}
|
|
63
|
+
onPress={() => onPressHandler()}
|
|
62
64
|
icon={<TheoryIcon color={isOpen ? COLORS.NEUTRAL_1 : undefined} size={20} />}
|
|
63
65
|
style={style}
|
|
64
66
|
/>
|
|
@@ -4,12 +4,14 @@ import { KeyboardKeys } from '../../lib/constants'
|
|
|
4
4
|
|
|
5
5
|
export const useKeyDownListener = (
|
|
6
6
|
callback: (event: KeyboardEvent) => void,
|
|
7
|
+
enabled = true,
|
|
7
8
|
overrideKeys = [KeyboardKeys.ENTER],
|
|
8
9
|
) => {
|
|
9
10
|
const callbackRef = useRef(callback)
|
|
10
11
|
callbackRef.current = callback
|
|
11
12
|
|
|
12
13
|
useEffect(() => {
|
|
14
|
+
if (!enabled) return
|
|
13
15
|
const eventHandler = (event: KeyboardEvent) => {
|
|
14
16
|
if (overrideKeys.includes(event.key as KeyboardKeys)) {
|
|
15
17
|
event.preventDefault()
|
|
@@ -23,5 +25,5 @@ export const useKeyDownListener = (
|
|
|
23
25
|
return () => {
|
|
24
26
|
document.removeEventListener('keydown', eventHandler, true)
|
|
25
27
|
}
|
|
26
|
-
}, [])
|
|
28
|
+
}, [enabled])
|
|
27
29
|
}
|
|
@@ -17,7 +17,8 @@
|
|
|
17
17
|
"answerAgain": "Answer again to get another hint!",
|
|
18
18
|
"errorMessage": "Something went wrong! Try again",
|
|
19
19
|
"howCanIHelp": "Hi! Do you want help?",
|
|
20
|
-
"showError": "Show error"
|
|
20
|
+
"showError": "Show error",
|
|
21
|
+
"inputPlaceholder": "Type..."
|
|
21
22
|
},
|
|
22
23
|
"gifCelebrations": {
|
|
23
24
|
"greatStart": "Great start!",
|
|
@@ -12,12 +12,13 @@
|
|
|
12
12
|
"time.yearAgo": "year ago",
|
|
13
13
|
"time.yearsAgo": "years ago",
|
|
14
14
|
"chat": {
|
|
15
|
-
"anotherHint": "
|
|
15
|
+
"anotherHint": "Give me another hint",
|
|
16
16
|
"giveHint": "I need a hint",
|
|
17
17
|
"answerAgain": "Answer again to get another hint!",
|
|
18
18
|
"errorMessage": "Something went wrong! Try again",
|
|
19
19
|
"howCanIHelp": "Hi! Do you want help?",
|
|
20
|
-
"showError": "Show error"
|
|
20
|
+
"showError": "Show error",
|
|
21
|
+
"inputPlaceholder": "Type..."
|
|
21
22
|
},
|
|
22
23
|
"gifCelebrations": {
|
|
23
24
|
"greatStart": "Great start!",
|
|
@@ -17,7 +17,8 @@
|
|
|
17
17
|
"answerAgain": "Answer again to get another hint!",
|
|
18
18
|
"errorMessage": "Something went wrong! Try again",
|
|
19
19
|
"howCanIHelp": "Hi! Do you want help?",
|
|
20
|
-
"showError": "Show error"
|
|
20
|
+
"showError": "Show error",
|
|
21
|
+
"inputPlaceholder": "Type..."
|
|
21
22
|
},
|
|
22
23
|
"gifCelebrations": {
|
|
23
24
|
"greatStart": "Great start!",
|
|
@@ -17,7 +17,8 @@
|
|
|
17
17
|
"answerAgain": "Answer again to get another hint!",
|
|
18
18
|
"errorMessage": "Something went wrong! Try again",
|
|
19
19
|
"howCanIHelp": "Hi! Do you want help?",
|
|
20
|
-
"showError": "Show error"
|
|
20
|
+
"showError": "Show error",
|
|
21
|
+
"inputPlaceholder": "Type..."
|
|
21
22
|
},
|
|
22
23
|
"gifCelebrations": {
|
|
23
24
|
"greatStart": "Great start!",
|
|
@@ -17,7 +17,8 @@
|
|
|
17
17
|
"answerAgain": "Svara igen för att få en till ledtråd!",
|
|
18
18
|
"errorMessage": "Något gick snett! Försök igen",
|
|
19
19
|
"howCanIHelp": "Hej! Hur kan jag hjälpa dig?",
|
|
20
|
-
"showError": "Visa fel"
|
|
20
|
+
"showError": "Visa fel",
|
|
21
|
+
"inputPlaceholder": "Skriv..."
|
|
21
22
|
},
|
|
22
23
|
"gifCelebrations": {
|
|
23
24
|
"greatStart": "Bra start!",
|
|
@@ -25,7 +26,7 @@
|
|
|
25
26
|
"almostThere": "Nästan där"
|
|
26
27
|
},
|
|
27
28
|
"exampleSolution": {
|
|
28
|
-
"exampleSolution": "
|
|
29
|
+
"exampleSolution": "Lösningsexempel",
|
|
29
30
|
"letMeThink": "Låt mig tänka...",
|
|
30
31
|
"aha": "Aha!",
|
|
31
32
|
"errorMessage": "Något gick snett med att generera en exempellösning"
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.Alternatives = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _reactNative = require("react-native");
|
|
9
|
-
var _effectorReact = require("effector-react");
|
|
10
|
-
var _ChatBotModelContext = require("../../context/ChatBotModelContext.js");
|
|
11
|
-
var _styleTypes = require("../../types/style.types.js");
|
|
12
|
-
var _InputWithHintRow = require("./InputWithHintRow.js");
|
|
13
|
-
var _HelpRequestOption = require("./HelpRequestOption.js");
|
|
14
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
16
|
-
var ChatMode = /*#__PURE__*/function (ChatMode) {
|
|
17
|
-
ChatMode[ChatMode["FREE_TEXT"] = 1] = "FREE_TEXT";
|
|
18
|
-
ChatMode[ChatMode["CHOICE"] = 2] = "CHOICE";
|
|
19
|
-
return ChatMode;
|
|
20
|
-
}(ChatMode || {});
|
|
21
|
-
const FreeTextChatInput = ({
|
|
22
|
-
options,
|
|
23
|
-
alternatives,
|
|
24
|
-
isTranslated,
|
|
25
|
-
disabled,
|
|
26
|
-
onPressAlternative,
|
|
27
|
-
colorScheme
|
|
28
|
-
}) => {
|
|
29
|
-
const isDisabled = options.length === 0;
|
|
30
|
-
const choices = (isDisabled ? alternatives?.options.default : options) ?? [];
|
|
31
|
-
const option = choices[0];
|
|
32
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
33
|
-
style: styles.container,
|
|
34
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_InputWithHintRow.InputWithHintRow, {
|
|
35
|
-
onPress: () => onPressAlternative(option.text, option.translatedText),
|
|
36
|
-
message: isTranslated ? option.translatedText : option.text,
|
|
37
|
-
disabled: isDisabled || disabled,
|
|
38
|
-
colorScheme: colorScheme
|
|
39
|
-
})
|
|
40
|
-
});
|
|
41
|
-
};
|
|
42
|
-
const OptionTextChatInput = ({
|
|
43
|
-
options,
|
|
44
|
-
alternatives,
|
|
45
|
-
onPressAlternative,
|
|
46
|
-
isTranslated,
|
|
47
|
-
colorScheme,
|
|
48
|
-
disabled
|
|
49
|
-
}) => {
|
|
50
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
51
|
-
style: styles.container,
|
|
52
|
-
children: options.map(({
|
|
53
|
-
text,
|
|
54
|
-
translatedText
|
|
55
|
-
}, index) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_HelpRequestOption.HelpRequestOption, {
|
|
56
|
-
onPress: () => onPressAlternative(text, translatedText),
|
|
57
|
-
message: isTranslated ? translatedText : text,
|
|
58
|
-
disabled: disabled,
|
|
59
|
-
colorScheme: colorScheme
|
|
60
|
-
}, index))
|
|
61
|
-
});
|
|
62
|
-
};
|
|
63
|
-
const alternativesVariant = {
|
|
64
|
-
[ChatMode.FREE_TEXT]: FreeTextChatInput,
|
|
65
|
-
[ChatMode.CHOICE]: OptionTextChatInput
|
|
66
|
-
};
|
|
67
|
-
const Alternatives = ({
|
|
68
|
-
onPressAlternative,
|
|
69
|
-
hasMessages,
|
|
70
|
-
isHintFeedback,
|
|
71
|
-
colorScheme = _styleTypes.ColorScheme.Blue
|
|
72
|
-
}) => {
|
|
73
|
-
const model = (0, _ChatBotModelContext.useChatModel)();
|
|
74
|
-
const isTranslated = (0, _effectorReact.useUnit)(model.translation.$isTranslated);
|
|
75
|
-
const alternatives = (0, _effectorReact.useUnit)(model.$alternatives);
|
|
76
|
-
const isTranslationPending = (0, _effectorReact.useUnit)(model.translation.translateAllMessagesFx.pending);
|
|
77
|
-
const isHelpRequestPending = (0, _effectorReact.useUnit)(model.sendHelpRequestFx.pending);
|
|
78
|
-
const lastMessageOptions = (0, _effectorReact.useStoreMap)(model.$currentChatData, ({
|
|
79
|
-
messages
|
|
80
|
-
}) => {
|
|
81
|
-
const lastMessage = messages.at(-1);
|
|
82
|
-
return lastMessage?.options ?? [];
|
|
83
|
-
});
|
|
84
|
-
const options = (() => {
|
|
85
|
-
if (hasMessages) return lastMessageOptions;
|
|
86
|
-
if (isHintFeedback) return alternatives?.options.hints ?? [];
|
|
87
|
-
return alternatives?.options.default ?? [];
|
|
88
|
-
})();
|
|
89
|
-
const variant = ChatMode.FREE_TEXT; // props or even to model
|
|
90
|
-
const Component = alternativesVariant[variant];
|
|
91
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
|
|
92
|
-
options: options,
|
|
93
|
-
alternatives: alternatives,
|
|
94
|
-
disabled: isHelpRequestPending,
|
|
95
|
-
isTranslated: isTranslated,
|
|
96
|
-
isTranslationPending: isTranslationPending,
|
|
97
|
-
onPressAlternative: onPressAlternative,
|
|
98
|
-
colorScheme: colorScheme
|
|
99
|
-
});
|
|
100
|
-
};
|
|
101
|
-
exports.Alternatives = Alternatives;
|
|
102
|
-
const styles = _reactNative.StyleSheet.create({
|
|
103
|
-
container: {
|
|
104
|
-
flex: 1,
|
|
105
|
-
width: 305,
|
|
106
|
-
alignItems: 'center',
|
|
107
|
-
justifyContent: 'center',
|
|
108
|
-
marginVertical: 8
|
|
109
|
-
}
|
|
110
|
-
});
|
|
111
|
-
//# sourceMappingURL=Alternatives.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_effectorReact","_ChatBotModelContext","_styleTypes","_InputWithHintRow","_HelpRequestOption","_jsxRuntime","e","__esModule","default","ChatMode","FreeTextChatInput","options","alternatives","isTranslated","disabled","onPressAlternative","colorScheme","isDisabled","length","choices","option","jsx","View","style","styles","container","children","InputWithHintRow","onPress","text","translatedText","message","OptionTextChatInput","map","index","HelpRequestOption","alternativesVariant","FREE_TEXT","CHOICE","Alternatives","hasMessages","isHintFeedback","ColorScheme","Blue","model","useChatModel","useUnit","translation","$isTranslated","$alternatives","isTranslationPending","translateAllMessagesFx","pending","isHelpRequestPending","sendHelpRequestFx","lastMessageOptions","useStoreMap","$currentChatData","messages","lastMessage","at","hints","variant","Component","exports","StyleSheet","create","flex","width","alignItems","justifyContent","marginVertical"],"sourceRoot":"../../../../../../src","sources":["features/chatbot/components/Alternatives/Alternatives.tsx"],"mappings":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AAE,QAAQ;IACxBC,cAAc,EAAE;EAClB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,208 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.HelpRequestOption = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _reactNative = require("react-native");
|
|
9
|
-
var _reactNativeReanimated = _interopRequireWildcard(require("react-native-reanimated"));
|
|
10
|
-
var _reactNativeUi = require("@magmamath/react-native-ui");
|
|
11
|
-
var _studentsFeatures = require("@magmamath/students-features");
|
|
12
|
-
var _constants = require("../../constants.js");
|
|
13
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
15
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
16
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
17
|
-
// import React, { useEffect, useRef, useState } from 'react'
|
|
18
|
-
// import { Animated, Pressable, StyleSheet } from 'react-native'
|
|
19
|
-
// import { ArrowUpIcon, COLORS, FONT_FAMILY, SPACING } from '@magmamath/react-native-ui'
|
|
20
|
-
//
|
|
21
|
-
// type HelpRequestOptionProps = {
|
|
22
|
-
// onPress: () => void
|
|
23
|
-
// message: string
|
|
24
|
-
// disabled: boolean
|
|
25
|
-
// hoverColor?: string
|
|
26
|
-
// }
|
|
27
|
-
//
|
|
28
|
-
// export const HelpRequestOption = ({
|
|
29
|
-
// onPress,
|
|
30
|
-
// message,
|
|
31
|
-
// disabled = false,
|
|
32
|
-
// hoverColor = COLORS.PRIMARY_BLUE,
|
|
33
|
-
// }: HelpRequestOptionProps) => {
|
|
34
|
-
// const [isHovered, setIsHovered] = useState(false)
|
|
35
|
-
// const hoverAnim = useRef(new Animated.Value(0)).current
|
|
36
|
-
//
|
|
37
|
-
// const backgroundColor = hoverAnim.interpolate({
|
|
38
|
-
// inputRange: [0, 1],
|
|
39
|
-
// outputRange: [COLORS.NEUTRAL_1, hoverColor],
|
|
40
|
-
// })
|
|
41
|
-
// const textColor = hoverAnim.interpolate({
|
|
42
|
-
// inputRange: [0, 1],
|
|
43
|
-
// outputRange: [COLORS.NEUTRAL_10, COLORS.NEUTRAL_1],
|
|
44
|
-
// })
|
|
45
|
-
//
|
|
46
|
-
// useEffect(() => {
|
|
47
|
-
// Animated.timing(hoverAnim, {
|
|
48
|
-
// toValue: isHovered ? 1 : 0,
|
|
49
|
-
// duration: 200,
|
|
50
|
-
// useNativeDriver: false,
|
|
51
|
-
// }).start()
|
|
52
|
-
// }, [isHovered, hoverAnim])
|
|
53
|
-
//
|
|
54
|
-
// return (
|
|
55
|
-
// <Pressable
|
|
56
|
-
// onHoverIn={() => setIsHovered(true)}
|
|
57
|
-
// onHoverOut={() => setIsHovered(false)}
|
|
58
|
-
// onPress={onPress}
|
|
59
|
-
// style={styles.button}
|
|
60
|
-
// disabled={disabled}
|
|
61
|
-
// accessibilityState={{ disabled }}
|
|
62
|
-
// accessibilityRole="button"
|
|
63
|
-
// >
|
|
64
|
-
// <Animated.View
|
|
65
|
-
// style={[styles.textWrapper, { backgroundColor, borderColor: isHovered ? backgroundColor: COLORS.PRIMARY_BLUE }]}
|
|
66
|
-
// >
|
|
67
|
-
// <Animated.Text numberOfLines={1} style={[styles.text, { color: textColor }]}>
|
|
68
|
-
// I need a hint
|
|
69
|
-
// </Animated.Text>
|
|
70
|
-
// <ArrowUpIcon color={isHovered ? COLORS.NEUTRAL_1 : COLORS.NEUTRAL_10} />
|
|
71
|
-
// </Animated.View>
|
|
72
|
-
// </Pressable>
|
|
73
|
-
// )
|
|
74
|
-
// }
|
|
75
|
-
//
|
|
76
|
-
// const styles = StyleSheet.create({
|
|
77
|
-
// button: {
|
|
78
|
-
// flexDirection: 'row',
|
|
79
|
-
// alignItems: 'flex-end',
|
|
80
|
-
// justifyContent: 'space-between',
|
|
81
|
-
// width: '100%',
|
|
82
|
-
// },
|
|
83
|
-
// text: {
|
|
84
|
-
// fontSize: 18,
|
|
85
|
-
// fontWeight: 400,
|
|
86
|
-
// fontFamily: FONT_FAMILY.buenosAires,
|
|
87
|
-
// color: COLORS.NEUTRAL_10,
|
|
88
|
-
// },
|
|
89
|
-
// textWrapper: {
|
|
90
|
-
// flex: 1,
|
|
91
|
-
// flexDirection: 'row',
|
|
92
|
-
// alignItems: 'center',
|
|
93
|
-
// justifyContent: 'space-between',
|
|
94
|
-
// maxWidth: 163,
|
|
95
|
-
// paddingHorizontal: SPACING[400],
|
|
96
|
-
// paddingVertical: SPACING[200],
|
|
97
|
-
// borderWidth: 1,
|
|
98
|
-
// borderRadius: 48,
|
|
99
|
-
// elevation: 3,
|
|
100
|
-
// shadowColor: '#333',
|
|
101
|
-
// shadowOffset: { width: 0, height: 1 },
|
|
102
|
-
// shadowOpacity: 0.25,
|
|
103
|
-
// shadowRadius: 3,
|
|
104
|
-
// backgroundColor: COLORS.NEUTRAL_1,
|
|
105
|
-
// borderColor: COLORS.PRIMARY_BLUE,
|
|
106
|
-
// },
|
|
107
|
-
// })
|
|
108
|
-
|
|
109
|
-
const HelpRequestOption = ({
|
|
110
|
-
onPress,
|
|
111
|
-
message,
|
|
112
|
-
disabled = false,
|
|
113
|
-
colorScheme = _studentsFeatures.ColorScheme.Blue,
|
|
114
|
-
visibleSv
|
|
115
|
-
}) => {
|
|
116
|
-
const hoverSv = (0, _reactNativeReanimated.useSharedValue)(0);
|
|
117
|
-
const onHoverIn = () => {
|
|
118
|
-
if (!disabled) hoverSv.value = (0, _reactNativeReanimated.withTiming)(1, {
|
|
119
|
-
duration: 200
|
|
120
|
-
});
|
|
121
|
-
};
|
|
122
|
-
const onHoverOut = () => {
|
|
123
|
-
if (!disabled) hoverSv.value = (0, _reactNativeReanimated.withTiming)(0, {
|
|
124
|
-
duration: 200
|
|
125
|
-
});
|
|
126
|
-
};
|
|
127
|
-
const animatedWrapperStyle = (0, _reactNativeReanimated.useAnimatedStyle)(() => {
|
|
128
|
-
const backgroundColor = (0, _reactNativeReanimated.interpolateColor)(hoverSv.value, [0, 1], [_reactNativeUi.COLORS.NEUTRAL_1, _constants.MESSAGE_COLORS_MAP[colorScheme].sent.background]);
|
|
129
|
-
const borderColor = (0, _reactNativeReanimated.interpolateColor)(hoverSv.value, [0, 1], [_constants.MESSAGE_COLORS_MAP[colorScheme].sent.border, _constants.MESSAGE_COLORS_MAP[colorScheme].sent.border]);
|
|
130
|
-
return {
|
|
131
|
-
backgroundColor: disabled ? _reactNativeUi.COLORS.NEUTRAL_2 : backgroundColor,
|
|
132
|
-
borderColor: disabled ? _reactNativeUi.COLORS.NEUTRAL_5 : borderColor
|
|
133
|
-
};
|
|
134
|
-
}, [hoverSv, disabled, colorScheme]);
|
|
135
|
-
const animatedTextStyle = (0, _reactNativeReanimated.useAnimatedStyle)(() => {
|
|
136
|
-
const color = (0, _reactNativeReanimated.interpolateColor)(hoverSv.value, [0, 1], [_reactNativeUi.COLORS.NEUTRAL_10, _reactNativeUi.COLORS.NEUTRAL_1]);
|
|
137
|
-
return {
|
|
138
|
-
color: disabled ? _reactNativeUi.COLORS.NEUTRAL_5 : color
|
|
139
|
-
};
|
|
140
|
-
}, [hoverSv, disabled]);
|
|
141
|
-
const animatedVisibilityStyle = (0, _reactNativeReanimated.useAnimatedStyle)(() => {
|
|
142
|
-
return {
|
|
143
|
-
opacity: visibleSv ? visibleSv.value : 1
|
|
144
|
-
};
|
|
145
|
-
}, [visibleSv]);
|
|
146
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Pressable, {
|
|
147
|
-
onHoverIn: onHoverIn,
|
|
148
|
-
onHoverOut: onHoverOut,
|
|
149
|
-
onPress: onPress,
|
|
150
|
-
style: [styles.button, {
|
|
151
|
-
cursor: disabled ? 'auto' : 'pointer'
|
|
152
|
-
}],
|
|
153
|
-
disabled: disabled,
|
|
154
|
-
accessibilityState: {
|
|
155
|
-
disabled
|
|
156
|
-
},
|
|
157
|
-
accessibilityRole: "button",
|
|
158
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNativeReanimated.default.View, {
|
|
159
|
-
style: [styles.textWrapper, animatedWrapperStyle, animatedVisibilityStyle],
|
|
160
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeReanimated.default.Text, {
|
|
161
|
-
numberOfLines: 1,
|
|
162
|
-
style: [styles.text, animatedTextStyle],
|
|
163
|
-
children: message
|
|
164
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeReanimated.default.Text, {
|
|
165
|
-
style: animatedTextStyle,
|
|
166
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeUi.ArrowUpIcon, {
|
|
167
|
-
color: 'currentColor',
|
|
168
|
-
size: 16
|
|
169
|
-
})
|
|
170
|
-
})]
|
|
171
|
-
})
|
|
172
|
-
});
|
|
173
|
-
};
|
|
174
|
-
exports.HelpRequestOption = HelpRequestOption;
|
|
175
|
-
const styles = _reactNative.StyleSheet.create({
|
|
176
|
-
button: {
|
|
177
|
-
flexDirection: 'row',
|
|
178
|
-
justifyContent: 'flex-end'
|
|
179
|
-
},
|
|
180
|
-
text: {
|
|
181
|
-
fontSize: 18,
|
|
182
|
-
fontWeight: '400',
|
|
183
|
-
fontFamily: _reactNativeUi.FONT_FAMILY.buenosAires,
|
|
184
|
-
color: _reactNativeUi.COLORS.NEUTRAL_10
|
|
185
|
-
},
|
|
186
|
-
textWrapper: {
|
|
187
|
-
flex: 1,
|
|
188
|
-
flexDirection: 'row',
|
|
189
|
-
alignItems: 'center',
|
|
190
|
-
justifyContent: 'space-between',
|
|
191
|
-
width: 163,
|
|
192
|
-
paddingHorizontal: _reactNativeUi.SPACING[400],
|
|
193
|
-
paddingVertical: _reactNativeUi.SPACING[200],
|
|
194
|
-
borderWidth: 1,
|
|
195
|
-
borderRadius: 48,
|
|
196
|
-
elevation: 3,
|
|
197
|
-
shadowColor: '#333',
|
|
198
|
-
shadowOffset: {
|
|
199
|
-
width: 0,
|
|
200
|
-
height: 1
|
|
201
|
-
},
|
|
202
|
-
shadowOpacity: 0.25,
|
|
203
|
-
shadowRadius: 3,
|
|
204
|
-
backgroundColor: _reactNativeUi.COLORS.NEUTRAL_1,
|
|
205
|
-
borderColor: _reactNativeUi.COLORS.PRIMARY_BLUE
|
|
206
|
-
}
|
|
207
|
-
});
|
|
208
|
-
//# sourceMappingURL=HelpRequestOption.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_reactNativeReanimated","_interopRequireWildcard","_reactNativeUi","_studentsFeatures","_constants","_jsxRuntime","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","HelpRequestOption","onPress","message","disabled","colorScheme","ColorScheme","Blue","visibleSv","hoverSv","useSharedValue","onHoverIn","value","withTiming","duration","onHoverOut","animatedWrapperStyle","useAnimatedStyle","backgroundColor","interpolateColor","COLORS","NEUTRAL_1","MESSAGE_COLORS_MAP","sent","background","borderColor","border","NEUTRAL_2","NEUTRAL_5","animatedTextStyle","color","NEUTRAL_10","animatedVisibilityStyle","opacity","jsx","Pressable","style","styles","button","cursor","accessibilityState","accessibilityRole","children","jsxs","View","textWrapper","Text","numberOfLines","text","ArrowUpIcon","size","exports","StyleSheet","create","flexDirection","justifyContent","fontSize","fontWeight","fontFamily","FONT_FAMILY","buenosAires","flex","alignItems","width","paddingHorizontal","SPACING","paddingVertical","borderWidth","borderRadius","elevation","shadowColor","shadowOffset","height","shadowOpacity","shadowRadius","PRIMARY_BLUE"],"sourceRoot":"../../../../../../src","sources":["features/chatbot/components/Alternatives/HelpRequestOption.tsx"],"mappings":";;;;;;AA4FA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,sBAAA,GAAAC,uBAAA,CAAAH,OAAA;AAOA,IAAAI,cAAA,GAAAJ,OAAA;AACA,IAAAK,iBAAA,GAAAL,OAAA;AACA,IAAAM,UAAA,GAAAN,OAAA;AAAoD,IAAAO,WAAA,GAAAP,OAAA;AAAA,SAAAQ,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAN,wBAAAM,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAd,CAAA,oBAAAc,CAAA,OAAAC,cAAA,CAAAC,IAAA,CAAAhB,CAAA,E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,IAAA9D,WAAA,CAAAsD,GAAA,EAACzD,cAAA,CAAAwE,WAAW;UAACnB,KAAK,EAAE,cAAe;UAACoB,IAAI,EAAE;QAAG,CAAE;MAAC,CACnC,CAAC;IAAA,CACH;EAAC,CACP,CAAC;AAEhB,CAAC;AAAAC,OAAA,CAAAlD,iBAAA,GAAAA,iBAAA;AAED,MAAMoC,MAAM,GAAGe,uBAAU,CAACC,MAAM,CAAC;EAC/Bf,MAAM,EAAE;IACNgB,aAAa,EAAE,KAAK;IACpBC,cAAc,EAAE;EAClB,CAAC;EACDP,IAAI,EAAE;IACJQ,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,KAAK;IACjBC,UAAU,EAAEC,0BAAW,CAACC,WAAW;IACnC9B,KAAK,EAAEV,qBAAM,CAACW;EAChB,CAAC;EACDc,WAAW,EAAE;IACXgB,IAAI,EAAE,CAAC;IACPP,aAAa,EAAE,KAAK;IACpBQ,UAAU,EAAE,QAAQ;IACpBP,cAAc,EAAE,eAAe;IAC/BQ,KAAK,EAAE,GAAG;IACVC,iBAAiB,EAAEC,sBAAO,CAAC,GAAG,CAAC;IAC/BC,eAAe,EAAED,sBAAO,CAAC,GAAG,CAAC;IAC7BE,WAAW,EAAE,CAAC;IACdC,YAAY,EAAE,EAAE;IAChBC,SAAS,EAAE,CAAC;IACZC,WAAW,EAAE,MAAM;IACnBC,YAAY,EAAE;MAAER,KAAK,EAAE,CAAC;MAAES,MAAM,EAAE;IAAE,CAAC;IACrCC,aAAa,EAAE,IAAI;IACnBC,YAAY,EAAE,CAAC;IACfxD,eAAe,EAAEE,qBAAM,CAACC,SAAS;IACjCI,WAAW,EAAEL,qBAAM,CAACuD;EACtB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_reactNativeReanimated","_interopRequireWildcard","_reactNativeUi","_studentsFeatures","_constants","_jsxRuntime","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","InputButton","onPress","disabled","colorScheme","ColorScheme","Blue","hoverSv","useSharedValue","onHoverIn","value","withTiming","duration","onHoverOut","animatedWrapperStyle","useAnimatedStyle","backgroundColor","interpolateColor","COLORS","NEUTRAL_1","MESSAGE_COLORS_MAP","sent","border","color","NEUTRAL_10","NEUTRAL_2","borderColor","NEUTRAL_5","jsx","Pressable","style","styles","button","cursor","accessibilityState","accessibilityRole","children","Text","textWrapper","ArrowUpIcon","size","exports","StyleSheet","create","flexDirection","justifyContent","text","fontSize","fontWeight","fontFamily","FONT_FAMILY","buenosAires","flex","alignItems","paddingHorizontal","paddingVertical","borderWidth","borderRadius","elevation","shadowColor","shadowOffset","width","height","shadowOpacity","shadowRadius","PRIMARY_BLUE"],"sourceRoot":"../../../../../../src","sources":["features/chatbot/components/Alternatives/InputButton.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,sBAAA,GAAAC,uBAAA,CAAAH,OAAA;AAMA,IAAAI,cAAA,GAAAJ,OAAA;AACA,IAAAK,iBAAA,GAAAL,OAAA;AACA,IAAAM,UAAA,GAAAN,OAAA;AAAoD,IAAAO,WAAA,GAAAP,OAAA;AAAA,SAAAQ,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAN,wBAAAM,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CA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