@magmamath/students-features 0.3.2 → 0.4.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commonjs/features/chatbot/components/ChatControls/ChatControls.js +12 -4
- package/dist/commonjs/features/chatbot/components/ChatControls/ChatControls.js.map +1 -1
- package/dist/commonjs/features/chatbot/components/ChatMessage/ChatMessage.js.map +1 -1
- package/dist/commonjs/features/chatbot/components/ChatMessage/ReceivedMessage.js +6 -4
- package/dist/commonjs/features/chatbot/components/ChatMessage/ReceivedMessage.js.map +1 -1
- package/dist/commonjs/features/chatbot/components/ChatMessages/ChatbotMessages.js +12 -1
- package/dist/commonjs/features/chatbot/components/ChatMessages/ChatbotMessages.js.map +1 -1
- package/dist/commonjs/features/chatbot/components/Chatbot.js +5 -1
- package/dist/commonjs/features/chatbot/components/Chatbot.js.map +1 -1
- package/dist/commonjs/features/chatbot/context/ChatBotContext.js +17 -0
- package/dist/commonjs/features/chatbot/context/ChatBotContext.js.map +1 -0
- package/dist/commonjs/features/chatbot/errorSpotting/ErrorSpottingButton.js +58 -0
- package/dist/commonjs/features/chatbot/errorSpotting/ErrorSpottingButton.js.map +1 -0
- package/dist/commonjs/features/chatbot/errorSpotting/ErrorSpottingModel.js +99 -0
- package/dist/commonjs/features/chatbot/errorSpotting/ErrorSpottingModel.js.map +1 -0
- 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 +136 -117
- package/dist/commonjs/features/chatbot/model/ChatBotModel.js.map +1 -1
- package/dist/commonjs/features/chatbot/model/{ChatBotMessageHandler.js → ChatBotThreadManager.js} +28 -17
- package/dist/commonjs/features/chatbot/model/ChatBotThreadManager.js.map +1 -0
- package/dist/commonjs/features/chatbot/model/{api.js → ChatbotApi.js} +16 -1
- package/dist/commonjs/features/chatbot/model/ChatbotApi.js.map +1 -0
- package/dist/commonjs/features/chatbot/model/ChatsCacheModel.js +110 -0
- package/dist/commonjs/features/chatbot/model/ChatsCacheModel.js.map +1 -0
- package/dist/commonjs/features/chatbot/model/DefaultMessageCreator.js +0 -1
- package/dist/commonjs/features/chatbot/model/DefaultMessageCreator.js.map +1 -1
- package/dist/commonjs/features/chatbot/model/ThreadItem.js +21 -8
- package/dist/commonjs/features/chatbot/model/ThreadItem.js.map +1 -1
- package/dist/commonjs/features/chatbot/model/messagesHelper.js +1 -5
- package/dist/commonjs/features/chatbot/model/messagesHelper.js.map +1 -1
- package/dist/commonjs/features/chatbot/model/t2s.js +0 -6
- package/dist/commonjs/features/chatbot/model/t2s.js.map +1 -1
- package/dist/commonjs/features/chatbot/model/translation.helpers.js.map +1 -1
- package/dist/commonjs/features/chatbot/model/translation.js +54 -45
- package/dist/commonjs/features/chatbot/model/translation.js.map +1 -1
- package/dist/commonjs/features/chatbot/types/api.types.js +4 -0
- package/dist/commonjs/features/chatbot/types/model.types.js.map +1 -1
- package/dist/commonjs/features/chatbot/types/units.types.js +2 -0
- package/dist/commonjs/features/chatbot/types/units.types.js.map +1 -0
- package/dist/commonjs/features/feedback/components/TeacherFeedbackButton/colorSchemes.js +18 -9
- package/dist/commonjs/features/feedback/components/TeacherFeedbackButton/colorSchemes.js.map +1 -1
- package/dist/commonjs/lib/effector/createEntityFieldStore.js +4 -0
- package/dist/commonjs/lib/effector/createEntityFieldStore.js.map +1 -1
- package/dist/commonjs/lib/helpers/randomElements.js +24 -0
- package/dist/commonjs/lib/helpers/randomElements.js.map +1 -0
- package/dist/commonjs/shared/icons/HighlighterIcon.js +36 -0
- package/dist/commonjs/shared/icons/HighlighterIcon.js.map +1 -0
- package/dist/commonjs/shared/icons/StopIcon.js +33 -0
- package/dist/commonjs/shared/icons/StopIcon.js.map +1 -0
- package/dist/commonjs/shared/icons/icon.types.js +4 -0
- package/dist/module/features/chatbot/components/ChatControls/ChatControls.js +12 -4
- package/dist/module/features/chatbot/components/ChatControls/ChatControls.js.map +1 -1
- package/dist/module/features/chatbot/components/ChatMessage/ChatMessage.js.map +1 -1
- package/dist/module/features/chatbot/components/ChatMessage/ReceivedMessage.js +6 -4
- package/dist/module/features/chatbot/components/ChatMessage/ReceivedMessage.js.map +1 -1
- package/dist/module/features/chatbot/components/ChatMessages/ChatbotMessages.js +12 -1
- package/dist/module/features/chatbot/components/ChatMessages/ChatbotMessages.js.map +1 -1
- package/dist/module/features/chatbot/components/Chatbot.js +6 -2
- package/dist/module/features/chatbot/components/Chatbot.js.map +1 -1
- package/dist/module/features/chatbot/context/ChatBotContext.js +12 -0
- package/dist/module/features/chatbot/context/ChatBotContext.js.map +1 -0
- package/dist/module/features/chatbot/errorSpotting/ErrorSpottingButton.js +52 -0
- package/dist/module/features/chatbot/errorSpotting/ErrorSpottingButton.js.map +1 -0
- package/dist/module/features/chatbot/errorSpotting/ErrorSpottingModel.js +94 -0
- package/dist/module/features/chatbot/errorSpotting/ErrorSpottingModel.js.map +1 -0
- 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 +138 -119
- package/dist/module/features/chatbot/model/ChatBotModel.js.map +1 -1
- package/dist/module/features/chatbot/model/{ChatBotMessageHandler.js → ChatBotThreadManager.js} +26 -15
- package/dist/module/features/chatbot/model/ChatBotThreadManager.js.map +1 -0
- package/dist/module/features/chatbot/model/{api.js → ChatbotApi.js} +16 -1
- package/dist/module/features/chatbot/model/ChatbotApi.js.map +1 -0
- package/dist/module/features/chatbot/model/ChatsCacheModel.js +104 -0
- package/dist/module/features/chatbot/model/ChatsCacheModel.js.map +1 -0
- package/dist/module/features/chatbot/model/DefaultMessageCreator.js +0 -1
- package/dist/module/features/chatbot/model/DefaultMessageCreator.js.map +1 -1
- package/dist/module/features/chatbot/model/ThreadItem.js +21 -8
- package/dist/module/features/chatbot/model/ThreadItem.js.map +1 -1
- package/dist/module/features/chatbot/model/messagesHelper.js +1 -5
- package/dist/module/features/chatbot/model/messagesHelper.js.map +1 -1
- package/dist/module/features/chatbot/model/t2s.js +1 -7
- package/dist/module/features/chatbot/model/t2s.js.map +1 -1
- package/dist/module/features/chatbot/model/translation.helpers.js.map +1 -1
- package/dist/module/features/chatbot/model/translation.js +54 -45
- package/dist/module/features/chatbot/model/translation.js.map +1 -1
- package/dist/module/features/chatbot/types/api.types.js +2 -0
- package/dist/module/features/chatbot/types/model.types.js.map +1 -1
- package/dist/module/features/chatbot/types/units.types.js +2 -0
- package/dist/module/features/chatbot/types/units.types.js.map +1 -0
- package/dist/module/features/feedback/components/TeacherFeedbackButton/colorSchemes.js +18 -9
- package/dist/module/features/feedback/components/TeacherFeedbackButton/colorSchemes.js.map +1 -1
- package/dist/module/lib/effector/createEntityFieldStore.js +4 -0
- package/dist/module/lib/effector/createEntityFieldStore.js.map +1 -1
- package/dist/module/lib/helpers/randomElements.js +20 -0
- package/dist/module/lib/helpers/randomElements.js.map +1 -0
- package/dist/module/shared/icons/HighlighterIcon.js +29 -0
- package/dist/module/shared/icons/HighlighterIcon.js.map +1 -0
- package/dist/module/shared/icons/StopIcon.js +26 -0
- package/dist/module/shared/icons/StopIcon.js.map +1 -0
- package/dist/module/shared/icons/icon.types.js +2 -0
- package/dist/typescript/commonjs/features/chatbot/components/ChatControls/ChatControls.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/ChatMessage.d.ts +1 -0
- package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/ChatMessage.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/ReceivedMessage.d.ts +1 -1
- package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/ReceivedMessage.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/components/ChatMessages/ChatbotMessages.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/components/Chatbot.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/context/ChatBotContext.d.ts +8 -0
- package/dist/typescript/commonjs/features/chatbot/context/ChatBotContext.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/chatbot/errorSpotting/ErrorSpottingButton.d.ts +3 -0
- package/dist/typescript/commonjs/features/chatbot/errorSpotting/ErrorSpottingButton.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/chatbot/errorSpotting/ErrorSpottingModel.d.ts +28 -0
- package/dist/typescript/commonjs/features/chatbot/errorSpotting/ErrorSpottingModel.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/chatbot/index.d.ts +4 -3
- package/dist/typescript/commonjs/features/chatbot/index.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/model/ChatBotModel.d.ts +19 -14
- package/dist/typescript/commonjs/features/chatbot/model/ChatBotModel.d.ts.map +1 -1
- package/dist/typescript/{module/features/chatbot/model/ChatBotMessageHandler.d.ts → commonjs/features/chatbot/model/ChatBotThreadManager.d.ts} +11 -8
- package/dist/typescript/commonjs/features/chatbot/model/ChatBotThreadManager.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/chatbot/model/{api.d.ts → ChatbotApi.d.ts} +4 -3
- package/dist/typescript/commonjs/features/chatbot/model/ChatbotApi.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/chatbot/model/ChatsCacheModel.d.ts +26 -0
- package/dist/typescript/commonjs/features/chatbot/model/ChatsCacheModel.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/chatbot/model/DefaultMessageCreator.d.ts +3 -2
- package/dist/typescript/commonjs/features/chatbot/model/DefaultMessageCreator.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/model/ThreadItem.d.ts +12 -6
- package/dist/typescript/commonjs/features/chatbot/model/ThreadItem.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/model/messagesHelper.d.ts +3 -4
- package/dist/typescript/commonjs/features/chatbot/model/messagesHelper.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/model/t2s.d.ts +2 -4
- package/dist/typescript/commonjs/features/chatbot/model/t2s.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/model/translation.d.ts +7 -8
- package/dist/typescript/commonjs/features/chatbot/model/translation.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/model/translation.helpers.d.ts +2 -1
- package/dist/typescript/commonjs/features/chatbot/model/translation.helpers.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/types/api.types.d.ts +2 -11
- 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 +26 -19
- package/dist/typescript/commonjs/features/chatbot/types/model.types.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/types/translation.types.d.ts +2 -1
- package/dist/typescript/commonjs/features/chatbot/types/translation.types.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/types/units.types.d.ts +31 -0
- package/dist/typescript/commonjs/features/chatbot/types/units.types.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/feedback/components/TeacherFeedbackButton/colorSchemes.d.ts.map +1 -1
- package/dist/typescript/commonjs/lib/effector/createEntityFieldStore.d.ts +2 -0
- package/dist/typescript/commonjs/lib/effector/createEntityFieldStore.d.ts.map +1 -1
- package/dist/typescript/commonjs/lib/helpers/randomElements.d.ts +2 -0
- package/dist/typescript/commonjs/lib/helpers/randomElements.d.ts.map +1 -0
- package/dist/typescript/commonjs/shared/icons/HighlighterIcon.d.ts +4 -0
- package/dist/typescript/commonjs/shared/icons/HighlighterIcon.d.ts.map +1 -0
- package/dist/typescript/commonjs/shared/icons/StopIcon.d.ts +4 -0
- package/dist/typescript/commonjs/shared/icons/StopIcon.d.ts.map +1 -0
- package/dist/typescript/commonjs/shared/icons/icon.types.d.ts +2 -0
- package/dist/typescript/commonjs/shared/icons/icon.types.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/components/ChatControls/ChatControls.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/components/ChatMessage/ChatMessage.d.ts +1 -0
- package/dist/typescript/module/features/chatbot/components/ChatMessage/ChatMessage.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/components/ChatMessage/ReceivedMessage.d.ts +1 -1
- package/dist/typescript/module/features/chatbot/components/ChatMessage/ReceivedMessage.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/components/ChatMessages/ChatbotMessages.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/components/Chatbot.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/context/ChatBotContext.d.ts +8 -0
- package/dist/typescript/module/features/chatbot/context/ChatBotContext.d.ts.map +1 -0
- package/dist/typescript/module/features/chatbot/errorSpotting/ErrorSpottingButton.d.ts +3 -0
- package/dist/typescript/module/features/chatbot/errorSpotting/ErrorSpottingButton.d.ts.map +1 -0
- package/dist/typescript/module/features/chatbot/errorSpotting/ErrorSpottingModel.d.ts +28 -0
- package/dist/typescript/module/features/chatbot/errorSpotting/ErrorSpottingModel.d.ts.map +1 -0
- package/dist/typescript/module/features/chatbot/index.d.ts +4 -3
- package/dist/typescript/module/features/chatbot/index.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/model/ChatBotModel.d.ts +19 -14
- package/dist/typescript/module/features/chatbot/model/ChatBotModel.d.ts.map +1 -1
- package/dist/typescript/{commonjs/features/chatbot/model/ChatBotMessageHandler.d.ts → module/features/chatbot/model/ChatBotThreadManager.d.ts} +11 -8
- package/dist/typescript/module/features/chatbot/model/ChatBotThreadManager.d.ts.map +1 -0
- package/dist/typescript/module/features/chatbot/model/{api.d.ts → ChatbotApi.d.ts} +4 -3
- package/dist/typescript/module/features/chatbot/model/ChatbotApi.d.ts.map +1 -0
- package/dist/typescript/module/features/chatbot/model/ChatsCacheModel.d.ts +26 -0
- package/dist/typescript/module/features/chatbot/model/ChatsCacheModel.d.ts.map +1 -0
- package/dist/typescript/module/features/chatbot/model/DefaultMessageCreator.d.ts +3 -2
- package/dist/typescript/module/features/chatbot/model/DefaultMessageCreator.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/model/ThreadItem.d.ts +12 -6
- package/dist/typescript/module/features/chatbot/model/ThreadItem.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/model/messagesHelper.d.ts +3 -4
- package/dist/typescript/module/features/chatbot/model/messagesHelper.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/model/t2s.d.ts +2 -4
- package/dist/typescript/module/features/chatbot/model/t2s.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/model/translation.d.ts +7 -8
- package/dist/typescript/module/features/chatbot/model/translation.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/model/translation.helpers.d.ts +2 -1
- package/dist/typescript/module/features/chatbot/model/translation.helpers.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/types/api.types.d.ts +2 -11
- 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 +26 -19
- package/dist/typescript/module/features/chatbot/types/model.types.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/types/translation.types.d.ts +2 -1
- package/dist/typescript/module/features/chatbot/types/translation.types.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/types/units.types.d.ts +31 -0
- package/dist/typescript/module/features/chatbot/types/units.types.d.ts.map +1 -0
- package/dist/typescript/module/features/feedback/components/TeacherFeedbackButton/colorSchemes.d.ts.map +1 -1
- package/dist/typescript/module/lib/effector/createEntityFieldStore.d.ts +2 -0
- package/dist/typescript/module/lib/effector/createEntityFieldStore.d.ts.map +1 -1
- package/dist/typescript/module/lib/helpers/randomElements.d.ts +2 -0
- package/dist/typescript/module/lib/helpers/randomElements.d.ts.map +1 -0
- package/dist/typescript/module/shared/icons/HighlighterIcon.d.ts +4 -0
- package/dist/typescript/module/shared/icons/HighlighterIcon.d.ts.map +1 -0
- package/dist/typescript/module/shared/icons/StopIcon.d.ts +4 -0
- package/dist/typescript/module/shared/icons/StopIcon.d.ts.map +1 -0
- package/dist/typescript/module/shared/icons/icon.types.d.ts +2 -0
- package/dist/typescript/module/shared/icons/icon.types.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/features/chatbot/components/ChatControls/ChatControls.tsx +10 -3
- package/src/features/chatbot/components/ChatMessage/ChatMessage.tsx +1 -0
- package/src/features/chatbot/components/ChatMessage/ReceivedMessage.tsx +3 -0
- package/src/features/chatbot/components/ChatMessages/ChatbotMessages.tsx +14 -0
- package/src/features/chatbot/components/Chatbot.tsx +3 -2
- package/src/features/chatbot/context/ChatBotContext.ts +18 -0
- package/src/features/chatbot/errorSpotting/ErrorSpottingButton.tsx +53 -0
- package/src/features/chatbot/errorSpotting/ErrorSpottingModel.ts +116 -0
- package/src/features/chatbot/index.ts +3 -3
- package/src/features/chatbot/model/ChatBotModel.ts +123 -124
- package/src/features/chatbot/model/{ChatBotMessageHandler.ts → ChatBotThreadManager.ts} +28 -16
- package/src/features/chatbot/model/{api.ts → ChatbotApi.ts} +19 -2
- package/src/features/chatbot/model/ChatsCacheModel.ts +94 -0
- package/src/features/chatbot/model/DefaultMessageCreator.ts +3 -3
- package/src/features/chatbot/model/ThreadItem.ts +20 -9
- package/src/features/chatbot/model/messagesHelper.ts +2 -6
- package/src/features/chatbot/model/t2s.ts +3 -10
- package/src/features/chatbot/model/translation.helpers.ts +2 -1
- package/src/features/chatbot/model/translation.ts +52 -46
- package/src/features/chatbot/types/api.types.ts +2 -12
- package/src/features/chatbot/types/model.types.ts +38 -26
- package/src/features/chatbot/types/translation.types.ts +2 -1
- package/src/features/chatbot/types/units.types.ts +34 -0
- package/src/features/feedback/components/TeacherFeedbackButton/colorSchemes.ts +9 -0
- package/src/lib/effector/createEntityFieldStore.ts +9 -1
- package/src/lib/helpers/randomElements.ts +22 -0
- package/src/shared/icons/HighlighterIcon.tsx +21 -0
- package/src/shared/icons/StopIcon.tsx +17 -0
- package/src/shared/icons/icon.types.ts +9 -6
- package/dist/commonjs/features/chatbot/model/ChatBotMessageHandler.js.map +0 -1
- package/dist/commonjs/features/chatbot/model/api.js.map +0 -1
- package/dist/module/features/chatbot/model/ChatBotMessageHandler.js.map +0 -1
- package/dist/module/features/chatbot/model/api.js.map +0 -1
- package/dist/typescript/commonjs/features/chatbot/model/ChatBotMessageHandler.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/chatbot/model/api.d.ts.map +0 -1
- package/dist/typescript/module/features/chatbot/model/ChatBotMessageHandler.d.ts.map +0 -1
- package/dist/typescript/module/features/chatbot/model/api.d.ts.map +0 -1
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.HighlighterIcon = HighlighterIcon;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _reactNativeSvg = _interopRequireWildcard(require("react-native-svg"));
|
|
9
|
+
var _reactNativeUi = require("@magmamath/react-native-ui");
|
|
10
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
|
+
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); }
|
|
12
|
+
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; }
|
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
|
+
function HighlighterIcon({
|
|
15
|
+
size = 17,
|
|
16
|
+
color = _reactNativeUi.COLORS.NEUTRAL_9,
|
|
17
|
+
style
|
|
18
|
+
}) {
|
|
19
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNativeSvg.default, {
|
|
20
|
+
style: style,
|
|
21
|
+
width: size,
|
|
22
|
+
height: size,
|
|
23
|
+
viewBox: "0 0 17 17",
|
|
24
|
+
fill: "none",
|
|
25
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Path, {
|
|
26
|
+
d: "M6.02 1.557a.596.596 0 011.108 0l.42 1.067c.06.153.182.275.336.335l1.066.42a.596.596 0 010 1.109l-1.066.42a.596.596 0 00-.336.336l-.42 1.066a.596.596 0 01-1.109 0L5.6 5.244a.596.596 0 00-.336-.336l-1.066-.42a.596.596 0 010-1.108l1.066-.42a.596.596 0 00.336-.336l.42-1.067z",
|
|
27
|
+
fill: color
|
|
28
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Path, {
|
|
29
|
+
fillRule: "evenodd",
|
|
30
|
+
clipRule: "evenodd",
|
|
31
|
+
d: "M8.843 3.338l-.974.73-2.11 1.583.26.66a.596.596 0 001.109 0l.42-1.067a.596.596 0 01.336-.336l1.066-.42a.596.596 0 000-1.108l-.107-.042zm.67-.502c.497.346.665.964.506 1.495l.476-.357 2.868 2.868-3.636 4.849-4.08-4.08.38-.286a1.316 1.316 0 01-.705-.74l-.185-.468-.898.674a.95.95 0 00-.33 1.065 1.75 1.75 0 00-.2.53l-.602 3.016-1.752 1.752a.95.95 0 00.297 1.545l1.83.784a1.35 1.35 0 001.487-.286l.966-.966 3.016-.604c.187-.037.366-.105.53-.199a.95.95 0 001.065-.33l5.445-7.26a2.25 2.25 0 00-.209-2.94L14.44 1.554a2.25 2.25 0 00-2.941-.209l-1.986 1.49zm3.866-.22a.75.75 0 00-.98-.07l-.692.519 2.565 2.565.52-.692a.75.75 0 00-.07-.98l-1.343-1.342zM3.797 12.832l-.807.808.99.425.525-.525-.708-.707zm2.015-.107l2.357-.47-3.086-3.087-.471 2.357 1.2 1.2z",
|
|
32
|
+
fill: color
|
|
33
|
+
})]
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=HighlighterIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNativeSvg","_interopRequireWildcard","_reactNativeUi","_jsxRuntime","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","HighlighterIcon","size","color","COLORS","NEUTRAL_9","style","jsxs","width","height","viewBox","fill","children","jsx","Path","d","fillRule","clipRule"],"sourceRoot":"../../../../src","sources":["shared/icons/HighlighterIcon.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,eAAA,GAAAC,uBAAA,CAAAF,OAAA;AAEA,IAAAG,cAAA,GAAAH,OAAA;AAAmD,IAAAI,WAAA,GAAAJ,OAAA;AAAA,SAAAK,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,SAAAJ,wBAAAI,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,C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,CACb,CAAC;EAAA,CACC,CAAC;AAEV","ignoreList":[]}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.StopIcon = StopIcon;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _reactNativeSvg = _interopRequireWildcard(require("react-native-svg"));
|
|
9
|
+
var _reactNativeUi = require("@magmamath/react-native-ui");
|
|
10
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
|
+
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); }
|
|
12
|
+
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; }
|
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
|
+
function StopIcon({
|
|
15
|
+
size = 17,
|
|
16
|
+
color = _reactNativeUi.COLORS.NEUTRAL_9,
|
|
17
|
+
style
|
|
18
|
+
}) {
|
|
19
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.default, {
|
|
20
|
+
width: size,
|
|
21
|
+
height: size,
|
|
22
|
+
viewBox: "0 0 17 17",
|
|
23
|
+
fill: "none",
|
|
24
|
+
style: style,
|
|
25
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Path, {
|
|
26
|
+
fillRule: "evenodd",
|
|
27
|
+
clipRule: "evenodd",
|
|
28
|
+
d: "M1.759 2.996c0-.967.784-1.752 1.752-1.752h10.496c.967 0 1.752.785 1.752 1.752v10.496c0 .968-.785 1.752-1.752 1.752H3.51a1.752 1.752 0 01-1.752-1.752V2.996z",
|
|
29
|
+
fill: color
|
|
30
|
+
})
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=StopIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNativeSvg","_interopRequireWildcard","_reactNativeUi","_jsxRuntime","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","StopIcon","size","color","COLORS","NEUTRAL_9","style","jsx","width","height","viewBox","fill","children","Path","fillRule","clipRule","d"],"sourceRoot":"../../../../src","sources":["shared/icons/StopIcon.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,eAAA,GAAAC,uBAAA,CAAAF,OAAA;AAEA,IAAAG,cAAA,GAAAH,OAAA;AAAmD,IAAAI,WAAA,GAAAJ,OAAA;AAAA,SAAAK,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,SAAAJ,wBAAAI,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,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EAAER;IAAM,CACb;EAAC,CACC,CAAC;AAEV","ignoreList":[]}
|
|
@@ -46,18 +46,26 @@ export const ChatControls = ({
|
|
|
46
46
|
},
|
|
47
47
|
variant: ButtonVariant.PRIMARY,
|
|
48
48
|
size: ButtonSize.LARGE,
|
|
49
|
-
colorScheme: ButtonColor.
|
|
49
|
+
colorScheme: ButtonColor.WHITE,
|
|
50
50
|
raiseLevel: 5,
|
|
51
51
|
customColorScheme: {
|
|
52
52
|
[ButtonStates.DEFAULT]: {
|
|
53
|
-
backgroundColor:
|
|
53
|
+
backgroundColor: COLORS.NEUTRAL_1,
|
|
54
54
|
borderColor: COLORS.NEUTRAL_5,
|
|
55
|
-
raiseColor: COLORS.NEUTRAL_5
|
|
55
|
+
raiseColor: COLORS.NEUTRAL_5,
|
|
56
|
+
color: COLORS.NEUTRAL_10
|
|
56
57
|
},
|
|
57
58
|
[ButtonStates.PRESSED]: {
|
|
58
59
|
backgroundColor: COLORS.NEUTRAL_4,
|
|
59
60
|
borderColor: COLORS.NEUTRAL_5,
|
|
60
|
-
raiseColor: COLORS.NEUTRAL_5
|
|
61
|
+
raiseColor: COLORS.NEUTRAL_5,
|
|
62
|
+
color: COLORS.NEUTRAL_1
|
|
63
|
+
},
|
|
64
|
+
[ButtonStates.HOVER]: {
|
|
65
|
+
backgroundColor: COLORS.NEUTRAL_3,
|
|
66
|
+
borderColor: COLORS.NEUTRAL_5,
|
|
67
|
+
raiseColor: COLORS.NEUTRAL_5,
|
|
68
|
+
color: COLORS.NEUTRAL_10
|
|
61
69
|
}
|
|
62
70
|
},
|
|
63
71
|
children: /*#__PURE__*/_jsx(CloseIcon, {})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","ActivityIndicator","Pressable","StyleSheet","View","Button","ButtonColor","ButtonSize","ButtonStates","ButtonVariant","COLORS","useUnit","ChatbotIcon","GlobeIcon","CloseIcon","jsx","_jsx","jsxs","_jsxs","ChatControls","model","onPressTranslate","onPressChatIcon","onPressClose","isTranslationEnabled","ButtonWrapper","iconSize","width","height","isOpen","$isOpen","isTranslated","translation","$isTranslated","isTranslationPending","translateAllMessagesFx","pending","isHelpRequestPending","sendHelpRequestFx","backgroundColor","PRIMARY_BLUE","NEUTRAL_1","translatedFillColor","NEUTRAL_9","fillColor","NEUTRAL_5","style","styles","container","children","onPress","disabled","buttonTranslate","color","button","buttonClose","variant","PRIMARY","size","LARGE","colorScheme","
|
|
1
|
+
{"version":3,"names":["React","ActivityIndicator","Pressable","StyleSheet","View","Button","ButtonColor","ButtonSize","ButtonStates","ButtonVariant","COLORS","useUnit","ChatbotIcon","GlobeIcon","CloseIcon","jsx","_jsx","jsxs","_jsxs","ChatControls","model","onPressTranslate","onPressChatIcon","onPressClose","isTranslationEnabled","ButtonWrapper","iconSize","width","height","isOpen","$isOpen","isTranslated","translation","$isTranslated","isTranslationPending","translateAllMessagesFx","pending","isHelpRequestPending","sendHelpRequestFx","backgroundColor","PRIMARY_BLUE","NEUTRAL_1","translatedFillColor","NEUTRAL_9","fillColor","NEUTRAL_5","style","styles","container","children","onPress","disabled","buttonTranslate","color","button","buttonClose","variant","PRIMARY","size","LARGE","colorScheme","WHITE","raiseLevel","customColorScheme","DEFAULT","borderColor","raiseColor","NEUTRAL_10","PRESSED","NEUTRAL_4","HOVER","NEUTRAL_3","create","alignItems","justifyContent","flexDirection","maxHeight","gap","paddingBottom","borderRadius","paddingHorizontal","borderWidth","shadowColor","shadowOffset","shadowOpacity","shadowRadius","elevation"],"sourceRoot":"../../../../../../src","sources":["features/chatbot/components/ChatControls/ChatControls.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAASC,iBAAiB,EAAEC,SAAS,EAAEC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAC7E,SACEC,MAAM,EACNC,WAAW,EACXC,UAAU,EACVC,YAAY,EACZC,aAAa,EACbC,MAAM,QACD,4BAA4B;AACnC,SAASC,OAAO,QAAQ,gBAAgB;AAExC,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ceivedMessage","SentMessage","MessageVariant","jsx","_jsx","variantsMap","SENT","RECEIVED","ChatMessage","variant","props","Component"],"sourceRoot":"../../../../../../src","sources":["features/chatbot/components/ChatMessage/ChatMessage.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAoC,OAAO;AACvD,SAASC,eAAe,QAAQ,sBAAmB;AACnD,SAASC,WAAW,QAAQ,kBAAe;AAE3C,SAASC,cAAc,QAAyB,4BAAyB;AAAA,SAAAC,GAAA,IAAAC,IAAA;
|
|
1
|
+
{"version":3,"names":["React","ReceivedMessage","SentMessage","MessageVariant","jsx","_jsx","variantsMap","SENT","RECEIVED","ChatMessage","variant","props","Component"],"sourceRoot":"../../../../../../src","sources":["features/chatbot/components/ChatMessage/ChatMessage.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAoC,OAAO;AACvD,SAASC,eAAe,QAAQ,sBAAmB;AACnD,SAASC,WAAW,QAAQ,kBAAe;AAE3C,SAASC,cAAc,QAAyB,4BAAyB;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAgBzE,MAAMC,WAAgE,GAAG;EACvE,CAACH,cAAc,CAACI,IAAI,GAAGL,WAAW;EAClC,CAACC,cAAc,CAACK,QAAQ,GAAGP;AAC7B,CAAC;AAED,OAAO,MAAMQ,WAAW,GAAGA,CAAC;EAAEC,OAAO;EAAE,GAAGC;AAAwB,CAAC,KAAK;EACtE,MAAMC,SAAS,GAAGN,WAAW,CAACI,OAAO,CAAC;EACtC,oBAAOL,IAAA,CAACO,SAAS;IAAA,GAAKD;EAAK,CAAG,CAAC;AACjC,CAAC","ignoreList":[]}
|
|
@@ -5,6 +5,7 @@ import { StyleSheet, Text, View } from 'react-native';
|
|
|
5
5
|
import { ChatbotIcon } from "../../../../shared/icons/ChatbotIcon.js";
|
|
6
6
|
import { MessageTextToSpeech } from "./MessageTextToSpeech.js";
|
|
7
7
|
import { MessageVariant } from "../../types/model.types.js";
|
|
8
|
+
import { ErrorSpottingButton } from "../../errorSpotting/ErrorSpottingButton.js";
|
|
8
9
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
10
|
export const ReceivedMessage = ({
|
|
10
11
|
message,
|
|
@@ -13,7 +14,8 @@ export const ReceivedMessage = ({
|
|
|
13
14
|
isActive,
|
|
14
15
|
audioStatus,
|
|
15
16
|
renderer,
|
|
16
|
-
withTextToSpeech = true
|
|
17
|
+
withTextToSpeech = true,
|
|
18
|
+
withErrorSpotting
|
|
17
19
|
}) => /*#__PURE__*/_jsxs(View, {
|
|
18
20
|
style: styles.container,
|
|
19
21
|
children: [/*#__PURE__*/_jsx(View, {
|
|
@@ -24,15 +26,15 @@ export const ReceivedMessage = ({
|
|
|
24
26
|
})
|
|
25
27
|
}), /*#__PURE__*/_jsxs(View, {
|
|
26
28
|
style: styles.message,
|
|
27
|
-
children: [/*#__PURE__*/
|
|
29
|
+
children: [/*#__PURE__*/_jsxs(Text, {
|
|
28
30
|
style: [styles.messageText, {
|
|
29
31
|
width: withTextToSpeech ? 240 : 305
|
|
30
32
|
}],
|
|
31
|
-
children: renderer ? renderer({
|
|
33
|
+
children: [renderer ? renderer({
|
|
32
34
|
message,
|
|
33
35
|
variant: MessageVariant.RECEIVED,
|
|
34
36
|
withTextToSpeech
|
|
35
|
-
}) : message
|
|
37
|
+
}) : message, !!withErrorSpotting && /*#__PURE__*/_jsx(ErrorSpottingButton, {})]
|
|
36
38
|
}), withTextToSpeech && /*#__PURE__*/_jsx(MessageTextToSpeech, {
|
|
37
39
|
isActive: isActive,
|
|
38
40
|
isLoading: isTextToSpeechPending,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","StyleSheet","Text","View","ChatbotIcon","MessageTextToSpeech","MessageVariant","jsx","_jsx","jsxs","_jsxs","ReceivedMessage","message","onPressTextToSpeech","isTextToSpeechPending","isActive","audioStatus","renderer","withTextToSpeech","style","styles","container","children","icon","width","height","messageText","variant","RECEIVED","isLoading","onPress","disabled","status","create","flex","flexDirection","maxWidth","alignItems","alignSelf","marginRight","padding","shadowColor","shadowOffset","shadowOpacity","shadowRadius","elevation","borderRadius","borderBottomLeftRadius","backgroundColor","fontSize","fontWeight","fontFamily","color"],"sourceRoot":"../../../../../../src","sources":["features/chatbot/components/ChatMessage/ReceivedMessage.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AAErD,SAASC,WAAW,QAAQ,yCAAsC;AAClE,SAASC,mBAAmB,QAAQ,0BAAuB;AAC3D,SAASC,cAAc,QAAQ,4BAAyB;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;
|
|
1
|
+
{"version":3,"names":["React","StyleSheet","Text","View","ChatbotIcon","MessageTextToSpeech","MessageVariant","ErrorSpottingButton","jsx","_jsx","jsxs","_jsxs","ReceivedMessage","message","onPressTextToSpeech","isTextToSpeechPending","isActive","audioStatus","renderer","withTextToSpeech","withErrorSpotting","style","styles","container","children","icon","width","height","messageText","variant","RECEIVED","isLoading","onPress","disabled","status","create","flex","flexDirection","maxWidth","alignItems","alignSelf","marginRight","padding","shadowColor","shadowOffset","shadowOpacity","shadowRadius","elevation","borderRadius","borderBottomLeftRadius","backgroundColor","fontSize","fontWeight","fontFamily","color"],"sourceRoot":"../../../../../../src","sources":["features/chatbot/components/ChatMessage/ReceivedMessage.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AAErD,SAASC,WAAW,QAAQ,yCAAsC;AAClE,SAASC,mBAAmB,QAAQ,0BAAuB;AAC3D,SAASC,cAAc,QAAQ,4BAAyB;AACxD,SAASC,mBAAmB,QAAQ,4CAAyC;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAE7E,OAAO,MAAMC,eAAe,GAAGA,CAAC;EAC9BC,OA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G;IACVa,UAAU,EAAE;EACd,CAAC;EACDd,IAAI,EAAE;IACJe,SAAS,EAAE,UAAU;IACrBC,WAAW,EAAE;EACf,CAAC;EACD5B,OAAO,EAAE;IACPuB,IAAI,EAAE,CAAC;IACPC,aAAa,EAAE,KAAK;IACpBC,QAAQ,EAAE,GAAG;IACbI,OAAO,EAAE,CAAC;IACVC,WAAW,EAAE,MAAM;IACnBC,YAAY,EAAE;MAAElB,KAAK,EAAE,CAAC;MAAEC,MAAM,EAAE;IAAE,CAAC;IACrCkB,aAAa,EAAE,IAAI;IACnBC,YAAY,EAAE,CAAC;IACfC,SAAS,EAAE,CAAC;IACZC,YAAY,EAAE,CAAC;IACfC,sBAAsB,EAAE,CAAC;IACzBC,eAAe,EAAE;EACnB,CAAC;EACDtB,WAAW,EAAE;IACXQ,IAAI,EAAE,CAAC;IACPe,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,GAAG;IACfC,UAAU,EAAE,cAAc;IAC1BC,KAAK,EAAE;EACT;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -14,6 +14,15 @@ const BOTTOM_OFFSET = Platform.select({
|
|
|
14
14
|
web: 265,
|
|
15
15
|
default: 294
|
|
16
16
|
});
|
|
17
|
+
function findListReceivedMessage(messages) {
|
|
18
|
+
let i = messages.length - 1;
|
|
19
|
+
while (i >= 2) {
|
|
20
|
+
const message = messages[i];
|
|
21
|
+
if (!message.isOwnMessage && !message.endMessage) return messages[i];
|
|
22
|
+
i--;
|
|
23
|
+
}
|
|
24
|
+
return null;
|
|
25
|
+
}
|
|
17
26
|
export const ChatbotMessages = ({
|
|
18
27
|
model,
|
|
19
28
|
isHintFeedback,
|
|
@@ -49,6 +58,7 @@ export const ChatbotMessages = ({
|
|
|
49
58
|
translatedMessage
|
|
50
59
|
});
|
|
51
60
|
};
|
|
61
|
+
const lastReceivedMessage = findListReceivedMessage(messages);
|
|
52
62
|
return /*#__PURE__*/_jsx(View, {
|
|
53
63
|
style: [styles.container, {
|
|
54
64
|
maxHeight: MAX_HEIGHT
|
|
@@ -77,7 +87,8 @@ export const ChatbotMessages = ({
|
|
|
77
87
|
isActive: id === currentPlayingId,
|
|
78
88
|
isTextToSpeechPending: isTextToSpeechPending,
|
|
79
89
|
variant: isOwnMessage ? MessageVariant.SENT : MessageVariant.RECEIVED,
|
|
80
|
-
withTextToSpeech: isTextToSpeechEnabled && !isOwnMessage
|
|
90
|
+
withTextToSpeech: isTextToSpeechEnabled && !isOwnMessage,
|
|
91
|
+
withErrorSpotting: !isHelpRequestPending && lastReceivedMessage?.id === id
|
|
81
92
|
}, id)), isHelpRequestPending && /*#__PURE__*/_jsx(MessageLoader, {})]
|
|
82
93
|
}), !isHelpRequestPending && isOpen && /*#__PURE__*/_jsx(Alternatives, {
|
|
83
94
|
model: model,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useRef","Platform","ScrollView","StyleSheet","useWindowDimensions","View","useStoreMap","useUnit","ChatMessage","MessageLoader","Alternatives","TEXT_TO_SPEECH_CONFIG","MessageVariant","jsx","_jsx","jsxs","_jsxs","TOOLBAR_HEIGHT","BOTTOM_OFFSET","select","web","default","ChatbotMessages","model","isHintFeedback","sanitizeSpeechInput","isTextToSpeechEnabled","textToSpeechConfig","renderer","dimensions","ref","isOpen","$isOpen","isHelpRequestPending","sendHelpRequestFx","pending","isTextToSpeechPending","api","textToSpeechTextFx","currentPlayingId","t2s","$currentPlayingId","isTranslated","translation","$isTranslated","audioStatus","$status","MAX_HEIGHT","height","
|
|
1
|
+
{"version":3,"names":["React","useRef","Platform","ScrollView","StyleSheet","useWindowDimensions","View","useStoreMap","useUnit","ChatMessage","MessageLoader","Alternatives","TEXT_TO_SPEECH_CONFIG","MessageVariant","jsx","_jsx","jsxs","_jsxs","TOOLBAR_HEIGHT","BOTTOM_OFFSET","select","web","default","findListReceivedMessage","messages","i","length","message","isOwnMessage","endMessage","ChatbotMessages","model","isHintFeedback","sanitizeSpeechInput","isTextToSpeechEnabled","textToSpeechConfig","renderer","dimensions","ref","isOpen","$isOpen","isHelpRequestPending","sendHelpRequestFx","pending","isTextToSpeechPending","api","textToSpeechTextFx","currentPlayingId","t2s","$currentPlayingId","isTranslated","translation","$isTranslated","audioStatus","$status","MAX_HEIGHT","height","$currentChatData","playTextToSpeech","id","translatedMessage","text","play","messageId","config","askChatForHelp","lastReceivedMessage","style","styles","container","maxHeight","children","contentContainerStyle","list","onContentSizeChange","_","current","scrollToEnd","setScrollActive","gap","map","onPressTextToSpeech","isActive","variant","SENT","RECEIVED","withTextToSpeech","withErrorSpotting","onPressAlternative","hasMessages","create","flex","alignItems","width","paddingVertical"],"sourceRoot":"../../../../../../src","sources":["features/chatbot/components/ChatMessages/ChatbotMessages.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAeC,MAAM,QAAQ,OAAO;AAChD,SAASC,QAAQ,EAAEC,UAAU,EAAEC,UAAU,EAAEC,mBAAmB,EAAEC,IAAI,QAAQ,cAAc;AAC1F,SAASC,WAAW,EAAEC,OAAO,QAAQ,gBAAgB;AAErD,SAASC,WAAW,QAAQ,+BAA4B;AACxD,SAASC,aAAa,QAAQ,iCAA8B;AAC5D,SAASC,YAAY,QAAQ,iCAA8B;AAC3D,SAAsCC,qBAAqB,QAAQ,oBAAiB;AACpF,SAASC,cAAc,QAAyB,4BAAyB;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAezE,MAAMC,cAAc,GAAG,GAAG;AAC1B,MAAMC,aAAa,GAAGjB,QAAQ,CAACkB,MAAM,CAAC;EACpCC,GAAG,EAAE,GAAG;EACRC,OAAO,EAAE;AACX,CAAC,CAAC;AAEF,SAASC,uBAAuBA,CAACC,QAA+B,EAAE;EAChE,IAAIC,CAAC,GAAGD,QAAQ,CAACE,MAAM,GAAG,CAAC;EAC3B,OAAOD,CAAC,IAAI,CAAC,EAAE;IACb,MAAME,OAAO,GAAGH,QAAQ,CAACC,CAAC,CAAC;IAC3B,IA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AgB,CAACC,EAAE,EAAEhC,OAAO,EAAEiC,iBAAiB,CAAE;UAC5EsB,QAAQ,EAAEvB,EAAE,KAAKZ,gBAAiB;UAClCH,qBAAqB,EAAEA,qBAAsB;UAC7CuC,OAAO,EAAEvD,YAAY,GAAGf,cAAc,CAACuE,IAAI,GAAGvE,cAAc,CAACwE,QAAS;UACtEC,gBAAgB,EAAEpD,qBAAqB,IAAI,CAACN,YAAa;UACzD2D,iBAAiB,EAAE,CAAC9C,oBAAoB,IAAIyB,mBAAmB,EAAEP,EAAE,KAAKA;QAAG,GATtEA,EAUN,CACF,CAAC,EAEDlB,oBAAoB,iBAAI1B,IAAA,CAACL,aAAa,IAAE,CAAC;MAAA,CACtC,CACP,EAEA,CAAC+B,oBAAoB,IAAIF,MAAM,iBAC9BxB,IAAA,CAACJ,YAAY;QACXoB,KAAK,EAAEA,KAAM;QACbyD,kBAAkB,EAAEvB,cAAe;QACnCwB,WAAW,EAAEjE,QAAQ,CAACE,MAAM,GAAG,CAAE;QACjCM,cAAc,EAAEA;MAAe,CAChC,CACF;IAAA,CACS;EAAC,CACT,CAAC;AAEX,CAAC;AAED,MAAMoC,MAAM,GAAGhE,UAAU,CAACsF,MAAM,CAAC;EAC/BrB,SAAS,EAAE;IACTsB,IAAI,EAAE,CAAC;IACPC,UAAU,EAAE,UAAU;IACtBC,KAAK,EAAE,GAAG;IACVrC,MAAM,EAAE;EACV,CAAC;EACDiB,IAAI,EAAE;IACJmB,UAAU,EAAE,UAAU;IACtBE,eAAe,EAAE;EACnB,CAAC;EACDf,GAAG,EAAE;IACHY,IAAI,EAAE,CAAC;IACPZ,GAAG,EAAE;EACP;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -4,7 +4,8 @@ import { useStoreMap, useUnit } from 'effector-react';
|
|
|
4
4
|
import { ChatbotMessages } from "./ChatMessages/ChatbotMessages.js";
|
|
5
5
|
import { ChatControls } from "./ChatControls/ChatControls.js";
|
|
6
6
|
import React from 'react';
|
|
7
|
-
import {
|
|
7
|
+
import { ChatBotContext } from "../context/ChatBotContext.js";
|
|
8
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
9
|
export const Chatbot = ({
|
|
9
10
|
model,
|
|
10
11
|
isHintFeedback,
|
|
@@ -28,7 +29,10 @@ export const Chatbot = ({
|
|
|
28
29
|
if (!isAvailable || alternatives?.chatAccess === false) {
|
|
29
30
|
return null;
|
|
30
31
|
}
|
|
31
|
-
return /*#__PURE__*/_jsxs(
|
|
32
|
+
return /*#__PURE__*/_jsxs(ChatBotContext.Provider, {
|
|
33
|
+
value: {
|
|
34
|
+
model
|
|
35
|
+
},
|
|
32
36
|
children: [/*#__PURE__*/_jsx(ChatbotMessages, {
|
|
33
37
|
model: model,
|
|
34
38
|
renderer: renderer,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useStoreMap","useUnit","ChatbotMessages","ChatControls","React","
|
|
1
|
+
{"version":3,"names":["useStoreMap","useUnit","ChatbotMessages","ChatControls","React","ChatBotContext","jsx","_jsx","jsxs","_jsxs","Chatbot","model","isHintFeedback","sanitizeSpeechInput","isTextToSpeechEnabled","textToSpeechConfig","isTranslationEnabled","renderer","ButtonWrapper","iconSize","alternatives","$alternatives","isAvailable","$currentChatData","translateMessages","translation","translateAllMessagesFx","openChat","setIsOpen","closeChat","chatAccess","Provider","value","children","onPressTranslate","onPressChatIcon","onPressClose"],"sourceRoot":"../../../../../src","sources":["features/chatbot/components/Chatbot.tsx"],"mappings":";;AACA,SAASA,WAAW,EAAEC,OAAO,QAAQ,gBAAgB;AAErD,SAASC,eAAe,QAAQ,mCAAgC;AAChE,SAASC,YAAY,QAAQ,gCAA6B;AAG1D,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,cAAc,QAAQ,8BAA2B;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAiB1D,OAAO,MAAMC,OAAO,GAAGA,CAAC;EACtBC,KAA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qB,CAAC;AAE9B,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { createContext, useContext } from 'react';
|
|
4
|
+
export const ChatBotContext = /*#__PURE__*/createContext(null);
|
|
5
|
+
export function useChatModel() {
|
|
6
|
+
const context = useContext(ChatBotContext);
|
|
7
|
+
if (!context) {
|
|
8
|
+
throw new Error('Something went wrong, you are probably trying to use component that is supposed to be inside ChatBotContext.Provider');
|
|
9
|
+
}
|
|
10
|
+
return context.model;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=ChatBotContext.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["createContext","useContext","ChatBotContext","useChatModel","context","Error","model"],"sourceRoot":"../../../../../src","sources":["features/chatbot/context/ChatBotContext.ts"],"mappings":";;AAAA,SAASA,aAAa,EAAEC,UAAU,QAAQ,OAAO;AAOjD,OAAO,MAAMC,cAAc,gBAAGF,aAAa,CAA6B,IAAI,CAAC;AAE7E,OAAO,SAASG,YAAYA,CAAA,EAAG;EAC7B,MAAMC,OAAO,GAAGH,UAAU,CAACC,cAAc,CAAC;EAC1C,IAAI,CAACE,OAAO,EAAE;IACZ,MAAM,IAAIC,KAAK,CACb,sHACF,CAAC;EACH;EACA,OAAOD,OAAO,CAACE,KAAK;AACtB","ignoreList":[]}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { Button, COLORS, StopIcon } from '@magmamath/react-native-ui';
|
|
5
|
+
import { useChatModel } from "../context/ChatBotContext.js";
|
|
6
|
+
import { useStoreMap, useUnit } from 'effector-react';
|
|
7
|
+
import { StyleSheet, View } from 'react-native';
|
|
8
|
+
import { HighlighterIcon } from "../../../shared/icons/HighlighterIcon.js";
|
|
9
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
|
+
export const ErrorSpottingButton = () => {
|
|
11
|
+
const model = useChatModel();
|
|
12
|
+
const activeErrorSpotting = useUnit(model.errorSpotting.$activeData);
|
|
13
|
+
const validationKey = useUnit(model.errorSpotting.$validationKey);
|
|
14
|
+
const isLoading = useUnit(model.errorSpotting.$isLoading);
|
|
15
|
+
const currentThread = useStoreMap(model.$currentChatData, chatData => chatData.currentThread);
|
|
16
|
+
if (!currentThread?.strokes) return null;
|
|
17
|
+
const isActive = !!activeErrorSpotting?.isActive;
|
|
18
|
+
return /*#__PURE__*/_jsx(View, {
|
|
19
|
+
style: styles.container,
|
|
20
|
+
children: /*#__PURE__*/_jsx(Button, {
|
|
21
|
+
style: buttonStyles,
|
|
22
|
+
disabled: validationKey !== currentThread.key,
|
|
23
|
+
isActive: isActive,
|
|
24
|
+
isLoading: isLoading,
|
|
25
|
+
variant: 'secondary',
|
|
26
|
+
colorScheme: 'blue',
|
|
27
|
+
size: 'small',
|
|
28
|
+
onPress: () => {
|
|
29
|
+
if (isLoading) return;
|
|
30
|
+
model.errorSpotting.errorSpottingPressed();
|
|
31
|
+
},
|
|
32
|
+
icon: isActive ? /*#__PURE__*/_jsx(StopIcon, {
|
|
33
|
+
color: COLORS.NEUTRAL_1
|
|
34
|
+
}) : /*#__PURE__*/_jsx(HighlighterIcon, {}),
|
|
35
|
+
children: "show error"
|
|
36
|
+
})
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
const buttonStyles = StyleSheet.create({
|
|
40
|
+
container: {
|
|
41
|
+
marginLeft: 'auto'
|
|
42
|
+
},
|
|
43
|
+
text: {
|
|
44
|
+
textTransform: 'uppercase'
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
const styles = StyleSheet.create({
|
|
48
|
+
container: {
|
|
49
|
+
width: '100%'
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
//# sourceMappingURL=ErrorSpottingButton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Button","COLORS","StopIcon","useChatModel","useStoreMap","useUnit","StyleSheet","View","HighlighterIcon","jsx","_jsx","ErrorSpottingButton","model","activeErrorSpotting","errorSpotting","$activeData","validationKey","$validationKey","isLoading","$isLoading","currentThread","$currentChatData","chatData","strokes","isActive","style","styles","container","children","buttonStyles","disabled","key","variant","colorScheme","size","onPress","errorSpottingPressed","icon","color","NEUTRAL_1","create","marginLeft","text","textTransform","width"],"sourceRoot":"../../../../../src","sources":["features/chatbot/errorSpotting/ErrorSpottingButton.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,MAAM,EAAEC,MAAM,EAAEC,QAAQ,QAAQ,4BAA4B;AACrE,SAASC,YAAY,QAAQ,8BAA2B;AACxD,SAASC,WAAW,EAAEC,OAAO,QAAQ,gBAAgB;AACrD,SAASC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAC/C,SAASC,eAAe,QAAQ,0CAAuC;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAEvE,OAAO,MAAMC,mBAAmB,GAAGA,CAAA,KAAM;EACvC,MAAMC,KAAK,GAAGT,YAAY,CAAC,CAAC;EAC5B,MAAMU,mBAAmB,GAAGR,OAAO,CAACO,KAAK,CAACE,aAAa,CAACC,WAAW,CAAC;EACpE,MAAMC,aAAa,GAAGX,OAAO,CAACO,KAAK,CAACE,aAAa,CAACG,cAAc,CAAC;EACjE,MAAMC,SAAS,GAAGb,OAAO,CAACO,KAAK,CAACE,aAAa,CAACK,UAAU,CAAC;EACzD,MAAMC,aAAa,GAAGhB,WAAW,CAACQ,KAAK,CAACS,gBAAgB,EAAGC,QAAQ,IAAKA,QAAQ,CAACF,aAAa,CAAC;EAE/F,IAAI,CAACA,aAAa,EAAEG,OAAO,EAAE,OAAO,IAAI;EAExC,MAAMC,QAAQ,GAAG,CAAC,CAACX,mBAAmB,EAAEW,QAAQ;EAChD,oBACEd,IAAA,CAACH,IAAI;IAACkB,KAAK,EAAEC,MAAM,CAACC,SAAU;IAAAC,QAAA,eAC5BlB,IAAA,CAACV,MAAM;MACLyB,KAAK,EAAEI,YAAa;MACpBC,QAAQ,EAAEd,aAAa,KAAKI,aAAa,CAACW,GAAI;MAC9CP,QAAQ,EAAEA,QAAS;MACnBN,SAAS,EAAEA,SAAU;MACrBc,OAAO,EAAE,WAAY;MACrBC,WAAW,EAAE,MAAO;MACpBC,IAAI,EAAE,OAAQ;MACdC,OAAO,EAAEA,CAAA,KAAM;QACb,IAAIjB,SAAS,EAAE;QACfN,KAAK,CAACE,aAAa,CAACsB,oBAAoB,CAAC,CAAC;MAC5C,CAAE;MACFC,IAAI,EAAEb,QAAQ,gBAAGd,IAAA,CAACR,QAAQ;QAACoC,KAAK,EAAErC,MAAM,CAACsC;MAAU,CAAE,CAAC,gBAAG7B,IAAA,CAACF,eAAe,IAAE,CAAE;MAAAoB,QAAA,EAC9E;IAED,CAAQ;EAAC,CACL,CAAC;AAEX,CAAC;AAED,MAAMC,YAAY,GAAGvB,UAAU,CAACkC,MAAM,CAAC;EACrCb,SAAS,EAAE;IACTc,UAAU,EAAE;EACd,CAAC;EACDC,IAAI,EAAE;IACJC,aAAa,EAAE;EACjB;AACF,CAAC,CAAC;AAEF,MAAMjB,MAAM,GAAGpB,UAAU,CAACkC,MAAM,CAAC;EAC/Bb,SAAS,EAAE;IACTiB,KAAK,EAAE;EACT;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { createEvent, createStore, sample, createEffect } from 'effector';
|
|
4
|
+
export class ErrorSpottingModel {
|
|
5
|
+
errorSpottingPressed = createEvent();
|
|
6
|
+
activeDataChanged = createEvent();
|
|
7
|
+
$validationKey = createStore(null);
|
|
8
|
+
$activeData = createStore(null).on(this.activeDataChanged, (state, payload) => {
|
|
9
|
+
if (typeof payload === 'function') return payload(state);
|
|
10
|
+
return payload;
|
|
11
|
+
}).on(this.$validationKey, (state, payload) => {
|
|
12
|
+
if (!state || payload === null) return state;
|
|
13
|
+
const isDisabled = payload !== state.validationKey;
|
|
14
|
+
return {
|
|
15
|
+
...state,
|
|
16
|
+
isDisabled,
|
|
17
|
+
isActive: isDisabled ? false : state.isActive
|
|
18
|
+
};
|
|
19
|
+
});
|
|
20
|
+
constructor({
|
|
21
|
+
api,
|
|
22
|
+
$currentChatData
|
|
23
|
+
}) {
|
|
24
|
+
this.api = api;
|
|
25
|
+
this.$isLoading = api.spotErrorFx.pending;
|
|
26
|
+
this.$activeData.on($currentChatData, (state, payload) => {
|
|
27
|
+
if (!state || state.validationKey !== payload.currentThread?.key) return null;
|
|
28
|
+
});
|
|
29
|
+
sample({
|
|
30
|
+
clock: api.spotErrorFx.doneData,
|
|
31
|
+
source: {
|
|
32
|
+
chatData: $currentChatData,
|
|
33
|
+
activeSpotting: this.$activeData,
|
|
34
|
+
validationKey: this.$validationKey
|
|
35
|
+
},
|
|
36
|
+
fn: (source, result) => {
|
|
37
|
+
const key = source.chatData.currentThread?.key || null;
|
|
38
|
+
const currentKey = source.validationKey;
|
|
39
|
+
const isDisabled = !!currentKey && currentKey !== key;
|
|
40
|
+
return {
|
|
41
|
+
validationKey: key,
|
|
42
|
+
strokesIds: result.strokesIds,
|
|
43
|
+
isActive: !isDisabled,
|
|
44
|
+
isDisabled
|
|
45
|
+
};
|
|
46
|
+
},
|
|
47
|
+
target: this.$activeData
|
|
48
|
+
});
|
|
49
|
+
sample({
|
|
50
|
+
clock: this.errorSpottingPressed,
|
|
51
|
+
source: {
|
|
52
|
+
chatData: $currentChatData,
|
|
53
|
+
activeSpotting: this.$activeData
|
|
54
|
+
},
|
|
55
|
+
fn: source => source,
|
|
56
|
+
target: createEffect(({
|
|
57
|
+
chatData,
|
|
58
|
+
activeSpotting
|
|
59
|
+
}) => {
|
|
60
|
+
if (!chatData.currentThread?.strokes) return;
|
|
61
|
+
if (!activeSpotting) {
|
|
62
|
+
return this.api.spotErrorFx({
|
|
63
|
+
strokes: chatData.currentThread.strokes
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
this.toggleActiveSpotting();
|
|
67
|
+
})
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
toggleActiveSpotting() {
|
|
71
|
+
this.activeDataChanged(state => {
|
|
72
|
+
if (state) return {
|
|
73
|
+
...state,
|
|
74
|
+
isActive: !state.isActive
|
|
75
|
+
};
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
bindStrokesValidation($store) {
|
|
79
|
+
sample({
|
|
80
|
+
source: $store,
|
|
81
|
+
target: this.$validationKey
|
|
82
|
+
});
|
|
83
|
+
return this;
|
|
84
|
+
}
|
|
85
|
+
abortPendingRequest() {
|
|
86
|
+
const isPending = this.api.spotErrorFx.pending.getState();
|
|
87
|
+
if (isPending) this.api.spotErrorFx.controller.abort();
|
|
88
|
+
}
|
|
89
|
+
reset() {
|
|
90
|
+
this.activeDataChanged(null);
|
|
91
|
+
this.abortPendingRequest();
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
//# sourceMappingURL=ErrorSpottingModel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["createEvent","createStore","sample","createEffect","ErrorSpottingModel","errorSpottingPressed","activeDataChanged","$validationKey","$activeData","on","state","payload","isDisabled","validationKey","isActive","constructor","api","$currentChatData","$isLoading","spotErrorFx","pending","currentThread","key","clock","doneData","source","chatData","activeSpotting","fn","result","currentKey","strokesIds","target","strokes","toggleActiveSpotting","bindStrokesValidation","$store","abortPendingRequest","isPending","getState","controller","abort","reset"],"sourceRoot":"../../../../../src","sources":["features/chatbot/errorSpotting/ErrorSpottingModel.ts"],"mappings":";;AACA,SAASA,WAAW,EAAEC,WAAW,EAAEC,MAAM,EAAEC,YAAY,QAAe,UAAU;AAoBhF,OAAO,MAAMC,kBAAkB,CAAC;EAGdC,oBAAoB,GAAGL,WAAW,CAAC,CAAC;EACnCM,iBAAiB,GAAGN,WAAW,CAI9C,CAAC;EAEaO,cAAc,GAAGN,WAA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,MAAM,EAAE,IAAI,CAACzB;IACf,CAAC,CAAC;IACF,OAAO,IAAI;EACb;EAEO8B,mBAAmBA,CAAA,EAAG;IAC3B,MAAMC,SAAS,GAAG,IAAI,CAACtB,GAAG,CAACG,WAAW,CAACC,OAAO,CAACmB,QAAQ,CAAC,CAAC;IACzD,IAAID,SAAS,EAAE,IAAI,CAACtB,GAAG,CAACG,WAAW,CAACqB,UAAU,CAACC,KAAK,CAAC,CAAC;EACxD;EAEOC,KAAKA,CAAA,EAAG;IACb,IAAI,CAACpC,iBAAiB,CAAC,IAAI,CAAC;IAC5B,IAAI,CAAC+B,mBAAmB,CAAC,CAAC;EAC5B;AACF","ignoreList":[]}
|
|
@@ -4,6 +4,5 @@ export { Chatbot } from "./components/Chatbot.js";
|
|
|
4
4
|
export { ChatbotModel } from "./model/ChatBotModel.js";
|
|
5
5
|
export { AudioStatus } from "./types/t2s.types.js";
|
|
6
6
|
export { MessageVariant } from "./types/model.types.js";
|
|
7
|
-
export { ChatMessageHandler } from "./model/ChatBotMessageHandler.js";
|
|
8
7
|
export { DefaultMessagesCreator } from "./model/DefaultMessageCreator.js";
|
|
9
8
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Chatbot","ChatbotModel","AudioStatus","MessageVariant","
|
|
1
|
+
{"version":3,"names":["Chatbot","ChatbotModel","AudioStatus","MessageVariant","DefaultMessagesCreator"],"sourceRoot":"../../../../src","sources":["features/chatbot/index.ts"],"mappings":";;AAAA,SAASA,OAAO,QAAQ,yBAAsB;AAC9C,SAASC,YAAY,QAAQ,yBAAsB;AACnD,SAASC,WAAW,QAA4B,sBAAmB;AACnE,SACEC,cAAc,QAIT,wBAAqB;AAE5B,SAASC,sBAAsB,QAAQ,kCAA+B","ignoreList":[]}
|