@magmamath/students-features 0.6.10 → 0.6.11-rc.1

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.
Files changed (100) hide show
  1. package/dist/commonjs/features/chatbot/components/Alternatives/Alternatives.js +4 -1
  2. package/dist/commonjs/features/chatbot/components/Alternatives/Alternatives.js.map +1 -1
  3. package/dist/commonjs/features/chatbot/components/Alternatives/HelpRequestOption.js +27 -24
  4. package/dist/commonjs/features/chatbot/components/Alternatives/HelpRequestOption.js.map +1 -1
  5. package/dist/commonjs/features/chatbot/components/ChatMessage/ChatMessage.js.map +1 -1
  6. package/dist/commonjs/features/chatbot/components/ChatMessage/MessageLoader.js +8 -3
  7. package/dist/commonjs/features/chatbot/components/ChatMessage/MessageLoader.js.map +1 -1
  8. package/dist/commonjs/features/chatbot/components/ChatMessage/SentMessage.js +11 -8
  9. package/dist/commonjs/features/chatbot/components/ChatMessage/SentMessage.js.map +1 -1
  10. package/dist/commonjs/features/chatbot/components/ChatMessages/ChatbotMessages.js +21 -13
  11. package/dist/commonjs/features/chatbot/components/ChatMessages/ChatbotMessages.js.map +1 -1
  12. package/dist/commonjs/features/chatbot/components/ThreeDotsLoader/ThreeDotsLoader.js +2 -1
  13. package/dist/commonjs/features/chatbot/components/ThreeDotsLoader/ThreeDotsLoader.js.map +1 -1
  14. package/dist/commonjs/features/chatbot/model/ChatBotModel.js +1 -1
  15. package/dist/commonjs/features/chatbot/model/ChatBotModel.js.map +1 -1
  16. package/dist/commonjs/features/chatbot/model/ChatBoxTextManager.js +2 -1
  17. package/dist/commonjs/features/chatbot/model/ChatBoxTextManager.js.map +1 -1
  18. package/dist/commonjs/features/chatbot/types/model.types.js.map +1 -1
  19. package/dist/commonjs/shared/translation/localization/ca.json +2 -1
  20. package/dist/commonjs/shared/translation/localization/en.json +2 -1
  21. package/dist/commonjs/shared/translation/localization/gb.json +2 -1
  22. package/dist/commonjs/shared/translation/localization/sct.json +2 -1
  23. package/dist/commonjs/shared/translation/localization/sw.json +2 -1
  24. package/dist/module/features/chatbot/components/Alternatives/Alternatives.js +4 -1
  25. package/dist/module/features/chatbot/components/Alternatives/Alternatives.js.map +1 -1
  26. package/dist/module/features/chatbot/components/Alternatives/HelpRequestOption.js +29 -27
  27. package/dist/module/features/chatbot/components/Alternatives/HelpRequestOption.js.map +1 -1
  28. package/dist/module/features/chatbot/components/ChatMessage/ChatMessage.js.map +1 -1
  29. package/dist/module/features/chatbot/components/ChatMessage/MessageLoader.js +8 -3
  30. package/dist/module/features/chatbot/components/ChatMessage/MessageLoader.js.map +1 -1
  31. package/dist/module/features/chatbot/components/ChatMessage/SentMessage.js +11 -8
  32. package/dist/module/features/chatbot/components/ChatMessage/SentMessage.js.map +1 -1
  33. package/dist/module/features/chatbot/components/ChatMessages/ChatbotMessages.js +21 -13
  34. package/dist/module/features/chatbot/components/ChatMessages/ChatbotMessages.js.map +1 -1
  35. package/dist/module/features/chatbot/components/ThreeDotsLoader/ThreeDotsLoader.js +3 -3
  36. package/dist/module/features/chatbot/components/ThreeDotsLoader/ThreeDotsLoader.js.map +1 -1
  37. package/dist/module/features/chatbot/model/ChatBotModel.js +1 -1
  38. package/dist/module/features/chatbot/model/ChatBotModel.js.map +1 -1
  39. package/dist/module/features/chatbot/model/ChatBoxTextManager.js +2 -1
  40. package/dist/module/features/chatbot/model/ChatBoxTextManager.js.map +1 -1
  41. package/dist/module/features/chatbot/types/model.types.js.map +1 -1
  42. package/dist/module/shared/translation/localization/ca.json +2 -1
  43. package/dist/module/shared/translation/localization/en.json +2 -1
  44. package/dist/module/shared/translation/localization/gb.json +2 -1
  45. package/dist/module/shared/translation/localization/sct.json +2 -1
  46. package/dist/module/shared/translation/localization/sw.json +2 -1
  47. package/dist/typescript/commonjs/features/chatbot/components/Alternatives/Alternatives.d.ts.map +1 -1
  48. package/dist/typescript/commonjs/features/chatbot/components/Alternatives/HelpRequestOption.d.ts +2 -1
  49. package/dist/typescript/commonjs/features/chatbot/components/Alternatives/HelpRequestOption.d.ts.map +1 -1
  50. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/ChatMessage.d.ts +2 -0
  51. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/ChatMessage.d.ts.map +1 -1
  52. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/MessageLoader.d.ts +5 -1
  53. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/MessageLoader.d.ts.map +1 -1
  54. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/SentMessage.d.ts +1 -1
  55. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/SentMessage.d.ts.map +1 -1
  56. package/dist/typescript/commonjs/features/chatbot/components/ChatMessages/ChatbotMessages.d.ts.map +1 -1
  57. package/dist/typescript/commonjs/features/chatbot/components/ThreeDotsLoader/ThreeDotsLoader.d.ts.map +1 -1
  58. package/dist/typescript/commonjs/features/chatbot/model/ChatBotModel.d.ts.map +1 -1
  59. package/dist/typescript/commonjs/features/chatbot/model/ChatBoxTextManager.d.ts.map +1 -1
  60. package/dist/typescript/commonjs/features/chatbot/types/model.types.d.ts +2 -0
  61. package/dist/typescript/commonjs/features/chatbot/types/model.types.d.ts.map +1 -1
  62. package/dist/typescript/commonjs/shared/translation/constants.d.ts +5 -0
  63. package/dist/typescript/commonjs/shared/translation/constants.d.ts.map +1 -1
  64. package/dist/typescript/commonjs/shared/translation/model.d.ts +2 -0
  65. package/dist/typescript/commonjs/shared/translation/model.d.ts.map +1 -1
  66. package/dist/typescript/module/features/chatbot/components/Alternatives/Alternatives.d.ts.map +1 -1
  67. package/dist/typescript/module/features/chatbot/components/Alternatives/HelpRequestOption.d.ts +2 -1
  68. package/dist/typescript/module/features/chatbot/components/Alternatives/HelpRequestOption.d.ts.map +1 -1
  69. package/dist/typescript/module/features/chatbot/components/ChatMessage/ChatMessage.d.ts +2 -0
  70. package/dist/typescript/module/features/chatbot/components/ChatMessage/ChatMessage.d.ts.map +1 -1
  71. package/dist/typescript/module/features/chatbot/components/ChatMessage/MessageLoader.d.ts +5 -1
  72. package/dist/typescript/module/features/chatbot/components/ChatMessage/MessageLoader.d.ts.map +1 -1
  73. package/dist/typescript/module/features/chatbot/components/ChatMessage/SentMessage.d.ts +1 -1
  74. package/dist/typescript/module/features/chatbot/components/ChatMessage/SentMessage.d.ts.map +1 -1
  75. package/dist/typescript/module/features/chatbot/components/ChatMessages/ChatbotMessages.d.ts.map +1 -1
  76. package/dist/typescript/module/features/chatbot/components/ThreeDotsLoader/ThreeDotsLoader.d.ts.map +1 -1
  77. package/dist/typescript/module/features/chatbot/model/ChatBotModel.d.ts.map +1 -1
  78. package/dist/typescript/module/features/chatbot/model/ChatBoxTextManager.d.ts.map +1 -1
  79. package/dist/typescript/module/features/chatbot/types/model.types.d.ts +2 -0
  80. package/dist/typescript/module/features/chatbot/types/model.types.d.ts.map +1 -1
  81. package/dist/typescript/module/shared/translation/constants.d.ts +5 -0
  82. package/dist/typescript/module/shared/translation/constants.d.ts.map +1 -1
  83. package/dist/typescript/module/shared/translation/model.d.ts +2 -0
  84. package/dist/typescript/module/shared/translation/model.d.ts.map +1 -1
  85. package/package.json +1 -1
  86. package/src/features/chatbot/components/Alternatives/Alternatives.tsx +4 -0
  87. package/src/features/chatbot/components/Alternatives/HelpRequestOption.tsx +28 -29
  88. package/src/features/chatbot/components/ChatMessage/ChatMessage.tsx +3 -0
  89. package/src/features/chatbot/components/ChatMessage/MessageLoader.tsx +9 -3
  90. package/src/features/chatbot/components/ChatMessage/SentMessage.tsx +16 -13
  91. package/src/features/chatbot/components/ChatMessages/ChatbotMessages.tsx +33 -17
  92. package/src/features/chatbot/components/ThreeDotsLoader/ThreeDotsLoader.tsx +7 -10
  93. package/src/features/chatbot/model/ChatBotModel.ts +3 -1
  94. package/src/features/chatbot/model/ChatBoxTextManager.ts +1 -0
  95. package/src/features/chatbot/types/model.types.ts +2 -0
  96. package/src/shared/translation/localization/ca.json +2 -1
  97. package/src/shared/translation/localization/en.json +2 -1
  98. package/src/shared/translation/localization/gb.json +2 -1
  99. package/src/shared/translation/localization/sct.json +2 -1
  100. package/src/shared/translation/localization/sw.json +2 -1
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import { Colors } from '@magmamath/react-native-ui';
2
3
  import { T2SState } from '../../types/t2s.types';
