@magmamath/students-features 0.6.14-rc.9 → 0.6.15
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/Alternatives/Alternatives.js +59 -0
- package/dist/commonjs/features/chatbot/components/Alternatives/Alternatives.js.map +1 -0
- package/dist/commonjs/features/chatbot/components/Alternatives/HelpRequestOption.js +99 -0
- package/dist/commonjs/features/chatbot/components/Alternatives/HelpRequestOption.js.map +1 -0
- package/dist/commonjs/features/chatbot/components/ChatMessage/MessageLoader.js +4 -7
- package/dist/commonjs/features/chatbot/components/ChatMessage/MessageLoader.js.map +1 -1
- package/dist/commonjs/features/chatbot/components/{Chat/Chat.js → ChatMessages/ChatbotMessages.js} +9 -12
- package/dist/commonjs/features/chatbot/components/ChatMessages/ChatbotMessages.js.map +1 -0
- package/dist/commonjs/features/chatbot/components/Chatbot.js +3 -5
- package/dist/commonjs/features/chatbot/components/Chatbot.js.map +1 -1
- package/dist/commonjs/features/chatbot/constants.js +1 -6
- package/dist/commonjs/features/chatbot/constants.js.map +1 -1
- package/dist/commonjs/features/chatbot/index.js +0 -7
- package/dist/commonjs/features/chatbot/index.js.map +1 -1
- package/dist/commonjs/features/chatbot/model/ChatBotModel.js +3 -37
- package/dist/commonjs/features/chatbot/model/ChatBotModel.js.map +1 -1
- package/dist/commonjs/features/chatbot/model/ChatBotThreadManager.js +10 -31
- package/dist/commonjs/features/chatbot/model/ChatBotThreadManager.js.map +1 -1
- package/dist/commonjs/features/chatbot/model/ChatbotApi.js +0 -3
- package/dist/commonjs/features/chatbot/model/ChatbotApi.js.map +1 -1
- package/dist/commonjs/features/chatbot/types/model.types.js.map +1 -1
- 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/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 +12 -9
- 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 +6 -4
- package/dist/commonjs/features/formulaSheet/components/FormulaSheet.js.map +1 -1
- package/dist/commonjs/shared/translation/localization/ca.json +1 -1
- package/dist/commonjs/shared/translation/localization/en.json +1 -1
- package/dist/commonjs/shared/translation/localization/gb.json +1 -1
- package/dist/commonjs/shared/translation/localization/sct.json +2 -2
- package/dist/commonjs/shared/translation/localization/sw.json +3 -3
- package/dist/module/features/chatbot/components/Alternatives/Alternatives.js +53 -0
- package/dist/module/features/chatbot/components/Alternatives/Alternatives.js.map +1 -0
- package/dist/module/features/chatbot/components/Alternatives/HelpRequestOption.js +92 -0
- package/dist/module/features/chatbot/components/Alternatives/HelpRequestOption.js.map +1 -0
- package/dist/module/features/chatbot/components/ChatMessage/MessageLoader.js +4 -7
- package/dist/module/features/chatbot/components/ChatMessage/MessageLoader.js.map +1 -1
- package/dist/module/features/chatbot/components/{Chat/Chat.js → ChatMessages/ChatbotMessages.js} +7 -10
- package/dist/module/features/chatbot/components/ChatMessages/ChatbotMessages.js.map +1 -0
- package/dist/module/features/chatbot/components/Chatbot.js +3 -5
- package/dist/module/features/chatbot/components/Chatbot.js.map +1 -1
- package/dist/module/features/chatbot/constants.js +0 -5
- package/dist/module/features/chatbot/constants.js.map +1 -1
- package/dist/module/features/chatbot/index.js +0 -1
- package/dist/module/features/chatbot/index.js.map +1 -1
- package/dist/module/features/chatbot/model/ChatBotModel.js +3 -37
- package/dist/module/features/chatbot/model/ChatBotModel.js.map +1 -1
- package/dist/module/features/chatbot/model/ChatBotThreadManager.js +10 -31
- package/dist/module/features/chatbot/model/ChatBotThreadManager.js.map +1 -1
- package/dist/module/features/chatbot/model/ChatbotApi.js +0 -3
- package/dist/module/features/chatbot/model/ChatbotApi.js.map +1 -1
- package/dist/module/features/chatbot/types/model.types.js.map +1 -1
- 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/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 +12 -9
- 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 +6 -4
- package/dist/module/features/formulaSheet/components/FormulaSheet.js.map +1 -1
- package/dist/module/shared/translation/localization/ca.json +1 -1
- package/dist/module/shared/translation/localization/en.json +1 -1
- package/dist/module/shared/translation/localization/gb.json +1 -1
- package/dist/module/shared/translation/localization/sct.json +2 -2
- package/dist/module/shared/translation/localization/sw.json +3 -3
- package/dist/typescript/commonjs/features/chatbot/components/Alternatives/Alternatives.d.ts +11 -0
- package/dist/typescript/commonjs/features/chatbot/components/Alternatives/Alternatives.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/chatbot/components/Alternatives/HelpRequestOption.d.ts +10 -0
- package/dist/typescript/commonjs/features/chatbot/components/Alternatives/HelpRequestOption.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/MessageLoader.d.ts.map +1 -1
- package/dist/typescript/{module/features/chatbot/components/Chat/Chat.d.ts → commonjs/features/chatbot/components/ChatMessages/ChatbotMessages.d.ts} +2 -4
- package/dist/typescript/commonjs/features/chatbot/components/ChatMessages/ChatbotMessages.d.ts.map +1 -0
- 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/constants.d.ts +0 -5
- package/dist/typescript/commonjs/features/chatbot/constants.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/index.d.ts +0 -1
- package/dist/typescript/commonjs/features/chatbot/index.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/model/ChatBotModel.d.ts +1 -5
- package/dist/typescript/commonjs/features/chatbot/model/ChatBotModel.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/model/ChatBotThreadManager.d.ts +2 -5
- package/dist/typescript/commonjs/features/chatbot/model/ChatBotThreadManager.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/model/ChatbotApi.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/types/api.types.d.ts +4 -21
- 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 +1 -10
- package/dist/typescript/commonjs/features/chatbot/types/model.types.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/types/units.types.d.ts +0 -18
- 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/module/features/chatbot/components/Alternatives/Alternatives.d.ts +11 -0
- package/dist/typescript/module/features/chatbot/components/Alternatives/Alternatives.d.ts.map +1 -0
- package/dist/typescript/module/features/chatbot/components/Alternatives/HelpRequestOption.d.ts +10 -0
- package/dist/typescript/module/features/chatbot/components/Alternatives/HelpRequestOption.d.ts.map +1 -0
- package/dist/typescript/module/features/chatbot/components/ChatMessage/MessageLoader.d.ts.map +1 -1
- package/dist/typescript/{commonjs/features/chatbot/components/Chat/Chat.d.ts → module/features/chatbot/components/ChatMessages/ChatbotMessages.d.ts} +2 -4
- package/dist/typescript/module/features/chatbot/components/ChatMessages/ChatbotMessages.d.ts.map +1 -0
- 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/constants.d.ts +0 -5
- package/dist/typescript/module/features/chatbot/constants.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/index.d.ts +0 -1
- package/dist/typescript/module/features/chatbot/index.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/model/ChatBotModel.d.ts +1 -5
- package/dist/typescript/module/features/chatbot/model/ChatBotModel.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/model/ChatBotThreadManager.d.ts +2 -5
- package/dist/typescript/module/features/chatbot/model/ChatBotThreadManager.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/model/ChatbotApi.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/types/api.types.d.ts +4 -21
- 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 +1 -10
- package/dist/typescript/module/features/chatbot/types/model.types.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/types/units.types.d.ts +0 -18
- 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/package.json +1 -1
- package/src/features/chatbot/components/Alternatives/Alternatives.tsx +60 -0
- package/src/features/chatbot/components/Alternatives/HelpRequestOption.tsx +91 -0
- package/src/features/chatbot/components/ChatMessage/MessageLoader.tsx +2 -6
- package/src/features/chatbot/components/{Chat/Chat.tsx → ChatMessages/ChatbotMessages.tsx} +6 -10
- package/src/features/chatbot/components/Chatbot.tsx +2 -6
- package/src/features/chatbot/constants.ts +0 -7
- package/src/features/chatbot/index.ts +0 -2
- package/src/features/chatbot/model/ChatBotModel.ts +27 -71
- package/src/features/chatbot/model/ChatBotThreadManager.ts +9 -38
- package/src/features/chatbot/model/ChatbotApi.ts +0 -2
- package/src/features/chatbot/types/api.types.ts +4 -24
- package/src/features/chatbot/types/model.types.ts +0 -15
- package/src/features/chatbot/types/units.types.ts +0 -22
- package/src/features/exampleSolution/ExampleSolutionModal.tsx +1 -7
- package/src/features/exampleSolution/assets/grid.webp +0 -0
- package/src/features/exampleSolution/components/ExampleSolutionModalContent.tsx +16 -10
- 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 +7 -4
- package/src/shared/translation/localization/ca.json +1 -1
- package/src/shared/translation/localization/en.json +1 -1
- package/src/shared/translation/localization/gb.json +1 -1
- package/src/shared/translation/localization/sct.json +2 -2
- package/src/shared/translation/localization/sw.json +3 -3
- package/dist/commonjs/features/chatbot/components/Chat/Chat.js.map +0 -1
- package/dist/commonjs/features/chatbot/components/ChatInput/ChatInput.js +0 -53
- package/dist/commonjs/features/chatbot/components/ChatInput/ChatInput.js.map +0 -1
- package/dist/commonjs/features/chatbot/components/ChatInput/InputOption.js +0 -39
- package/dist/commonjs/features/chatbot/components/ChatInput/InputOption.js.map +0 -1
- package/dist/commonjs/features/chatbot/components/ChatInput/InputOptionWithTextArea.js +0 -38
- package/dist/commonjs/features/chatbot/components/ChatInput/InputOptionWithTextArea.js.map +0 -1
- package/dist/commonjs/features/chatbot/components/ChatInput/RequestHintButton.js +0 -140
- package/dist/commonjs/features/chatbot/components/ChatInput/RequestHintButton.js.map +0 -1
- package/dist/commonjs/features/chatbot/components/ChatInput/freeText/ChatTextInput.js +0 -142
- package/dist/commonjs/features/chatbot/components/ChatInput/freeText/ChatTextInput.js.map +0 -1
- package/dist/commonjs/features/chatbot/components/ChatInput/freeText/FreeTextInputBlock.js +0 -44
- package/dist/commonjs/features/chatbot/components/ChatInput/freeText/FreeTextInputBlock.js.map +0 -1
- package/dist/commonjs/features/chatbot/components/ChatInput/freeText/SendMessageButton.js +0 -105
- package/dist/commonjs/features/chatbot/components/ChatInput/freeText/SendMessageButton.js.map +0 -1
- package/dist/commonjs/features/exampleSolution/assets/grid.png +0 -0
- package/dist/module/features/chatbot/components/Chat/Chat.js.map +0 -1
- package/dist/module/features/chatbot/components/ChatInput/ChatInput.js +0 -47
- package/dist/module/features/chatbot/components/ChatInput/ChatInput.js.map +0 -1
- package/dist/module/features/chatbot/components/ChatInput/InputOption.js +0 -34
- package/dist/module/features/chatbot/components/ChatInput/InputOption.js.map +0 -1
- package/dist/module/features/chatbot/components/ChatInput/InputOptionWithTextArea.js +0 -32
- package/dist/module/features/chatbot/components/ChatInput/InputOptionWithTextArea.js.map +0 -1
- package/dist/module/features/chatbot/components/ChatInput/RequestHintButton.js +0 -132
- package/dist/module/features/chatbot/components/ChatInput/RequestHintButton.js.map +0 -1
- package/dist/module/features/chatbot/components/ChatInput/freeText/ChatTextInput.js +0 -134
- package/dist/module/features/chatbot/components/ChatInput/freeText/ChatTextInput.js.map +0 -1
- package/dist/module/features/chatbot/components/ChatInput/freeText/FreeTextInputBlock.js +0 -38
- package/dist/module/features/chatbot/components/ChatInput/freeText/FreeTextInputBlock.js.map +0 -1
- package/dist/module/features/chatbot/components/ChatInput/freeText/SendMessageButton.js +0 -97
- package/dist/module/features/chatbot/components/ChatInput/freeText/SendMessageButton.js.map +0 -1
- package/dist/module/features/exampleSolution/assets/grid.png +0 -0
- package/dist/typescript/commonjs/features/chatbot/components/Chat/Chat.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/chatbot/components/ChatInput/ChatInput.d.ts +0 -4
- package/dist/typescript/commonjs/features/chatbot/components/ChatInput/ChatInput.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/chatbot/components/ChatInput/InputOption.d.ts +0 -4
- package/dist/typescript/commonjs/features/chatbot/components/ChatInput/InputOption.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/chatbot/components/ChatInput/InputOptionWithTextArea.d.ts +0 -4
- package/dist/typescript/commonjs/features/chatbot/components/ChatInput/InputOptionWithTextArea.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/chatbot/components/ChatInput/RequestHintButton.d.ts +0 -18
- package/dist/typescript/commonjs/features/chatbot/components/ChatInput/RequestHintButton.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/chatbot/components/ChatInput/freeText/ChatTextInput.d.ts +0 -10
- package/dist/typescript/commonjs/features/chatbot/components/ChatInput/freeText/ChatTextInput.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/chatbot/components/ChatInput/freeText/FreeTextInputBlock.d.ts +0 -11
- package/dist/typescript/commonjs/features/chatbot/components/ChatInput/freeText/FreeTextInputBlock.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/chatbot/components/ChatInput/freeText/SendMessageButton.d.ts +0 -10
- package/dist/typescript/commonjs/features/chatbot/components/ChatInput/freeText/SendMessageButton.d.ts.map +0 -1
- package/dist/typescript/module/features/chatbot/components/Chat/Chat.d.ts.map +0 -1
- package/dist/typescript/module/features/chatbot/components/ChatInput/ChatInput.d.ts +0 -4
- package/dist/typescript/module/features/chatbot/components/ChatInput/ChatInput.d.ts.map +0 -1
- package/dist/typescript/module/features/chatbot/components/ChatInput/InputOption.d.ts +0 -4
- package/dist/typescript/module/features/chatbot/components/ChatInput/InputOption.d.ts.map +0 -1
- package/dist/typescript/module/features/chatbot/components/ChatInput/InputOptionWithTextArea.d.ts +0 -4
- package/dist/typescript/module/features/chatbot/components/ChatInput/InputOptionWithTextArea.d.ts.map +0 -1
- package/dist/typescript/module/features/chatbot/components/ChatInput/RequestHintButton.d.ts +0 -18
- package/dist/typescript/module/features/chatbot/components/ChatInput/RequestHintButton.d.ts.map +0 -1
- package/dist/typescript/module/features/chatbot/components/ChatInput/freeText/ChatTextInput.d.ts +0 -10
- package/dist/typescript/module/features/chatbot/components/ChatInput/freeText/ChatTextInput.d.ts.map +0 -1
- package/dist/typescript/module/features/chatbot/components/ChatInput/freeText/FreeTextInputBlock.d.ts +0 -11
- package/dist/typescript/module/features/chatbot/components/ChatInput/freeText/FreeTextInputBlock.d.ts.map +0 -1
- package/dist/typescript/module/features/chatbot/components/ChatInput/freeText/SendMessageButton.d.ts +0 -10
- package/dist/typescript/module/features/chatbot/components/ChatInput/freeText/SendMessageButton.d.ts.map +0 -1
- package/src/features/chatbot/components/ChatInput/ChatInput.tsx +0 -56
- package/src/features/chatbot/components/ChatInput/InputOption.tsx +0 -29
- package/src/features/chatbot/components/ChatInput/InputOptionWithTextArea.tsx +0 -27
- package/src/features/chatbot/components/ChatInput/RequestHintButton.tsx +0 -160
- package/src/features/chatbot/components/ChatInput/freeText/ChatTextInput.tsx +0 -133
- package/src/features/chatbot/components/ChatInput/freeText/FreeTextInputBlock.tsx +0 -42
- package/src/features/chatbot/components/ChatInput/freeText/SendMessageButton.tsx +0 -110
- package/src/features/exampleSolution/assets/grid.png +0 -0
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import React from 'react';
|
|
4
|
-
import { Pressable, StyleSheet } from 'react-native';
|
|
5
|
-
import Animated, { useSharedValue, withTiming, useAnimatedStyle, interpolateColor } from 'react-native-reanimated';
|
|
6
|
-
import { ArrowUpIcon, COLORS, IS_MOBILE } from '@magmamath/react-native-ui';
|
|
7
|
-
import { ColorScheme } from '@magmamath/students-features';
|
|
8
|
-
import { MESSAGE_COLORS_MAP } from "../../../constants.js";
|
|
9
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
|
-
export const SendMessageButton = ({
|
|
11
|
-
onPress,
|
|
12
|
-
disabled = false,
|
|
13
|
-
colorScheme = ColorScheme.Blue
|
|
14
|
-
}) => {
|
|
15
|
-
const hoverSv = useSharedValue(0);
|
|
16
|
-
const onHoverIn = () => {
|
|
17
|
-
if (!disabled) hoverSv.value = withTiming(1, {
|
|
18
|
-
duration: 200
|
|
19
|
-
});
|
|
20
|
-
};
|
|
21
|
-
const onHoverOut = () => {
|
|
22
|
-
if (!disabled) hoverSv.value = withTiming(0, {
|
|
23
|
-
duration: 200
|
|
24
|
-
});
|
|
25
|
-
};
|
|
26
|
-
const animatedIconStyle = useAnimatedStyle(() => {
|
|
27
|
-
const backgroundColor = interpolateColor(hoverSv.value, [0, 1], [COLORS.NEUTRAL_1, MESSAGE_COLORS_MAP[colorScheme].sent.border]);
|
|
28
|
-
const color = interpolateColor(hoverSv.value, [0, 1], [COLORS.NEUTRAL_10, COLORS.NEUTRAL_1]);
|
|
29
|
-
return {
|
|
30
|
-
backgroundColor: disabled ? COLORS.NEUTRAL_2 : backgroundColor,
|
|
31
|
-
borderColor: disabled ? COLORS.NEUTRAL_5 : MESSAGE_COLORS_MAP[colorScheme].sent.border,
|
|
32
|
-
color: disabled ? COLORS.NEUTRAL_5 : color
|
|
33
|
-
};
|
|
34
|
-
}, [hoverSv, disabled]);
|
|
35
|
-
return /*#__PURE__*/_jsx(Pressable, {
|
|
36
|
-
onHoverIn: onHoverIn,
|
|
37
|
-
onHoverOut: onHoverOut,
|
|
38
|
-
onPress: onPress,
|
|
39
|
-
style: [styles.button, disabled && {
|
|
40
|
-
cursor: 'auto'
|
|
41
|
-
}],
|
|
42
|
-
disabled: disabled,
|
|
43
|
-
accessibilityState: {
|
|
44
|
-
disabled
|
|
45
|
-
},
|
|
46
|
-
accessibilityRole: "button",
|
|
47
|
-
children: IS_MOBILE ? /*#__PURE__*/_jsx(Animated.View, {
|
|
48
|
-
style: [styles.iconContainer, animatedIconStyle, {
|
|
49
|
-
borderColor: disabled ? COLORS.NEUTRAL_5 : MESSAGE_COLORS_MAP[colorScheme].sent.border
|
|
50
|
-
}],
|
|
51
|
-
children: /*#__PURE__*/_jsx(ArrowUpIcon, {
|
|
52
|
-
color: 'currentColor',
|
|
53
|
-
size: 16
|
|
54
|
-
})
|
|
55
|
-
}) : /*#__PURE__*/_jsx(Animated.Text, {
|
|
56
|
-
style: [styles.webIconContainer, animatedIconStyle],
|
|
57
|
-
children: /*#__PURE__*/_jsx(ArrowUpIcon, {
|
|
58
|
-
color: 'currentColor',
|
|
59
|
-
size: 16
|
|
60
|
-
})
|
|
61
|
-
})
|
|
62
|
-
});
|
|
63
|
-
};
|
|
64
|
-
const styles = StyleSheet.create({
|
|
65
|
-
button: {
|
|
66
|
-
flexDirection: 'row',
|
|
67
|
-
justifyContent: 'flex-end'
|
|
68
|
-
},
|
|
69
|
-
iconContainer: {
|
|
70
|
-
justifyContent: 'center',
|
|
71
|
-
alignItems: 'center',
|
|
72
|
-
padding: 12,
|
|
73
|
-
borderRadius: 21,
|
|
74
|
-
borderWidth: 1
|
|
75
|
-
},
|
|
76
|
-
webIconContainer: {
|
|
77
|
-
flex: 1,
|
|
78
|
-
flexDirection: 'row',
|
|
79
|
-
alignItems: 'center',
|
|
80
|
-
justifyContent: 'space-between',
|
|
81
|
-
paddingHorizontal: 13,
|
|
82
|
-
paddingVertical: 12,
|
|
83
|
-
borderWidth: 1,
|
|
84
|
-
borderRadius: 48,
|
|
85
|
-
elevation: 3,
|
|
86
|
-
shadowColor: '#333',
|
|
87
|
-
shadowOffset: {
|
|
88
|
-
width: 0,
|
|
89
|
-
height: 1
|
|
90
|
-
},
|
|
91
|
-
shadowOpacity: 0.25,
|
|
92
|
-
shadowRadius: 3,
|
|
93
|
-
backgroundColor: COLORS.NEUTRAL_1,
|
|
94
|
-
borderColor: COLORS.PRIMARY_BLUE
|
|
95
|
-
}
|
|
96
|
-
});
|
|
97
|
-
//# sourceMappingURL=SendMessageButton.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","Pressable","StyleSheet","Animated","useSharedValue","withTiming","useAnimatedStyle","interpolateColor","ArrowUpIcon","COLORS","IS_MOBILE","ColorScheme","MESSAGE_COLORS_MAP","jsx","_jsx","SendMessageButton","onPress","disabled","colorScheme","Blue","hoverSv","onHoverIn","value","duration","onHoverOut","animatedIconStyle","backgroundColor","NEUTRAL_1","sent","border","color","NEUTRAL_10","NEUTRAL_2","borderColor","NEUTRAL_5","style","styles","button","cursor","accessibilityState","accessibilityRole","children","View","iconContainer","size","Text","webIconContainer","create","flexDirection","justifyContent","alignItems","padding","borderRadius","borderWidth","flex","paddingHorizontal","paddingVertical","elevation","shadowColor","shadowOffset","width","height","shadowOpacity","shadowRadius","PRIMARY_BLUE"],"sourceRoot":"../../../../../../../src","sources":["features/chatbot/components/ChatInput/freeText/SendMessageButton.tsx"],"mappings":"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","ignoreList":[]}
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Chat.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/chatbot/components/Chat/Chat.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiB,MAAM,OAAO,CAAA;AAIrC,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAKvD,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAA;AAEvD,KAAK,oBAAoB,GAAG;IAC1B,KAAK,EAAE,YAAY,CAAA;IACnB,cAAc,EAAE,OAAO,CAAA;IACvB,qBAAqB,EAAE,OAAO,CAAA;IAC9B,SAAS,EAAE,aAAa,CAAA;IACxB,WAAW,CAAC,EAAE,WAAW,CAAA;CAC1B,CAAA;AAQD,eAAO,MAAM,IAAI,8EAMd,oBAAoB,sBAyEtB,CAAA"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ChatInputAreaProps } from '../../types/units.types';
|
|
3
|
-
export declare const ChatInput: ({ onPressAlternative, hasMessages, isHintFeedback, inputMode, colorScheme, }: ChatInputAreaProps) => "" | React.JSX.Element | undefined;
|
|
4
|
-
//# sourceMappingURL=ChatInput.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ChatInput.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/chatbot/components/ChatInput/ChatInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwB,MAAM,OAAO,CAAA;AAK5C,OAAO,EAAE,kBAAkB,EAAiC,MAAM,yBAAyB,CAAA;AAS3F,eAAO,MAAM,SAAS,iFAMnB,kBAAkB,uCAmCpB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"InputOption.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/chatbot/components/ChatInput/InputOption.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AAIxD,eAAO,MAAM,WAAW,gDAAiD,cAAc,sBAYtF,CAAA"}
|
package/dist/typescript/commonjs/features/chatbot/components/ChatInput/InputOptionWithTextArea.d.ts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ChatInputProps } from '../../types/units.types';
|
|
3
|
-
export declare const InputOptionWithTextArea: ({ message, disabled, onPress, colorScheme }: ChatInputProps) => React.JSX.Element;
|
|
4
|
-
//# sourceMappingURL=InputOptionWithTextArea.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"InputOptionWithTextArea.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/chatbot/components/ChatInput/InputOptionWithTextArea.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AAGxD,eAAO,MAAM,uBAAuB,gDAAiD,cAAc,sBAWlG,CAAA"}
|
package/dist/typescript/commonjs/features/chatbot/components/ChatInput/RequestHintButton.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { SharedValue } from 'react-native-reanimated';
|
|
3
|
-
import { ColorScheme } from '@magmamath/students-features';
|
|
4
|
-
type HelpRequestOptionProps = {
|
|
5
|
-
onPress: () => void;
|
|
6
|
-
message: string;
|
|
7
|
-
disabled: boolean;
|
|
8
|
-
variant: OptionButtonVariant;
|
|
9
|
-
colorScheme?: ColorScheme;
|
|
10
|
-
visibleSv?: SharedValue<number>;
|
|
11
|
-
};
|
|
12
|
-
export declare enum OptionButtonVariant {
|
|
13
|
-
Default = "default",
|
|
14
|
-
Short = "short"
|
|
15
|
-
}
|
|
16
|
-
export declare const RequestHintButton: ({ onPress, message, disabled, colorScheme, variant, }: HelpRequestOptionProps) => React.JSX.Element;
|
|
17
|
-
export {};
|
|
18
|
-
//# sourceMappingURL=RequestHintButton.d.ts.map
|
package/dist/typescript/commonjs/features/chatbot/components/ChatInput/RequestHintButton.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RequestHintButton.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/chatbot/components/ChatInput/RequestHintButton.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAiB,EAKf,WAAW,EACZ,MAAM,yBAAyB,CAAA;AAShC,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAA;AAI1D,KAAK,sBAAsB,GAAG;IAC5B,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,OAAO,EAAE,MAAM,CAAA;IACf,QAAQ,EAAE,OAAO,CAAA;IACjB,OAAO,EAAE,mBAAmB,CAAA;IAC5B,WAAW,CAAC,EAAE,WAAW,CAAA;IACzB,SAAS,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;CAChC,CAAA;AAED,oBAAY,mBAAmB;IAC7B,OAAO,YAAY;IACnB,KAAK,UAAU;CAChB;AAUD,eAAO,MAAM,iBAAiB,0DAM3B,sBAAsB,sBA8ExB,CAAA"}
|
package/dist/typescript/commonjs/features/chatbot/components/ChatInput/freeText/ChatTextInput.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ColorScheme } from '@magmamath/students-features';
|
|
3
|
-
type ChatTextInputProps = {
|
|
4
|
-
onPress: () => void;
|
|
5
|
-
disabled: boolean;
|
|
6
|
-
colorScheme?: ColorScheme;
|
|
7
|
-
};
|
|
8
|
-
export declare const ChatTextInput: ({ disabled, colorScheme }: ChatTextInputProps) => React.JSX.Element;
|
|
9
|
-
export {};
|
|
10
|
-
//# sourceMappingURL=ChatTextInput.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ChatTextInput.d.ts","sourceRoot":"","sources":["../../../../../../../../src/features/chatbot/components/ChatInput/freeText/ChatTextInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAOzB,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAA;AAU1D,KAAK,kBAAkB,GAAG;IACxB,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,QAAQ,EAAE,OAAO,CAAA;IACjB,WAAW,CAAC,EAAE,WAAW,CAAA;CAC1B,CAAA;AAED,eAAO,MAAM,aAAa,8BAA+B,kBAAkB,sBAoE1E,CAAA"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ColorScheme } from '../../../types/style.types';
|
|
3
|
-
type FreeTextInputAreaProps = {
|
|
4
|
-
onPress: () => void;
|
|
5
|
-
message: string;
|
|
6
|
-
disabled: boolean;
|
|
7
|
-
colorScheme?: ColorScheme;
|
|
8
|
-
};
|
|
9
|
-
export declare const FreeTextInputBlock: ({ onPress, message, disabled, colorScheme, }: FreeTextInputAreaProps) => React.JSX.Element;
|
|
10
|
-
export {};
|
|
11
|
-
//# sourceMappingURL=FreeTextInputBlock.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FreeTextInputBlock.d.ts","sourceRoot":"","sources":["../../../../../../../../src/features/chatbot/components/ChatInput/freeText/FreeTextInputBlock.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAIxD,KAAK,sBAAsB,GAAG;IAC5B,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,OAAO,EAAE,MAAM,CAAA;IACf,QAAQ,EAAE,OAAO,CAAA;IACjB,WAAW,CAAC,EAAE,WAAW,CAAA;CAC1B,CAAA;AAED,eAAO,MAAM,kBAAkB,iDAK5B,sBAAsB,sBAaxB,CAAA"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ColorScheme } from '@magmamath/students-features';
|
|
3
|
-
type HelpRequestOptionProps = {
|
|
4
|
-
onPress: () => void;
|
|
5
|
-
disabled: boolean;
|
|
6
|
-
colorScheme?: ColorScheme;
|
|
7
|
-
};
|
|
8
|
-
export declare const SendMessageButton: ({ onPress, disabled, colorScheme, }: HelpRequestOptionProps) => React.JSX.Element;
|
|
9
|
-
export {};
|
|
10
|
-
//# sourceMappingURL=SendMessageButton.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SendMessageButton.d.ts","sourceRoot":"","sources":["../../../../../../../../src/features/chatbot/components/ChatInput/freeText/SendMessageButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AASzB,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAA;AAG1D,KAAK,sBAAsB,GAAG;IAC5B,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,QAAQ,EAAE,OAAO,CAAA;IACjB,WAAW,CAAC,EAAE,WAAW,CAAA;CAC1B,CAAA;AAED,eAAO,MAAM,iBAAiB,wCAI3B,sBAAsB,sBAwDxB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Chat.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/chatbot/components/Chat/Chat.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiB,MAAM,OAAO,CAAA;AAIrC,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAKvD,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAA;AAEvD,KAAK,oBAAoB,GAAG;IAC1B,KAAK,EAAE,YAAY,CAAA;IACnB,cAAc,EAAE,OAAO,CAAA;IACvB,qBAAqB,EAAE,OAAO,CAAA;IAC9B,SAAS,EAAE,aAAa,CAAA;IACxB,WAAW,CAAC,EAAE,WAAW,CAAA;CAC1B,CAAA;AAQD,eAAO,MAAM,IAAI,8EAMd,oBAAoB,sBAyEtB,CAAA"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ChatInputAreaProps } from '../../types/units.types';
|
|
3
|
-
export declare const ChatInput: ({ onPressAlternative, hasMessages, isHintFeedback, inputMode, colorScheme, }: ChatInputAreaProps) => "" | React.JSX.Element | undefined;
|
|
4
|
-
//# sourceMappingURL=ChatInput.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ChatInput.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/chatbot/components/ChatInput/ChatInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwB,MAAM,OAAO,CAAA;AAK5C,OAAO,EAAE,kBAAkB,EAAiC,MAAM,yBAAyB,CAAA;AAS3F,eAAO,MAAM,SAAS,iFAMnB,kBAAkB,uCAmCpB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"InputOption.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/chatbot/components/ChatInput/InputOption.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AAIxD,eAAO,MAAM,WAAW,gDAAiD,cAAc,sBAYtF,CAAA"}
|
package/dist/typescript/module/features/chatbot/components/ChatInput/InputOptionWithTextArea.d.ts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ChatInputProps } from '../../types/units.types';
|
|
3
|
-
export declare const InputOptionWithTextArea: ({ message, disabled, onPress, colorScheme }: ChatInputProps) => React.JSX.Element;
|
|
4
|
-
//# sourceMappingURL=InputOptionWithTextArea.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"InputOptionWithTextArea.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/chatbot/components/ChatInput/InputOptionWithTextArea.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AAGxD,eAAO,MAAM,uBAAuB,gDAAiD,cAAc,sBAWlG,CAAA"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { SharedValue } from 'react-native-reanimated';
|
|
3
|
-
import { ColorScheme } from '@magmamath/students-features';
|
|
4
|
-
type HelpRequestOptionProps = {
|
|
5
|
-
onPress: () => void;
|
|
6
|
-
message: string;
|
|
7
|
-
disabled: boolean;
|
|
8
|
-
variant: OptionButtonVariant;
|
|
9
|
-
colorScheme?: ColorScheme;
|
|
10
|
-
visibleSv?: SharedValue<number>;
|
|
11
|
-
};
|
|
12
|
-
export declare enum OptionButtonVariant {
|
|
13
|
-
Default = "default",
|
|
14
|
-
Short = "short"
|
|
15
|
-
}
|
|
16
|
-
export declare const RequestHintButton: ({ onPress, message, disabled, colorScheme, variant, }: HelpRequestOptionProps) => React.JSX.Element;
|
|
17
|
-
export {};
|
|
18
|
-
//# sourceMappingURL=RequestHintButton.d.ts.map
|
package/dist/typescript/module/features/chatbot/components/ChatInput/RequestHintButton.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RequestHintButton.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/chatbot/components/ChatInput/RequestHintButton.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAiB,EAKf,WAAW,EACZ,MAAM,yBAAyB,CAAA;AAShC,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAA;AAI1D,KAAK,sBAAsB,GAAG;IAC5B,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,OAAO,EAAE,MAAM,CAAA;IACf,QAAQ,EAAE,OAAO,CAAA;IACjB,OAAO,EAAE,mBAAmB,CAAA;IAC5B,WAAW,CAAC,EAAE,WAAW,CAAA;IACzB,SAAS,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;CAChC,CAAA;AAED,oBAAY,mBAAmB;IAC7B,OAAO,YAAY;IACnB,KAAK,UAAU;CAChB;AAUD,eAAO,MAAM,iBAAiB,0DAM3B,sBAAsB,sBA8ExB,CAAA"}
|
package/dist/typescript/module/features/chatbot/components/ChatInput/freeText/ChatTextInput.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ColorScheme } from '@magmamath/students-features';
|
|
3
|
-
type ChatTextInputProps = {
|
|
4
|
-
onPress: () => void;
|
|
5
|
-
disabled: boolean;
|
|
6
|
-
colorScheme?: ColorScheme;
|
|
7
|
-
};
|
|
8
|
-
export declare const ChatTextInput: ({ disabled, colorScheme }: ChatTextInputProps) => React.JSX.Element;
|
|
9
|
-
export {};
|
|
10
|
-
//# sourceMappingURL=ChatTextInput.d.ts.map
|
package/dist/typescript/module/features/chatbot/components/ChatInput/freeText/ChatTextInput.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ChatTextInput.d.ts","sourceRoot":"","sources":["../../../../../../../../src/features/chatbot/components/ChatInput/freeText/ChatTextInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAOzB,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAA;AAU1D,KAAK,kBAAkB,GAAG;IACxB,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,QAAQ,EAAE,OAAO,CAAA;IACjB,WAAW,CAAC,EAAE,WAAW,CAAA;CAC1B,CAAA;AAED,eAAO,MAAM,aAAa,8BAA+B,kBAAkB,sBAoE1E,CAAA"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ColorScheme } from '../../../types/style.types';
|
|
3
|
-
type FreeTextInputAreaProps = {
|
|
4
|
-
onPress: () => void;
|
|
5
|
-
message: string;
|
|
6
|
-
disabled: boolean;
|
|
7
|
-
colorScheme?: ColorScheme;
|
|
8
|
-
};
|
|
9
|
-
export declare const FreeTextInputBlock: ({ onPress, message, disabled, colorScheme, }: FreeTextInputAreaProps) => React.JSX.Element;
|
|
10
|
-
export {};
|
|
11
|
-
//# sourceMappingURL=FreeTextInputBlock.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FreeTextInputBlock.d.ts","sourceRoot":"","sources":["../../../../../../../../src/features/chatbot/components/ChatInput/freeText/FreeTextInputBlock.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAIxD,KAAK,sBAAsB,GAAG;IAC5B,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,OAAO,EAAE,MAAM,CAAA;IACf,QAAQ,EAAE,OAAO,CAAA;IACjB,WAAW,CAAC,EAAE,WAAW,CAAA;CAC1B,CAAA;AAED,eAAO,MAAM,kBAAkB,iDAK5B,sBAAsB,sBAaxB,CAAA"}
|
package/dist/typescript/module/features/chatbot/components/ChatInput/freeText/SendMessageButton.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ColorScheme } from '@magmamath/students-features';
|
|
3
|
-
type HelpRequestOptionProps = {
|
|
4
|
-
onPress: () => void;
|
|
5
|
-
disabled: boolean;
|
|
6
|
-
colorScheme?: ColorScheme;
|
|
7
|
-
};
|
|
8
|
-
export declare const SendMessageButton: ({ onPress, disabled, colorScheme, }: HelpRequestOptionProps) => React.JSX.Element;
|
|
9
|
-
export {};
|
|
10
|
-
//# sourceMappingURL=SendMessageButton.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SendMessageButton.d.ts","sourceRoot":"","sources":["../../../../../../../../src/features/chatbot/components/ChatInput/freeText/SendMessageButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AASzB,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAA;AAG1D,KAAK,sBAAsB,GAAG;IAC5B,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,QAAQ,EAAE,OAAO,CAAA;IACjB,WAAW,CAAC,EAAE,WAAW,CAAA;CAC1B,CAAA;AAED,eAAO,MAAM,iBAAiB,wCAI3B,sBAAsB,sBAwDxB,CAAA"}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import React, { ComponentType } from 'react'
|
|
2
|
-
import { useStoreMap, useUnit } from 'effector-react'
|
|
3
|
-
|
|
4
|
-
import { useChatModel } from '../../context/ChatBotModelContext'
|
|
5
|
-
import { ColorScheme } from '../../types/style.types'
|
|
6
|
-
import { ChatInputAreaProps, ChatInputMode, ChatInputProps } from '../../types/units.types'
|
|
7
|
-
import { InputOption } from './InputOption'
|
|
8
|
-
import { InputOptionWithTextArea } from './InputOptionWithTextArea'
|
|
9
|
-
|
|
10
|
-
const chatInputVariant: Record<ChatInputMode, ComponentType<ChatInputProps>> = {
|
|
11
|
-
[ChatInputMode.Option]: InputOption,
|
|
12
|
-
[ChatInputMode.FreeText]: InputOptionWithTextArea,
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export const ChatInput = ({
|
|
16
|
-
onPressAlternative,
|
|
17
|
-
hasMessages,
|
|
18
|
-
isHintFeedback,
|
|
19
|
-
inputMode,
|
|
20
|
-
colorScheme = ColorScheme.Blue,
|
|
21
|
-
}: ChatInputAreaProps) => {
|
|
22
|
-
const model = useChatModel()
|
|
23
|
-
const isTranslated = useUnit(model.translation.$isTranslated)
|
|
24
|
-
const alternatives = useUnit(model.$alternatives)
|
|
25
|
-
const isTranslationPending = useUnit(model.translation.translateAllMessagesFx.pending)
|
|
26
|
-
const isHelpRequestPending = useUnit(model.sendHelpRequestFx.pending)
|
|
27
|
-
|
|
28
|
-
const lastMessageOptions = useStoreMap(model.$currentChatData, ({ messages }) => {
|
|
29
|
-
const lastMessage = messages.at(-1)
|
|
30
|
-
return lastMessage?.options ?? []
|
|
31
|
-
})
|
|
32
|
-
|
|
33
|
-
const availableOption = (() => {
|
|
34
|
-
if (hasMessages && lastMessageOptions.length) return lastMessageOptions[0]
|
|
35
|
-
if (isHintFeedback && alternatives?.options.hints) return alternatives?.options.hints[0]
|
|
36
|
-
return alternatives?.options.default[0] ?? null
|
|
37
|
-
})()
|
|
38
|
-
|
|
39
|
-
const buttonLabel =
|
|
40
|
-
(isTranslated && !isTranslationPending
|
|
41
|
-
? availableOption?.translatedText
|
|
42
|
-
: availableOption?.text) ?? ''
|
|
43
|
-
|
|
44
|
-
const Component = chatInputVariant[inputMode]
|
|
45
|
-
|
|
46
|
-
return (
|
|
47
|
-
availableOption?.text && (
|
|
48
|
-
<Component
|
|
49
|
-
message={buttonLabel}
|
|
50
|
-
onPress={() => onPressAlternative(availableOption.text, availableOption.translatedText)}
|
|
51
|
-
disabled={isHelpRequestPending || (hasMessages && lastMessageOptions.length === 0)}
|
|
52
|
-
colorScheme={colorScheme}
|
|
53
|
-
/>
|
|
54
|
-
)
|
|
55
|
-
)
|
|
56
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { StyleSheet, View } from 'react-native'
|
|
2
|
-
import React from 'react'
|
|
3
|
-
import { ChatInputProps } from '../../types/units.types'
|
|
4
|
-
import { OptionButtonVariant } from './RequestHintButton'
|
|
5
|
-
import { RequestHintButton } from './RequestHintButton'
|
|
6
|
-
|
|
7
|
-
export const InputOption = ({ message, onPress, colorScheme, disabled }: ChatInputProps) => {
|
|
8
|
-
return (
|
|
9
|
-
<View style={styles.container}>
|
|
10
|
-
<RequestHintButton
|
|
11
|
-
onPress={onPress}
|
|
12
|
-
message={message}
|
|
13
|
-
disabled={disabled}
|
|
14
|
-
colorScheme={colorScheme}
|
|
15
|
-
variant={OptionButtonVariant.Default}
|
|
16
|
-
/>
|
|
17
|
-
</View>
|
|
18
|
-
)
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
const styles = StyleSheet.create({
|
|
22
|
-
container: {
|
|
23
|
-
flex: 1,
|
|
24
|
-
width: 305,
|
|
25
|
-
alignItems: 'center',
|
|
26
|
-
justifyContent: 'center',
|
|
27
|
-
marginVertical: 8,
|
|
28
|
-
},
|
|
29
|
-
})
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { StyleSheet, View } from 'react-native'
|
|
2
|
-
import React from 'react'
|
|
3
|
-
import { ChatInputProps } from '../../types/units.types'
|
|
4
|
-
import { FreeTextInputBlock } from './freeText/FreeTextInputBlock'
|
|
5
|
-
|
|
6
|
-
export const InputOptionWithTextArea = ({ message, disabled, onPress, colorScheme }: ChatInputProps) => {
|
|
7
|
-
return (
|
|
8
|
-
<View style={styles.container}>
|
|
9
|
-
<FreeTextInputBlock
|
|
10
|
-
message={message}
|
|
11
|
-
onPress={onPress}
|
|
12
|
-
disabled={disabled}
|
|
13
|
-
colorScheme={colorScheme}
|
|
14
|
-
/>
|
|
15
|
-
</View>
|
|
16
|
-
)
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
const styles = StyleSheet.create({
|
|
20
|
-
container: {
|
|
21
|
-
flex: 1,
|
|
22
|
-
width: 305,
|
|
23
|
-
alignItems: 'center',
|
|
24
|
-
justifyContent: 'center',
|
|
25
|
-
marginVertical: 8,
|
|
26
|
-
},
|
|
27
|
-
})
|
|
@@ -1,160 +0,0 @@
|
|
|
1
|
-
import { Pressable, StyleSheet } from 'react-native'
|
|
2
|
-
import React from 'react'
|
|
3
|
-
import Animated, {
|
|
4
|
-
useSharedValue,
|
|
5
|
-
withTiming,
|
|
6
|
-
useAnimatedStyle,
|
|
7
|
-
interpolateColor,
|
|
8
|
-
SharedValue,
|
|
9
|
-
} from 'react-native-reanimated'
|
|
10
|
-
import {
|
|
11
|
-
ArrowRightIcon,
|
|
12
|
-
ArrowUpIcon,
|
|
13
|
-
COLORS,
|
|
14
|
-
FONT_FAMILY,
|
|
15
|
-
IS_MOBILE,
|
|
16
|
-
SPACING,
|
|
17
|
-
} from '@magmamath/react-native-ui'
|
|
18
|
-
import { ColorScheme } from '@magmamath/students-features'
|
|
19
|
-
import { MESSAGE_COLORS_MAP } from '../../constants'
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
type HelpRequestOptionProps = {
|
|
23
|
-
onPress: () => void
|
|
24
|
-
message: string
|
|
25
|
-
disabled: boolean
|
|
26
|
-
variant: OptionButtonVariant
|
|
27
|
-
colorScheme?: ColorScheme
|
|
28
|
-
visibleSv?: SharedValue<number>
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export enum OptionButtonVariant {
|
|
32
|
-
Default = 'default',
|
|
33
|
-
Short = 'short',
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
const REQUEST_HINT_BUTTON = {
|
|
37
|
-
[OptionButtonVariant.Default]: {
|
|
38
|
-
WIDTH: 305,
|
|
39
|
-
FONT_SIZE: 20,
|
|
40
|
-
},
|
|
41
|
-
[OptionButtonVariant.Short]: { WIDTH: 163, FONT_SIZE: 18 },
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
export const RequestHintButton = ({
|
|
45
|
-
onPress,
|
|
46
|
-
message,
|
|
47
|
-
disabled = false,
|
|
48
|
-
colorScheme = ColorScheme.Blue,
|
|
49
|
-
variant = OptionButtonVariant.Default,
|
|
50
|
-
}: HelpRequestOptionProps) => {
|
|
51
|
-
const hoverSv = useSharedValue(0)
|
|
52
|
-
|
|
53
|
-
const onHoverIn = () => {
|
|
54
|
-
if (!disabled) hoverSv.value = withTiming(1, { duration: 200 })
|
|
55
|
-
}
|
|
56
|
-
const onHoverOut = () => {
|
|
57
|
-
if (!disabled) hoverSv.value = withTiming(0, { duration: 200 })
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
const animatedTextContainerStyle = useAnimatedStyle(() => {
|
|
61
|
-
if (disabled) {
|
|
62
|
-
return {
|
|
63
|
-
backgroundColor: COLORS.NEUTRAL_2,
|
|
64
|
-
borderColor: COLORS.NEUTRAL_5,
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
const defaultBorderColor =
|
|
69
|
-
variant === OptionButtonVariant.Default
|
|
70
|
-
? COLORS.NEUTRAL_1
|
|
71
|
-
: MESSAGE_COLORS_MAP[colorScheme].sent.border
|
|
72
|
-
|
|
73
|
-
return {
|
|
74
|
-
backgroundColor: interpolateColor(
|
|
75
|
-
hoverSv.value,
|
|
76
|
-
[0, 1],
|
|
77
|
-
[COLORS.NEUTRAL_1, MESSAGE_COLORS_MAP[colorScheme].sent.background],
|
|
78
|
-
),
|
|
79
|
-
borderColor: interpolateColor(
|
|
80
|
-
hoverSv.value,
|
|
81
|
-
[0, 1],
|
|
82
|
-
[defaultBorderColor, MESSAGE_COLORS_MAP[colorScheme].sent.border],
|
|
83
|
-
),
|
|
84
|
-
}
|
|
85
|
-
}, [hoverSv, disabled, colorScheme])
|
|
86
|
-
|
|
87
|
-
const animatedTextStyle = useAnimatedStyle(() => {
|
|
88
|
-
if (disabled) return { color: COLORS.NEUTRAL_5 }
|
|
89
|
-
|
|
90
|
-
return { color: interpolateColor(hoverSv.value, [0, 1], [COLORS.NEUTRAL_10, COLORS.NEUTRAL_1]) }
|
|
91
|
-
}, [hoverSv, disabled])
|
|
92
|
-
|
|
93
|
-
return (
|
|
94
|
-
<Pressable
|
|
95
|
-
onHoverIn={onHoverIn}
|
|
96
|
-
onHoverOut={onHoverOut}
|
|
97
|
-
onPress={onPress}
|
|
98
|
-
style={[
|
|
99
|
-
styles.button,
|
|
100
|
-
{ cursor: disabled ? 'auto' : 'pointer', width: REQUEST_HINT_BUTTON[variant].WIDTH },
|
|
101
|
-
]}
|
|
102
|
-
disabled={disabled}
|
|
103
|
-
accessibilityState={{ disabled }}
|
|
104
|
-
accessibilityRole="button"
|
|
105
|
-
>
|
|
106
|
-
<Animated.View style={[styles.content, animatedTextContainerStyle]}>
|
|
107
|
-
<Animated.Text
|
|
108
|
-
numberOfLines={1}
|
|
109
|
-
style={[
|
|
110
|
-
styles.text,
|
|
111
|
-
animatedTextStyle,
|
|
112
|
-
{ fontSize: REQUEST_HINT_BUTTON[variant].FONT_SIZE },
|
|
113
|
-
]}
|
|
114
|
-
>
|
|
115
|
-
{message}
|
|
116
|
-
</Animated.Text>
|
|
117
|
-
|
|
118
|
-
<Animated.Text style={[styles.icon, animatedTextStyle]}>
|
|
119
|
-
{variant === OptionButtonVariant.Default ? (
|
|
120
|
-
<ArrowRightIcon color={disabled ? COLORS.NEUTRAL_5 : 'currentColor'} size={16} />
|
|
121
|
-
) : (
|
|
122
|
-
<ArrowUpIcon color={disabled ? COLORS.NEUTRAL_5 : 'currentColor'} size={16} />
|
|
123
|
-
)}
|
|
124
|
-
</Animated.Text>
|
|
125
|
-
</Animated.View>
|
|
126
|
-
</Pressable>
|
|
127
|
-
)
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
const styles = StyleSheet.create({
|
|
131
|
-
button: {
|
|
132
|
-
flexDirection: 'row',
|
|
133
|
-
justifyContent: 'flex-end',
|
|
134
|
-
},
|
|
135
|
-
text: {
|
|
136
|
-
fontWeight: '400',
|
|
137
|
-
fontFamily: FONT_FAMILY.buenosAires,
|
|
138
|
-
color: COLORS.NEUTRAL_10,
|
|
139
|
-
},
|
|
140
|
-
content: {
|
|
141
|
-
flex: 1,
|
|
142
|
-
flexDirection: 'row',
|
|
143
|
-
alignItems: 'center',
|
|
144
|
-
justifyContent: 'space-between',
|
|
145
|
-
paddingHorizontal: SPACING[400],
|
|
146
|
-
paddingVertical: SPACING[200],
|
|
147
|
-
borderWidth: 1,
|
|
148
|
-
borderRadius: 48,
|
|
149
|
-
elevation: 3,
|
|
150
|
-
shadowColor: '#333',
|
|
151
|
-
shadowOffset: { width: 0, height: 1 },
|
|
152
|
-
shadowOpacity: 0.25,
|
|
153
|
-
shadowRadius: 3,
|
|
154
|
-
backgroundColor: COLORS.PRIMARY_BLUE,
|
|
155
|
-
borderColor: COLORS.PRIMARY_BLUE,
|
|
156
|
-
},
|
|
157
|
-
icon: {
|
|
158
|
-
top: IS_MOBILE ? 3 : 0,
|
|
159
|
-
},
|
|
160
|
-
})
|