3
4
  import { MessageVariant } from '../../types/model.types';
4
5
  import { ConversationMessage } from '../../types/units.types';
@@ -8,6 +9,7 @@ type ChatMessageProps = {
8
9
  t2sState: T2SState;
9
10
  isTranslated?: boolean;
10
11
  withIcon?: boolean;
12
+ backgroundColor?: Colors;
11
13
  };
12
14
  export type VariantProps = Omit<ChatMessageProps, 'variant'>;
13
15
  export declare const ChatMessage: ({ variant, ...props }: ChatMessageProps) => React.JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"ChatMessage.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/chatbot/components/ChatMessage/ChatMessage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwB,MAAM,OAAO,CAAA;AAG5C,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AACxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAA;AAE7D,KAAK,gBAAgB,GAAG;IACtB,OAAO,EAAE,cAAc,CAAA;IACvB,OAAO,EAAE,mBAAmB,CAAA;IAC5B,QAAQ,EAAE,QAAQ,CAAA;IAClB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,MAAM,MAAM,YAAY,GAAG,IAAI,CAAC,gBAAgB,EAAE,SAAS,CAAC,CAAA;AAO5D,eAAO,MAAM,WAAW,0BAA2B,gBAAgB,sBAGlE,CAAA"}
1
+ {"version":3,"file":"ChatMessage.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/chatbot/components/ChatMessage/ChatMessage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwB,MAAM,OAAO,CAAA;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAA;AAInD,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AACxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAA;AAE7D,KAAK,gBAAgB,GAAG;IACtB,OAAO,EAAE,cAAc,CAAA;IACvB,OAAO,EAAE,mBAAmB,CAAA;IAC5B,QAAQ,EAAE,QAAQ,CAAA;IAClB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,eAAe,CAAC,EAAE,MAAM,CAAA;CACzB,CAAA;AAED,MAAM,MAAM,YAAY,GAAG,IAAI,CAAC,gBAAgB,EAAE,SAAS,CAAC,CAAA;AAO5D,eAAO,MAAM,WAAW,0BAA2B,gBAAgB,sBAGlE,CAAA"}
@@ -1,3 +1,7 @@
1
1
  import React from 'react';
2
- export declare const MessageLoader: () => React.JSX.Element;
2
+ type MessageLoaderProps = {
3
+ dotsColor?: string;
4
+ };
5
+ export declare const MessageLoader: ({ dotsColor }: MessageLoaderProps) => React.JSX.Element;
6
+ export {};
3
7
  //# sourceMappingURL=MessageLoader.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"MessageLoader.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/chatbot/components/ChatMessage/MessageLoader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAKzB,eAAO,MAAM,aAAa,yBASzB,CAAA"}
1
+ {"version":3,"file":"MessageLoader.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/chatbot/components/ChatMessage/MessageLoader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAOzB,KAAK,kBAAkB,GAAG;IACxB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,aAAa,kBAAyC,kBAAkB,sBASpF,CAAA"}
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  import { VariantProps } from './ChatMessage';
3
- export declare const SentMessage: React.MemoExoticComponent<({ message, isTranslated }: VariantProps) => React.JSX.Element>;
3
+ export declare const SentMessage: React.MemoExoticComponent<({ message, isTranslated, backgroundColor }: VariantProps) => React.JSX.Element>;
4
4
  //# sourceMappingURL=SentMessage.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SentMessage.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/chatbot/components/ChatMessage/SentMessage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAE5C,eAAO,MAAM,WAAW,wDAA0C,YAAY,uBAQ5E,CAAA"}
1
+ {"version":3,"file":"SentMessage.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/chatbot/components/ChatMessage/SentMessage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAE5C,eAAO,MAAM,WAAW,yEAC6C,YAAY,uBAShF,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"ChatbotMessages.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/chatbot/components/ChatMessages/ChatbotMessages.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiB,MAAM,OAAO,CAAA;AAGrC,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAMvD,KAAK,oBAAoB,GAAG;IAC1B,KAAK,EAAE,YAAY,CAAA;IACnB,cAAc,EAAE,OAAO,CAAA;IACvB,qBAAqB,EAAE,OAAO,CAAA;CAC/B,CAAA;AAQD,eAAO,MAAM,eAAe,sDAIzB,oBAAoB,sBAoEtB,CAAA"}
1
+ {"version":3,"file":"ChatbotMessages.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/chatbot/components/ChatMessages/ChatbotMessages.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiB,MAAM,OAAO,CAAA;AAKrC,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAMvD,KAAK,oBAAoB,GAAG;IAC1B,KAAK,EAAE,YAAY,CAAA;IACnB,cAAc,EAAE,OAAO,CAAA;IACvB,qBAAqB,EAAE,OAAO,CAAA;CAC/B,CAAA;AAQD,eAAO,MAAM,eAAe,sDAIzB,oBAAoB,sBAkFtB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"ThreeDotsLoader.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/chatbot/components/ThreeDotsLoader/ThreeDotsLoader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,KAAK,eAAe,GAAG;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,eAAe,CAAC,EAAE,MAAM,CAAA;CACzB,CAAA;AAED,eAAO,MAAM,eAAe,uDAIzB,eAAe,sBAgDjB,CAAA"}
1
+ {"version":3,"file":"ThreeDotsLoader.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/chatbot/components/ThreeDotsLoader/ThreeDotsLoader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAA;AAKjD,KAAK,eAAe,GAAG;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,eAAe,CAAC,EAAE,MAAM,CAAA;CACzB,CAAA;AAED,eAAO,MAAM,eAAe,uDAIzB,eAAe,sBA4CjB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"ChatBotModel.d.ts","sourceRoot":"","sources":["../../../../../../src/features/chatbot/model/ChatBotModel.ts"],"names":[],"mappings":"AAAA,OAAO,EAQL,K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AO,CAAC,uBAAuB;IAoDxB,OAAO,CAAC,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;IAS7B,4BAA4B,CAAC,MAAM,EAAE,KAAK,CAAC,OAAO,CAAC;IAUnD,QAAQ,CAAC,MAAM,EAAE,SAAS;IAK1B,mBAAmB,CAAC,OAAO,EAAE,qBAAqB;IAMzD,SAAgB,iBAAiB,yDAAiC;IAElE,SAAgB,iBAAiB,wEAiB/B;IAEK,cAAc,CAAC,EAAE,GAAG,EAAE,GAAG,OAAO,EAAE,EAAE,mBAAmB;IAK9D,SAAgB,kBAAkB,YAAa,uBAAuB,UAGrE;IAEM,WAAW,CAAC,GAAG,EAAE,MAAM;IAMvB,SAAS,+CAiBd;IAEF,SAAgB,KAAK,yCAKnB;CACH"}
@@ -1 +1 @@
1
- {"version":3,"file":"ChatBoxTextManager.d.ts","sourceRoot":"","sources":["../../../../../../src/features/chatbot/model/ChatBoxTextManager.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAGtD,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,QAAQ,CAAC,eAAe,CAEe;IAE/C,SAAgB,QAAQ,EAAE,eAAe,CAOxC;CACF"}
1
+ {"version":3,"file":"ChatBoxTextManager.d.ts","sourceRoot":"","sources":["../../../../../../src/features/chatbot/model/ChatBoxTextManager.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAGtD,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,QAAQ,CAAC,eAAe,CAEe;IAE/C,SAAgB,QAAQ,EAAE,eAAe,CAQxC;CACF"}
@@ -7,6 +7,7 @@ export type ChatbotMessages = {
7
7
  start: ConversationMessage;
8
8
  endMessage: ConversationMessage;
9
9
  anotherHintOption: ChatAnswer;
10
+ hintsLimitReached: ConversationMessage;
10
11
  };
11
12
  export type ChatbotApiRequests = {
12
13
  getAlternatives: (props: GetAlternativesPayload) => Promise<GetAlternativesResponse>;
@@ -73,6 +74,7 @@ export type ChatbotContext = {
73
74
  answer?: string | string[];
74
75
  translationTargetLanguage: string;
75
76
  imageDescription?: string;
77
+ isPracticeMode?: boolean;
76
78
  };
77
79
  export {};
78
80
  //# sourceMappingURL=model.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"model.types.d.ts","sourceRoot":"","sources":["../../../../../../src/features/chatbot/types/model.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAA;AACrC,OAAO,EACL,eAAe,EACf,gBAAgB,EAChB,oBAAoB,EACpB,qBAAqB,EACrB,sBAAsB,EACtB,uBAAuB,EACvB,wBAAwB,EACxB,yBAAyB,EACzB,sBAAsB,EACtB,uBAAuB,EACvB,kBAAkB,EAClB,mBAAmB,EACpB,MAAM,aAAa,CAAA;AACpB,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AAC/D,OAAO,EAAE,UAAU,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAE/E,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,EAAE,mBAAmB,CAAA;IAC1B,KAAK,EAAE,mBAAmB,CAAA;IAC1B,UAAU,EAAE,mBAAmB,CAAA;IAC/B,iBAAiB,EAAE,UAAU,CAAA;CAC9B,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG;IAC/B,eAAe,EAAE,CAAC,KAAK,EAAE,sBAAsB,KAAK,OAAO,CAAC,uBAAuB,CAAC,CAAA;IACpF,WAAW,EAAE,CAAC,KAAK,EAAE,kBAAkB,KAAK,OAAO,CAAC,mBAAmB,CAAC,CAAA;IACxE,iBAAiB,EAAE,CAAC,KAAK,EAAE,sBAAsB,KAAK,OAAO,CAAC,uBAAuB,CAAC,CAAA;IACtF,gBAAgB,EAAE,CAAC,KAAK,EAAE,wBAAwB,KAAK,OAAO,CAAC,yBAAyB,CAAC,CAAA;IACzF,SAAS,EA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O,EAAE,cAAc,EAAE,CAAA;IACzB,aAAa,EAAE,MAAM,CAAA;CACtB,CAAA;AAED,KAAK,uBAAuB,GAAG;IAC7B,OAAO,CAAC,EAAE,cAAc,EAAE,CAAA;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,aAAa,EAAE,MAAM,CAAA;CACtB,CAAA;AAED,MAAM,MAAM,qBAAqB,GAAG;IAClC,qBAAqB,EAAE,KAAK,CAAC,MAAM,GAAG,IAAI,CAAC,CAAA;IAC3C;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,OAAO,CAAC,yBAAyB,GAAG,IAAI,CAAC,CAAA;IACnE,UAAU,IAAI,OAAO,CAAC,uBAAuB,GAAG,IAAI,CAAC,CAAA;CACtD,CAAA;AAED,MAAM,MAAM,cAAc,GAAG;IAC3B,QAAQ,EAAE,MAAM,CAAA;IAChB,OAAO,EAAE,MAAM,CAAA;IACf,aAAa,EAAE,MAAM,EAAE,CAAA;IACvB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAC1B,yBAAyB,EAAE,MAAM,CAAA;IACjC,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAC1B,CAAA"}
1
+ {"version":3,"file":"model.types.d.ts","sourceRoot":"","sources":["../../../../../../src/features/chatbot/types/model.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAA;AACrC,OAAO,EACL,eAAe,EACf,gBAAgB,EAChB,oBAAoB,EACpB,qBAAqB,EACrB,sBAAsB,EACtB,uBAAuB,EACvB,wBAAwB,EACxB,yBAAyB,EACzB,sBAAsB,EACtB,uBAAuB,EACvB,kBAAkB,EAClB,mBAAmB,EACpB,MAAM,aAAa,CAAA;AACpB,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AAC/D,OAAO,EAAE,UAAU,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAE/E,MAAM,MA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AAA;IAC1B,yBAAyB,EAAE,MAAM,CAAA;IACjC,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,cAAc,CAAC,EAAE,OAAO,CAAA;CACzB,CAAA"}
@@ -19,6 +19,7 @@ export declare const LOCALIZATION_CONFIGS: {
19
19
  errorMessage: string;
20
20
  howCanIHelp: string;
21
21
  showError: string;
22
+ hintsLimitReached: string;
22
23
  };
23
24
  gifCelebrations: {
24
25
  greatStart: string;
@@ -46,6 +47,7 @@ export declare const LOCALIZATION_CONFIGS: {
46
47
  errorMessage: string;
47
48
  howCanIHelp: string;
48
49
  showError: string;
50
+ hintsLimitReached: string;
49
51
  };
50
52
  gifCelebrations: {
51
53
  greatStart: string;
@@ -73,6 +75,7 @@ export declare const LOCALIZATION_CONFIGS: {
73
75
  errorMessage: string;
74
76
  howCanIHelp: string;
75
77
  showError: string;
78
+ hintsLimitReached: string;
76
79
  };
77
80
  gifCelebrations: {
78
81
  greatStart: string;
@@ -100,6 +103,7 @@ export declare const LOCALIZATION_CONFIGS: {
100
103
  errorMessage: string;
101
104
  howCanIHelp: string;
102
105
  showError: string;
106
+ hintsLimitReached: string;
103
107
  };
104
108
  gifCelebrations: {
105
109
  greatStart: string;
@@ -127,6 +131,7 @@ export declare const LOCALIZATION_CONFIGS: {
127
131
  errorMessage: string;
128
132
  howCanIHelp: string;
129
133
  showError: string;
134
+ hintsLimitReached: string;
130
135
  };
131
136
  gifCelebrations: {
132
137
  greatStart: string;
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/shared/translation/constants.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMhC,CAAA"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/shared/translation/constants.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMhC,CAAA"}
@@ -20,6 +20,7 @@ export declare const setLocalization: import("effector").EventCallable<{
20
20
  errorMessage: string;
21
21
  howCanIHelp: string;
22
22
  showError: string;
23
+ hintsLimitReached: string;
23
24
  };
24
25
  gifCelebrations: {
25
26
  greatStart: string;
@@ -47,6 +48,7 @@ export declare const $localization: import("effector").StoreWritable<{
47
48
  errorMessage: string;
48
49
  howCanIHelp: string;
49
50
  showError: string;
51
+ hintsLimitReached: string;
50
52
  };
51
53
  gifCelebrations: {
52
54
  greatStart: string;
@@ -1 +1 @@
1
- {"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../../../../src/shared/translation/model.ts"],"names":[],"mappings":"AACA,OAAO,EAAU,YAAY,EAAE,MAAM,SAAS,CAAA;AAC9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAElD,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;cACD,OAAO,oBAAoB,KAAK,YAAY,EACpE,CAAA;AAEH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;EAMzB,CAAA"}
1
+ {"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../../../../src/shared/translation/model.ts"],"names":[],"mappings":"AACA,OAAO,EAAU,YAAY,EAAE,MAAM,SAAS,CAAA;AAC9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAElD,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;cACD,OAAO,oBAAoB,KAAK,YAAY,EACpE,CAAA;AAEH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMzB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"Alternatives.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/chatbot/components/Alternatives/Alternatives.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAMzB,KAAK,iBAAiB,GAAG;IACvB,kBAAkB,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,iBAAiB,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IACzE,WAAW,EAAE,OAAO,CAAA;IACpB,cAAc,EAAE,OAAO,CAAA;CACxB,CAAA;AAED,eAAO,MAAM,YAAY,yDAItB,iBAAiB,sBA4BnB,CAAA"}
1
+ {"version":3,"file":"Alternatives.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/chatbot/components/Alternatives/Alternatives.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAQzB,KAAK,iBAAiB,GAAG;IACvB,kBAAkB,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,iBAAiB,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IACzE,WAAW,EAAE,OAAO,CAAA;IACpB,cAAc,EAAE,OAAO,CAAA;CACxB,CAAA;AAED,eAAO,MAAM,YAAY,yDAItB,iBAAiB,sBA8BnB,CAAA"}
@@ -3,7 +3,8 @@ type HelpRequestOptionProps = {
3
3
  onPress: () => void;
4
4
  message: string;
5
5
  disabled: boolean;
6
+ hoverColor?: string;
6
7
  };
7
- export declare const HelpRequestOption: ({ onPress, message, disabled, }: HelpRequestOptionProps) => React.JSX.Element;
8
+ export declare const HelpRequestOption: ({ onPress, message, disabled, hoverColor, }: HelpRequestOptionProps) => React.JSX.Element;
8
9
  export {};
9
10
  //# sourceMappingURL=HelpRequestOption.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"HelpRequestOption.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/chatbot/components/Alternatives/HelpRequestOption.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAYzB,KAAK,sBAAsB,GAAG;IAC5B,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,OAAO,EAAE,MAAM,CAAA;IACf,QAAQ,EAAE,OAAO,CAAA;CAClB,CAAA;AAED,eAAO,MAAM,iBAAiB,oCAI3B,sBAAsB,sBAoCxB,CAAA"}
1
+ {"version":3,"file":"HelpRequestOption.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/chatbot/components/Alternatives/HelpRequestOption.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAA;AAK1D,KAAK,sBAAsB,GAAG;IAC5B,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,OAAO,EAAE,MAAM,CAAA;IACf,QAAQ,EAAE,OAAO,CAAA;IACjB,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB,CAAA;AAED,eAAO,MAAM,iBAAiB,gDAK3B,sBAAsB,sBAyCxB,CAAA"}
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import { Colors } from '@magmamath/react-native-ui';
2
3
  import { T2SState } from '../../types/t2s.types';
3
4
  import { MessageVariant } from '../../types/model.types';
4
5
  import { ConversationMessage } from '../../types/units.types';
@@ -8,6 +9,7 @@ type ChatMessageProps = {
8
9
  t2sState: T2SState;
9
10
  isTranslated?: boolean;
10
11
  withIcon?: boolean;
12
+ backgroundColor?: Colors;
11
13
  };
12
14
  export type VariantProps = Omit<ChatMessageProps, 'variant'>;
13
15
  export declare const ChatMessage: ({ variant, ...props }: ChatMessageProps) => React.JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"ChatMessage.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/chatbot/components/ChatMessage/ChatMessage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwB,MAAM,OAAO,CAAA;AAG5C,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AACxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAA;AAE7D,KAAK,gBAAgB,GAAG;IACtB,OAAO,EAAE,cAAc,CAAA;IACvB,OAAO,EAAE,mBAAmB,CAAA;IAC5B,QAAQ,EAAE,QAAQ,CAAA;IAClB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,MAAM,MAAM,YAAY,GAAG,IAAI,CAAC,gBAAgB,EAAE,SAAS,CAAC,CAAA;AAO5D,eAAO,MAAM,WAAW,0BAA2B,gBAAgB,sBAGlE,CAAA"}
1
+ {"version":3,"file":"ChatMessage.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/chatbot/components/ChatMessage/ChatMessage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwB,MAAM,OAAO,CAAA;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAA;AAInD,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AACxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAA;AAE7D,KAAK,gBAAgB,GAAG;IACtB,OAAO,EAAE,cAAc,CAAA;IACvB,OAAO,EAAE,mBAAmB,CAAA;IAC5B,QAAQ,EAAE,QAAQ,CAAA;IAClB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,eAAe,CAAC,EAAE,MAAM,CAAA;CACzB,CAAA;AAED,MAAM,MAAM,YAAY,GAAG,IAAI,CAAC,gBAAgB,EAAE,SAAS,CAAC,CAAA;AAO5D,eAAO,MAAM,WAAW,0BAA2B,gBAAgB,sBAGlE,CAAA"}
@@ -1,3 +1,7 @@
1
1
  import React from 'react';
2
- export declare const MessageLoader: () => React.JSX.Element;
2
+ type MessageLoaderProps = {
3
+ dotsColor?: string;
4
+ };
5
+ export declare const MessageLoader: ({ dotsColor }: MessageLoaderProps) => React.JSX.Element;
6
+ export {};
3
7
  //# sourceMappingURL=MessageLoader.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"MessageLoader.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/chatbot/components/ChatMessage/MessageLoader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAKzB,eAAO,MAAM,aAAa,yBASzB,CAAA"}
1
+ {"version":3,"file":"MessageLoader.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/chatbot/components/ChatMessage/MessageLoader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAOzB,KAAK,kBAAkB,GAAG;IACxB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,aAAa,kBAAyC,kBAAkB,sBASpF,CAAA"}
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  import { VariantProps } from './ChatMessage';
3
- export declare const SentMessage: React.MemoExoticComponent<({ message, isTranslated }: VariantProps) => React.JSX.Element>;
3
+ export declare const SentMessage: React.MemoExoticComponent<({ message, isTranslated, backgroundColor }: VariantProps) => React.JSX.Element>;
4
4
  //# sourceMappingURL=SentMessage.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SentMessage.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/chatbot/components/ChatMessage/SentMessage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAE5C,eAAO,MAAM,WAAW,wDAA0C,YAAY,uBAQ5E,CAAA"}
1
+ {"version":3,"file":"SentMessage.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/chatbot/components/ChatMessage/SentMessage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAE5C,eAAO,MAAM,WAAW,yEAC6C,YAAY,uBAShF,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"ChatbotMessages.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/chatbot/components/ChatMessages/ChatbotMessages.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiB,MAAM,OAAO,CAAA;AAGrC,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAMvD,KAAK,oBAAoB,GAAG;IAC1B,KAAK,EAAE,YAAY,CAAA;IACnB,cAAc,EAAE,OAAO,CAAA;IACvB,qBAAqB,EAAE,OAAO,CAAA;CAC/B,CAAA;AAQD,eAAO,MAAM,eAAe,sDAIzB,oBAAoB,sBAoEtB,CAAA"}
1
+ {"version":3,"file":"ChatbotMessages.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/chatbot/components/ChatMessages/ChatbotMessages.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiB,MAAM,OAAO,CAAA;AAKrC,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAMvD,KAAK,oBAAoB,GAAG;IAC1B,KAAK,EAAE,YAAY,CAAA;IACnB,cAAc,EAAE,OAAO,CAAA;IACvB,qBAAqB,EAAE,OAAO,CAAA;CAC/B,CAAA;AAQD,eAAO,MAAM,eAAe,sDAIzB,oBAAoB,sBAkFtB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"ThreeDotsLoader.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/chatbot/components/ThreeDotsLoader/ThreeDotsLoader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,KAAK,eAAe,GAAG;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,eAAe,CAAC,EAAE,MAAM,CAAA;CACzB,CAAA;AAED,eAAO,MAAM,eAAe,uDAIzB,eAAe,sBAgDjB,CAAA"}
1
+ {"version":3,"file":"ThreeDotsLoader.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/chatbot/components/ThreeDotsLoader/ThreeDotsLoader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAA;AAKjD,KAAK,eAAe,GAAG;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,eAAe,CAAC,EAAE,MAAM,CAAA;CACzB,CAAA;AAED,eAAO,MAAM,eAAe,uDAIzB,eAAe,sBA4CjB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"ChatBotModel.d.ts","sourceRoot":"","sources":["../../../../../../src/features/chatbot/model/ChatBotModel.ts"],"names":[],"mappings":"AAAA,OAAO,EAQL,KAAK,KAAK,EACX,MAAM,UAAU,CAAA;AACjB,OAAO,EACL,cAAc,EACd,iBAAiB,EACjB,qBAAqB,EACrB,cAAc,EAEd,mBAAmB,EAEnB,sBAAsB,EACvB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAA;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAA;AAClD,OAAO,EAAE,qBAAqB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAExD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAE7D,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAA;AAExE,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAEzD,KAAK,uBAAuB,GAAG;IAC7B,GAAG,EAAE,MAAM,CAAA;CACZ,CAAA;AAED,qBAAa,YAAY;IACvB,SAAgB,WAAW,qBAA2B;IACtD,OAAO,CAAC,QAAQ,CAAC,eAAe,CAA4B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,QAAQ,CAAC,eAAe,CAEe;IAE/C,SAAgB,QAAQ,EAAE,eAAe,CAOxC;CACF"}
1
+ {"version":3,"file":"ChatBoxTextManager.d.ts","sourceRoot":"","sources":["../../../../../../src/features/chatbot/model/ChatBoxTextManager.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAGtD,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,QAAQ,CAAC,eAAe,CAEe;IAE/C,SAAgB,QAAQ,EAAE,eAAe,CAQxC;CACF"}
@@ -7,6 +7,7 @@ export type ChatbotMessages = {
7
7
  start: ConversationMessage;
8
8
  endMessage: ConversationMessage;
9
9
  anotherHintOption: ChatAnswer;
10
+ hintsLimitReached: ConversationMessage;
10
11
  };
11
12
  export type ChatbotApiRequests = {
12
13
  getAlternatives: (props: GetAlternativesPayload) => Promise<GetAlternativesResponse>;
@@ -73,6 +74,7 @@ export type ChatbotContext = {
73
74
  answer?: string | string[];
74
75
  translationTargetLanguage: string;
75
76
  imageDescription?: string;
77
+ isPracticeMode?: boolean;
76
78
  };
77
79
  export {};
78
80
  //# sourceMappingURL=model.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"model.types.d.ts","sourceRoot":"","sources":["../../../../../../src/features/chatbot/types/model.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAA;AACrC,OAAO,EACL,eAAe,EACf,gBAAgB,EAChB,oBAAoB,EACpB,qBAAqB,EACrB,sBAAsB,EACtB,uBAAuB,EACvB,wBAAwB,EACxB,yBAAyB,EACzB,sBAAsB,EACtB,uBAAuB,EACvB,kBAAkB,EAClB,mBAAmB,EACpB,MAAM,aAAa,CAAA;AACpB,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AAC/D,OAAO,EAAE,UAAU,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAE/E,MAAM,MAAM,e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ACjC,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAC1B,CAAA"}
1
+ {"version":3,"file":"model.types.d.ts","sourceRoot":"","sources":["../../../../../../src/features/chatbot/types/model.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAA;AACrC,OAAO,EACL,eAAe,EACf,gBAAgB,EAChB,oBAAoB,EACpB,qBAAqB,EACrB,sBAAsB,EACtB,uBAAuB,EACvB,wBAAwB,EACxB,yBAAyB,EACzB,sBAAsB,EACtB,uBAAuB,EACvB,kBAAkB,EAClB,mBAAmB,EACpB,MAAM,aAAa,CAAA;AACpB,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AAC/D,OAAO,EAAE,UAAU,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAE/E,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,EAAE,mBAAmB,CAAA;IAC1B,KAAK,EAAE,mBAAmB,CAAA;IAC1B,UAAU,EAAE,mBAAmB,CAAA;IAC/B,iBAAiB,EAAE,UAAU,CAAA;IAC7B,iBAAiB,EAAE,mBAAmB,CAAA;CACvC,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG;IAC/B,eAAe,EAAE,CAAC,KAAK,EAAE,sBAAsB,KAAK,OAAO,CAAC,uBAAuB,CAAC,CAAA;IACpF,WAAW,EAAE,CAAC,KAAK,EAAE,kBAAkB,KAAK,OAAO,CAAC,mBAAmB,CAAC,CAAA;IACxE,iBAAiB,EAAE,CAAC,KAAK,EAAE,sBAAsB,KAAK,OAAO,CAAC,uBAAuB,CAAC,CAAA;IACtF,gBAAgB,EAAE,CAAC,KAAK,EAAE,wBAAwB,KAAK,OAAO,CAAC,yBAAyB,CAAC,CAAA;IACzF,SAAS,EAAE,CAAC,KAAK,EAAE,oBAAoB,KAAK,OAAO,CAAC,qBAAqB,CAAC,CAAA;CAC3E,CAAA;AAED,KAAK,eAAe,GAAG;IAC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CAAC,EAAE,cAAc,EAAE,CAAA;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,aAAa,EAAE,MAAM,CAAA;CACtB,CAAA;AAED,MAAM,MAAM,qBAAqB,GAAG;IAClC,qBAAqB,EAAE,KAAK,CAAC,MAAM,GAAG,IAAI,CAAC,CAAA;IAC3C;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,OAAO,CAAC,yBAAyB,GAAG,IAAI,CAAC,CAAA;IACnE,UAAU,IAAI,OAAO,CAAC,uBAAuB,GAAG,IAAI,CAAC,CAAA;CACtD,CAAA;AAED,MAAM,MAAM,cAAc,GAAG;IAC3B,QAAQ,EAAE,MAAM,CAAA;IAChB,OAAO,EAAE,MAAM,CAAA;IACf,aAAa,EAAE,MAAM,EAAE,CAAA;IACvB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAC1B,yBAAyB,EAAE,MAAM,CAAA;IACjC,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,cAAc,CAAC,EAAE,OAAO,CAAA;CACzB,CAAA"}
@@ -19,6 +19,7 @@ export declare const LOCALIZATION_CONFIGS: {
19
19
  errorMessage: string;
20
20
  howCanIHelp: string;
21
21
  showError: string;
22
+ hintsLimitReached: string;
22
23
  };
23
24
  gifCelebrations: {
24
25
  greatStart: string;
@@ -46,6 +47,7 @@ export declare const LOCALIZATION_CONFIGS: {
46
47
  errorMessage: string;
47
48
  howCanIHelp: string;
48
49
  showError: string;
50
+ hintsLimitReached: string;
49
51
  };
50
52
  gifCelebrations: {
51
53
  greatStart: string;
@@ -73,6 +75,7 @@ export declare const LOCALIZATION_CONFIGS: {
73
75
  errorMessage: string;
74
76
  howCanIHelp: string;
75
77
  showError: string;
78
+ hintsLimitReached: string;
76
79
  };
77
80
  gifCelebrations: {
78
81
  greatStart: string;
@@ -100,6 +103,7 @@ export declare const LOCALIZATION_CONFIGS: {
100
103
  errorMessage: string;
101
104
  howCanIHelp: string;
102
105
  showError: string;
106
+ hintsLimitReached: string;
103
107
  };
104
108
  gifCelebrations: {
105
109
  greatStart: string;
@@ -127,6 +131,7 @@ export declare const LOCALIZATION_CONFIGS: {
127
131
  errorMessage: string;
128
132
  howCanIHelp: string;
129
133
  showError: string;
134
+ hintsLimitReached: string;
130
135
  };
131
136
  gifCelebrations: {
132
137
  greatStart: string;
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/shared/translation/constants.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMhC,CAAA"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/shared/translation/constants.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMhC,CAAA"}
@@ -20,6 +20,7 @@ export declare const setLocalization: import("effector").EventCallable<{
20
20
  errorMessage: string;
21
21
  howCanIHelp: string;
22
22
  showError: string;
23
+ hintsLimitReached: string;
23
24
  };
24
25
  gifCelebrations: {
25
26
  greatStart: string;
@@ -47,6 +48,7 @@ export declare const $localization: import("effector").StoreWritable<{
47
48
  errorMessage: string;
48
49
  howCanIHelp: string;
49
50
  showError: string;
51
+ hintsLimitReached: string;
50
52
  };
51
53
  gifCelebrations: {
52
54
  greatStart: string;
@@ -1 +1 @@
1
- {"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../../../../src/shared/translation/model.ts"],"names":[],"mappings":"AACA,OAAO,EAAU,YAAY,EAAE,MAAM,SAAS,CAAA;AAC9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAElD,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;cACD,OAAO,oBAAoB,KAAK,YAAY,EACpE,CAAA;AAEH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;EAMzB,CAAA"}
1
+ {"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../../../../src/shared/translation/model.ts"],"names":[],"mappings":"AACA,OAAO,EAAU,YAAY,EAAE,MAAM,SAAS,CAAA;AAC9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAElD,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;cACD,OAAO,oBAAoB,KAAK,YAAY,EACpE,CAAA;AAEH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMzB,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@magmamath/students-features",
3
- "version": "0.6.10",
3
+ "version": "0.6.11-rc.1",
4
4
  "description": "Magmamath features library",
5
5
  "source": "src/index.ts",
6
6
  "main": "src/index.ts",
@@ -1,6 +1,8 @@
1
1
  import React from 'react'
2
2
  import { StyleSheet, View } from 'react-native'
3
3
  import { useStoreMap, useUnit } from 'effector-react'
4
+ import { COLORS } from '@magmamath/react-native-ui'
5
+
4
6
  import { HelpRequestOption } from './HelpRequestOption'
5
7
  import { useChatModel } from '../../context/ChatBotModelContext'
6
8
 
@@ -23,6 +25,7 @@ export const Alternatives = ({
23
25
  const lastMessage = messages.at(-1)
24
26
  return lastMessage?.options ?? []
25
27
  })
28
+ const context = useUnit(model.$context)
26
29
 
27
30
  const options = (() => {
28
31
  if (hasMessages) return lastMessageOptions
@@ -38,6 +41,7 @@ export const Alternatives = ({
38
41
  onPress={() => onPressAlternative(text, translatedText)}
39
42
  message={isTranslated ? (translatedText as string) : text}
40
43
  disabled={isTranslationPending}
44
+ hoverColor={context?.isPracticeMode ? COLORS.PRIMARY_YELLOW : COLORS.PRIMARY_BLUE}
41
45
  />
42
46
  ))}
43
47
  </View>
@@ -1,44 +1,40 @@
1
- import React from 'react'
2
- import { useEffect, useRef, useState } from 'react'
3
- import { Animated, Platform, Pressable, StyleSheet } from 'react-native'
1
+ import React, { useEffect, useRef, useState } from 'react'
2
+ import { Animated, Pressable, StyleSheet } from 'react-native'
3
+ import { COLORS, FONT_FAMILY, SPACING } from '@magmamath/react-native-ui'
4
4
  import { ArrowRightIcon } from '../../../../shared/icons/ArrowRightIcon'
5
5
 
6
- const transitionColor = (isHovered: boolean, value: Animated.Value) =>
7
- Animated.timing(value, {
8
- toValue: isHovered ? 1 : 0,
9
- duration: 200,
10
- useNativeDriver: Platform.OS !== 'web',
11
- }).start()
12
-
13
6
  type HelpRequestOptionProps = {
14
7
  onPress: () => void
15
8
  message: string
16
9
  disabled: boolean
10
+ hoverColor?: string
17
11
  }
18
12
 
19
13
  export const HelpRequestOption = ({
20
14
  onPress,
21
15
  message,
22
16
  disabled = false,
17
+ hoverColor = COLORS.PRIMARY_BLUE,
23
18
  }: HelpRequestOptionProps) => {
24
19
  const [isHovered, setIsHovered] = useState(false)
20
+ const hoverAnim = useRef(new Animated.Value(0)).current
25
21
 
26
- const backgroundColor = useRef(new Animated.Value(0)).current
27
- const backgroundInterpolation = backgroundColor.interpolate({
22
+ const backgroundColor = hoverAnim.interpolate({
28
23
  inputRange: [0, 1],
29
- outputRange: ['#FFFFFF', '#55ABE0'],
24
+ outputRange: [COLORS.NEUTRAL_1, hoverColor],
30
25
  })
31
-
32
- const textColor = useRef(new Animated.Value(0)).current
33
- const textInterpolation = textColor.interpolate({
26
+ const textColor = hoverAnim.interpolate({
34
27
  inputRange: [0, 1],
35
- outputRange: ['#33334D', '#FFFFFF'],
28
+ outputRange: [COLORS.NEUTRAL_10, COLORS.NEUTRAL_1],
36
29
  })
37
30
 
38
31
  useEffect(() => {
39
- transitionColor(isHovered, backgroundColor)
40
- transitionColor(isHovered, textColor)
41
- }, [isHovered])
32
+ Animated.timing(hoverAnim, {
33
+ toValue: isHovered ? 1 : 0,
34
+ duration: 200,
35
+ useNativeDriver: false,
36
+ }).start()
37
+ }, [isHovered, hoverAnim])
42
38
 
43
39
  return (
44
40
  <Pressable
@@ -47,12 +43,16 @@ export const HelpRequestOption = ({
47
43
  onPress={onPress}
48
44
  style={styles.button}
49
45
  disabled={disabled}
46
+ accessibilityState={{ disabled }}
47
+ accessibilityRole="button"
50
48
  >
51
- <Animated.View style={[styles.textWrapper, { backgroundColor: backgroundInterpolation }]}>
52
- <Animated.Text numberOfLines={1} style={[styles.text, { color: textInterpolation }]}>
49
+ <Animated.View
50
+ style={[styles.textWrapper, { backgroundColor, borderColor: backgroundColor }]}
51
+ >
52
+ <Animated.Text numberOfLines={1} style={[styles.text, { color: textColor }]}>
53
53
  {message}
54
54
  </Animated.Text>
55
- <ArrowRightIcon color={isHovered ? '#FFFFFF' : '#33334D'} />
55
+ <ArrowRightIcon color={isHovered ? COLORS.NEUTRAL_1 : COLORS.NEUTRAL_10} />
56
56
  </Animated.View>
57
57
  </Pressable>
58
58
  )
@@ -68,8 +68,8 @@ const styles = StyleSheet.create({
68
68
  text: {
69
69
  fontSize: 20,
70
70
  fontWeight: 400,
71
- fontFamily: 'Buenos Aires',
72
- color: '#33334D',
71
+ fontFamily: FONT_FAMILY.buenosAires,
72
+ color: COLORS.NEUTRAL_10,
73
73
  },
74
74
  textWrapper: {
75
75
  flex: 1,
@@ -77,16 +77,15 @@ const styles = StyleSheet.create({
77
77
  alignItems: 'center',
78
78
  justifyContent: 'space-between',
79
79
  maxWidth: 305,
80
- paddingHorizontal: 16,
81
- paddingVertical: 8,
80
+ paddingHorizontal: SPACING[400],
81
+ paddingVertical: SPACING[200],
82
82
  borderWidth: 1,
83
83
  borderRadius: 48,
84
- borderColor: '#55ABE0',
85
84
  elevation: 3,
86
85
  shadowColor: '#333',
87
86
  shadowOffset: { width: 0, height: 1 },
88
87
  shadowOpacity: 0.25,
89
88
  shadowRadius: 3,
90
- backgroundColor: '#FFFFFF',
89
+ backgroundColor: COLORS.NEUTRAL_1,
91
90
  },
92
91
  })
@@ -1,4 +1,6 @@
1
1
  import React, { ComponentType } from 'react'
2
+ import { Colors } from '@magmamath/react-native-ui'
3
+
2
4
  import { ReceivedMessage } from './ReceivedMessage'
3
5
  import { SentMessage } from './SentMessage'
4
6
  import { T2SState } from '../../types/t2s.types'
@@ -11,6 +13,7 @@ type ChatMessageProps = {
11
13
  t2sState: T2SState
12
14
  isTranslated?: boolean
13
15
  withIcon?: boolean
16
+ backgroundColor?: Colors
14
17
  }
15
18
 
16
19
  export type VariantProps = Omit<ChatMessageProps, 'variant'>
@@ -1,15 +1,21 @@
1
1
  import React from 'react'
2
2
  import { StyleSheet, View } from 'react-native'
3
+ import { COLORS } from '@magmamath/react-native-ui'
4
+
3
5
  import { ChatbotIcon } from '../../../../shared/icons/ChatbotIcon'
4
6
  import { ThreeDotsLoader } from '../ThreeDotsLoader/ThreeDotsLoader'
5
7
 
6
- export const MessageLoader = () => (
8
+ type MessageLoaderProps = {
9
+ dotsColor?: string
10
+ }
11
+
12
+ export const MessageLoader = ({ dotsColor = COLORS.PRIMARY_BLUE }: MessageLoaderProps) => (
7
13
  <View style={styles.container}>
8
14
  <View style={styles.icon}>
9
15
  <ChatbotIcon width={60} height={80} />
10
16
  </View>
11
17
  <View style={styles.loader}>
12
- <ThreeDotsLoader />
18
+ <ThreeDotsLoader backgroundColor={dotsColor} />
13
19
  </View>
14
20
  </View>
15
21
  )
@@ -38,6 +44,6 @@ const styles = StyleSheet.create({
38
44
  elevation: 3,
39
45
  borderRadius: 8,
40
46
  borderBottomLeftRadius: 0,
41
- backgroundColor: '#F2F2F4',
47
+ backgroundColor: COLORS.NEUTRAL_3,
42
48
  },
43
49
  })