@magmamath/students-features 1.3.2 → 1.3.3-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 (161) hide show
  1. package/dist/commonjs/features/chatbot/helpers.js +1 -5
  2. package/dist/commonjs/features/chatbot/helpers.js.map +1 -1
  3. package/dist/commonjs/features/chatbot/index.js.map +1 -1
  4. package/dist/commonjs/features/chatbot/model/ChatBotModel.js +6 -7
  5. package/dist/commonjs/features/chatbot/model/ChatBotModel.js.map +1 -1
  6. package/dist/commonjs/features/chatbot/model/ChatBoxTextManager.js +1 -2
  7. package/dist/commonjs/features/chatbot/model/ChatBoxTextManager.js.map +1 -1
  8. package/dist/commonjs/features/chatbot/model/DefaultMessageCreator.js +4 -2
  9. package/dist/commonjs/features/chatbot/model/DefaultMessageCreator.js.map +1 -1
  10. package/dist/commonjs/features/exampleSolution/components/ExampleSolutionModalContent.js +2 -3
  11. package/dist/commonjs/features/exampleSolution/components/ExampleSolutionModalContent.js.map +1 -1
  12. package/dist/commonjs/features/exampleSolution/model/ExampleSolutionApi.js +4 -8
  13. package/dist/commonjs/features/exampleSolution/model/ExampleSolutionApi.js.map +1 -1
  14. package/dist/commonjs/index.js +23 -38
  15. package/dist/commonjs/index.js.map +1 -1
  16. package/dist/commonjs/locales/schema.json +1 -0
  17. package/dist/commonjs/shared/translation/constants.js +2 -17
  18. package/dist/commonjs/shared/translation/constants.js.map +1 -1
  19. package/dist/commonjs/shared/translation/helpers.js +8 -38
  20. package/dist/commonjs/shared/translation/helpers.js.map +1 -1
  21. package/dist/commonjs/shared/translation/hooks.js +7 -15
  22. package/dist/commonjs/shared/translation/hooks.js.map +1 -1
  23. package/dist/commonjs/shared/translation/index.js +0 -25
  24. package/dist/commonjs/shared/translation/index.js.map +1 -1
  25. package/dist/commonjs/shared/translation/types.js +0 -4
  26. package/dist/module/features/chatbot/helpers.js +1 -5
  27. package/dist/module/features/chatbot/helpers.js.map +1 -1
  28. package/dist/module/features/chatbot/index.js.map +1 -1
  29. package/dist/module/features/chatbot/model/ChatBotModel.js +6 -7
  30. package/dist/module/features/chatbot/model/ChatBotModel.js.map +1 -1
  31. package/dist/module/features/chatbot/model/ChatBoxTextManager.js +1 -2
  32. package/dist/module/features/chatbot/model/ChatBoxTextManager.js.map +1 -1
  33. package/dist/module/features/chatbot/model/DefaultMessageCreator.js +3 -2
  34. package/dist/module/features/chatbot/model/DefaultMessageCreator.js.map +1 -1
  35. package/dist/module/features/exampleSolution/components/ExampleSolutionModalContent.js +3 -4
  36. package/dist/module/features/exampleSolution/components/ExampleSolutionModalContent.js.map +1 -1
  37. package/dist/module/features/exampleSolution/model/ExampleSolutionApi.js +5 -9
  38. package/dist/module/features/exampleSolution/model/ExampleSolutionApi.js.map +1 -1
  39. package/dist/module/index.js +0 -1
  40. package/dist/module/index.js.map +1 -1
  41. package/dist/module/locales/schema.json +1 -0
  42. package/dist/module/shared/translation/constants.js +1 -15
  43. package/dist/module/shared/translation/constants.js.map +1 -1
  44. package/dist/module/shared/translation/helpers.js +6 -33
  45. package/dist/module/shared/translation/helpers.js.map +1 -1
  46. package/dist/module/shared/translation/hooks.js +7 -14
  47. package/dist/module/shared/translation/hooks.js.map +1 -1
  48. package/dist/module/shared/translation/index.js +2 -3
  49. package/dist/module/shared/translation/index.js.map +1 -1
  50. package/dist/module/shared/translation/types.js +0 -2
  51. package/dist/typescript/commonjs/features/chatbot/helpers.d.ts.map +1 -1
  52. package/dist/typescript/commonjs/features/chatbot/index.d.ts +1 -1
  53. package/dist/typescript/commonjs/features/chatbot/index.d.ts.map +1 -1
  54. package/dist/typescript/commonjs/features/chatbot/model/ChatBotModel.d.ts.map +1 -1
  55. package/dist/typescript/commonjs/features/chatbot/model/ChatBoxTextManager.d.ts +1 -2
  56. package/dist/typescript/commonjs/features/chatbot/model/ChatBoxTextManager.d.ts.map +1 -1
  57. package/dist/typescript/commonjs/features/chatbot/model/DefaultMessageCreator.d.ts +1 -2
  58. package/dist/typescript/commonjs/features/chatbot/model/DefaultMessageCreator.d.ts.map +1 -1
  59. package/dist/typescript/commonjs/features/chatbot/types/api.types.d.ts +6 -8
  60. package/dist/typescript/commonjs/features/chatbot/types/api.types.d.ts.map +1 -1
  61. package/dist/typescript/commonjs/features/exampleSolution/components/ExampleSolutionModalContent.d.ts.map +1 -1
  62. package/dist/typescript/commonjs/features/exampleSolution/model/ExampleSolutionApi.d.ts.map +1 -1
  63. package/dist/typescript/commonjs/index.d.ts +0 -1
  64. package/dist/typescript/commonjs/index.d.ts.map +1 -1
  65. package/dist/typescript/commonjs/lib/components/ConditionalWrapper.d.ts +1 -1
  66. package/dist/typescript/commonjs/shared/translation/constants.d.ts +1 -368
  67. package/dist/typescript/commonjs/shared/translation/constants.d.ts.map +1 -1
  68. package/dist/typescript/commonjs/shared/translation/helpers.d.ts +1 -5
  69. package/dist/typescript/commonjs/shared/translation/helpers.d.ts.map +1 -1
  70. package/dist/typescript/commonjs/shared/translation/hooks.d.ts +1 -3
  71. package/dist/typescript/commonjs/shared/translation/hooks.d.ts.map +1 -1
  72. package/dist/typescript/commonjs/shared/translation/index.d.ts +3 -3
  73. package/dist/typescript/commonjs/shared/translation/index.d.ts.map +1 -1
  74. package/dist/typescript/commonjs/shared/translation/types.d.ts +1 -4
  75. package/dist/typescript/commonjs/shared/translation/types.d.ts.map +1 -1
  76. package/dist/typescript/module/features/chatbot/helpers.d.ts.map +1 -1
  77. package/dist/typescript/module/features/chatbot/index.d.ts +1 -1
  78. package/dist/typescript/module/features/chatbot/index.d.ts.map +1 -1
  79. package/dist/typescript/module/features/chatbot/model/ChatBotModel.d.ts.map +1 -1
  80. package/dist/typescript/module/features/chatbot/model/ChatBoxTextManager.d.ts +1 -2
  81. package/dist/typescript/module/features/chatbot/model/ChatBoxTextManager.d.ts.map +1 -1
  82. package/dist/typescript/module/features/chatbot/model/DefaultMessageCreator.d.ts +1 -2
  83. package/dist/typescript/module/features/chatbot/model/DefaultMessageCreator.d.ts.map +1 -1
  84. package/dist/typescript/module/features/chatbot/types/api.types.d.ts +6 -8
  85. package/dist/typescript/module/features/chatbot/types/api.types.d.ts.map +1 -1
  86. package/dist/typescript/module/features/exampleSolution/components/ExampleSolutionModalContent.d.ts.map +1 -1
  87. package/dist/typescript/module/features/exampleSolution/model/ExampleSolutionApi.d.ts.map +1 -1
  88. package/dist/typescript/module/index.d.ts +0 -1
  89. package/dist/typescript/module/index.d.ts.map +1 -1
  90. package/dist/typescript/module/lib/components/ConditionalWrapper.d.ts +1 -1
  91. package/dist/typescript/module/shared/translation/constants.d.ts +1 -368
  92. package/dist/typescript/module/shared/translation/constants.d.ts.map +1 -1
  93. package/dist/typescript/module/shared/translation/helpers.d.ts +1 -5
  94. package/dist/typescript/module/shared/translation/helpers.d.ts.map +1 -1
  95. package/dist/typescript/module/shared/translation/hooks.d.ts +1 -3
  96. package/dist/typescript/module/shared/translation/hooks.d.ts.map +1 -1
  97. package/dist/typescript/module/shared/translation/index.d.ts +3 -3
  98. package/dist/typescript/module/shared/translation/index.d.ts.map +1 -1
  99. package/dist/typescript/module/shared/translation/types.d.ts +1 -4
  100. package/dist/typescript/module/shared/translation/types.d.ts.map +1 -1
  101. package/package.json +18 -13
  102. package/src/features/chatbot/helpers.ts +0 -2
  103. package/src/features/chatbot/index.ts +1 -9
  104. package/src/features/chatbot/model/ChatBotModel.ts +10 -7
  105. package/src/features/chatbot/model/ChatBoxTextManager.ts +3 -5
  106. package/src/features/chatbot/model/DefaultMessageCreator.ts +3 -3
  107. package/src/features/chatbot/types/api.types.ts +6 -11
  108. package/src/features/exampleSolution/components/ExampleSolutionModalContent.tsx +3 -4
  109. package/src/features/exampleSolution/model/ExampleSolutionApi.ts +5 -9
  110. package/src/index.ts +0 -1
  111. package/src/locales/schema.json +1 -0
  112. package/src/shared/translation/constants.ts +1 -16
  113. package/src/shared/translation/helpers.ts +5 -45
  114. package/src/shared/translation/hooks.ts +6 -22
  115. package/src/shared/translation/index.ts +3 -3
  116. package/src/shared/translation/types.ts +1 -20
  117. package/dist/commonjs/lib/types/keys.js +0 -2
  118. package/dist/commonjs/lib/types/keys.js.map +0 -1
  119. package/dist/commonjs/shared/translation/localization/ca.json +0 -61
  120. package/dist/commonjs/shared/translation/localization/de.json +0 -61
  121. package/dist/commonjs/shared/translation/localization/en.json +0 -61
  122. package/dist/commonjs/shared/translation/localization/gb.json +0 -61
  123. package/dist/commonjs/shared/translation/localization/sct.json +0 -61
  124. package/dist/commonjs/shared/translation/localization/sw.json +0 -61
  125. package/dist/commonjs/shared/translation/model.js +0 -15
  126. package/dist/commonjs/shared/translation/model.js.map +0 -1
  127. package/dist/commonjs/shared/translation/validation.types.js +0 -6
  128. package/dist/commonjs/shared/translation/validation.types.js.map +0 -1
  129. package/dist/module/lib/types/keys.js +0 -2
  130. package/dist/module/lib/types/keys.js.map +0 -1
  131. package/dist/module/shared/translation/localization/ca.json +0 -61
  132. package/dist/module/shared/translation/localization/de.json +0 -61
  133. package/dist/module/shared/translation/localization/en.json +0 -61
  134. package/dist/module/shared/translation/localization/gb.json +0 -61
  135. package/dist/module/shared/translation/localization/sct.json +0 -61
  136. package/dist/module/shared/translation/localization/sw.json +0 -61
  137. package/dist/module/shared/translation/model.js +0 -11
  138. package/dist/module/shared/translation/model.js.map +0 -1
  139. package/dist/module/shared/translation/validation.types.js +0 -4
  140. package/dist/module/shared/translation/validation.types.js.map +0 -1
  141. package/dist/typescript/commonjs/lib/types/keys.d.ts +0 -8
  142. package/dist/typescript/commonjs/lib/types/keys.d.ts.map +0 -1
  143. package/dist/typescript/commonjs/shared/translation/model.d.ts +0 -125
  144. package/dist/typescript/commonjs/shared/translation/model.d.ts.map +0 -1
  145. package/dist/typescript/commonjs/shared/translation/validation.types.d.ts +0 -21
  146. package/dist/typescript/commonjs/shared/translation/validation.types.d.ts.map +0 -1
  147. package/dist/typescript/module/lib/types/keys.d.ts +0 -8
  148. package/dist/typescript/module/lib/types/keys.d.ts.map +0 -1
  149. package/dist/typescript/module/shared/translation/model.d.ts +0 -125
  150. package/dist/typescript/module/shared/translation/model.d.ts.map +0 -1
  151. package/dist/typescript/module/shared/translation/validation.types.d.ts +0 -21
  152. package/dist/typescript/module/shared/translation/validation.types.d.ts.map +0 -1
  153. package/src/lib/types/keys.ts +0 -18
  154. package/src/shared/translation/localization/ca.json +0 -61
  155. package/src/shared/translation/localization/de.json +0 -61
  156. package/src/shared/translation/localization/en.json +0 -61
  157. package/src/shared/translation/localization/gb.json +0 -61
  158. package/src/shared/translation/localization/sct.json +0 -61
  159. package/src/shared/translation/localization/sw.json +0 -61
  160. package/src/shared/translation/model.ts +0 -16
  161. package/src/shared/translation/validation.types.ts +0 -34
@@ -19,25 +19,19 @@ export type GetAlternativesResponse = {
19
19
  options: AlternativesOptions;
20
20
  };
21
21
  export type SendMessagePayload = {
22
- message: string;
23
22
  problemDescription?: string;
24
23
  problemStandards?: ProblemStandard[];
25
24
  correctAnswer?: string | string[];
26
25
  answerOptions?: string[];
27
26
  altText?: string;
28
27
  language?: string;
28
+ message: string;
29
29
  conversationId?: string;
30
- chatHistory?: ChatHistory;
31
30
  };
32
31
  export type SendMessageResponse = {
33
32
  message: string;
34
33
  conversationId?: string | null;
35
34
  };
36
- export type ChatHistory = {
37
- exerciseId: string;
38
- problemId?: string;
39
- chatVersion?: string;
40
- };
41
35
  export type PostMessagePayload = {
42
36
  language: string;
43
37
  problemAnswer: string[];
@@ -49,7 +43,11 @@ export type PostMessagePayload = {
49
43
  imageCdnId?: string;
50
44
  freeTextMessage?: string;
51
45
  conversationId?: string | null;
52
- chatHistory?: ChatHistory;
46
+ chatHistory?: {
47
+ exerciseId: string;
48
+ problemId: string;
49
+ chatVersion?: string;
50
+ };
53
51
  };
54
52
  export type PostMessageResponse = {
55
53
  message: string;
@@ -1 +1 @@
1
- {"version":3,"file":"api.types.d.ts","sourceRoot":"","sources":["../../../../../../src/features/chatbot/types/api.types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,cAAc,EAC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AA;IAC9B,cAAc,CAAC,EAAE,MAAM,EAAE,CAAA;IACzB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAA;IACvB,UAAU,CAAC,EAAE,SAAS,EAAE,CAAA;CACzB,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG;IACjC,OAAO,EAAE,cAAc,EAAE,CAAA;IACzB,kBAAkB,EAAE,MAAM,CAAA;IAC1B,aAAa,EAAE,MAAM,EAAE,CAAA;IACvB,UAAU,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAC7B,IAAI,EAAE,MAAM,CAAA;CACb,CAAA;AAED,MAAM,MAAM,qBAAqB,GAAG;IAClC,oBAAoB,EAAE,MAAM,EAAE,CAAA;CAC/B,CAAA"}
1
+ {"version":3,"file":"api.types.d.ts","sourceRoot":"","sources":["../../../../../../src/features/chatbot/types/api.types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,cAAc,EACd,MAAM,EACN,YAAY,EACZ,eAAe,EACf,SAAS,EACV,MAAM,eAAe,CAAA;AACtB,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAE/C,MAAM,MAAM,sBAAsB,GAAG;IACnC,cAAc,EAAE,MAAM,CAAA;IACtB,oBAAoB,EAAE,MAAM,CAAA;CAC7B,GAAG,IAAI,CAAA;AAER,MAAM,MAAM,mBAAmB,GAAG;IAChC,OAAO,EAAE,UAAU,EAAE,CAAA;IACrB,KAAK,EAAE,UAAU,EAAE,CAAA;CACpB,CAAA;AAED,MAAM,MAAM,uBAAuB,GAAG;IACpC;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,sBAAsB,EAAE,OAAO,CAAA;IAC/B,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,mBAAmB,CAAA;CAC7B,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG;IAC/B,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3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AE,CAAA;IACxB,QAAQ,EAAE,MAAM,CAAA;IAChB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,kBAAkB,CAAC,EAAE,eAAe,EAAE,CAAA;IACtC,eAAe,CAAC,EAAE,YAAY,EAAE,CAAA;IAChC,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,UAAU,EAAE,MAAM,CAAA;IAClB,YAAY,EAAE,MAAM,CAAA;IACpB,aAAa,CAAC,EAAE,MAAM,EAAE,CAAA;CACzB,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG;IAC7B,OAAO,EAAE,MAAM,CAAA;IACf,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC9B,cAAc,CAAC,EAAE,MAAM,EAAE,CAAA;IACzB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAA;IACvB,UAAU,CAAC,EAAE,SAAS,EAAE,CAAA;CACzB,CAAA;AACD,MAAM,MAAM,oBAAoB,GAAG;IACjC,OAAO,EAAE,cAAc,EAAE,CAAA;IACzB,kBAAkB,EAAE,MAAM,CAAA;IAC1B,aAAa,EAAE,MAAM,EAAE,CAAA;IACvB,UAAU,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAC7B,IAAI,EAAE,MAAM,CAAA;CACb,CAAA;AACD,MAAM,MAAM,qBAAqB,GAAG;IAClC,oBAAoB,EAAE,MAAM,EAAE,CAAA;CAC/B,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"ExampleSolutionModalContent.d.ts","sourceRoot":"","sources":["../../../../../../src/features/exampleSolution/components/ExampleSolutionModalContent.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,OAAO,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAA;AAKrD,KAAK,gCAAgC,GAAG;IACtC,MAAM,EAAE,0BAA0B,CAAA;CACnC,CAAA;AAID,eAAO,MAAM,2BAA2B,8CAErC,gCAAgC,sBAwBlC,CAAA"}
1
+ {"version":3,"file":"ExampleSolutionModalContent.d.ts","sourceRoot":"","sources":["../../../../../../src/features/exampleSolution/components/ExampleSolutionModalContent.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAA;AAKrD,KAAK,gCAAgC,GAAG;IACtC,MAAM,EAAE,0BAA0B,CAAA;CACnC,CAAA;AAID,eAAO,MAAM,2BAA2B,8CAErC,gCAAgC,sBAwBlC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"ExampleSolutionApi.d.ts","sourceRoot":"","sources":["../../../../../../src/features/exampleSolution/model/ExampleSolutionApi.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,2BAA2B,EAAE,MAAM,UAAU,CAAA;AAIlF,KAAK,uBAAuB,GAAG;IAC7B,GAAG,EAAE,0BAA0B,CAAA;IAC/B,YAAY,CAAC,EAAE,2BAA2B,CAAA;CAC3C,CAAA;AAED,qBAAa,mBAAmB;IAC9B,SAAgB,yBAAyB,mKAAA;IACzC,SAAgB,cAAc,CAAC,EAAE,2BAA2B,CAAA;IAE5D,SAAgB,eAAe,+CAO7B;gBAEU,EAAE,GAAG,EAAE,YAAY,EAAE,EAAE,uBAAuB;CAS3D"}
1
+ {"version":3,"file":"ExampleSolutionApi.d.ts","sourceRoot":"","sources":["../../../../../../src/features/exampleSolution/model/ExampleSolutionApi.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,2BAA2B,EAAE,MAAM,UAAU,CAAA;AAIlF,KAAK,uBAAuB,GAAG;IAC7B,GAAG,EAAE,0BAA0B,CAAA;IAC/B,YAAY,CAAC,EAAE,2BAA2B,CAAA;CAC3C,CAAA;AAED,qBAAa,mBAAmB;IAC9B,SAAgB,yBAAyB,mKAAA;IACzC,SAAgB,cAAc,CAAC,EAAE,2BAA2B,CAAA;IAE5D,SAAgB,eAAe,+CAG7B;gBAEU,EAAE,GAAG,EAAE,YAAY,EAAE,EAAE,uBAAuB;CAS3D"}
@@ -1,4 +1,3 @@
1
- export { useFeaturesLocalization, setFeaturesLocalization } from './shared/translation';
2
1
  export { generateRandomId } from './lib/helpers/helpers';
3
2
  export * from './features/chatbot';
4
3
  export * from './features/feedback';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAA;AACvF,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AACxD,cAAc,oBAAoB,CAAA;AAClC,cAAc,qBAAqB,CAAA;AACnC,cAAc,yBAAyB,CAAA;AACvC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,yBAAyB,CAAA;AACvC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,4BAA4B,CAAA;AAC1C,cAAc,4BAA4B,CAAA;AAC1C,cAAc,qBAAqB,CAAA;AACnC,cAAc,sBAAsB,CAAA;AACpC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,kBAAkB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AACxD,cAAc,oBAAoB,CAAA;AAClC,cAAc,qBAAqB,CAAA;AACnC,cAAc,yBAAyB,CAAA;AACvC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,yBAAyB,CAAA;AACvC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,4BAA4B,CAAA;AAC1C,cAAc,4BAA4B,CAAA;AAC1C,cAAc,qBAAqB,CAAA;AACnC,cAAc,sBAAsB,CAAA;AACpC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,kBAAkB,CAAA"}
@@ -4,6 +4,6 @@ type ConditionalWrapperProps = {
4
4
  withWrapper?: boolean;
5
5
  Wrapper?: ComponentType<PropsWithChildren>;
6
6
  };
7
- export declare const ConditionalWrapper: ({ withWrapper, Wrapper, children }: ConditionalWrapperProps) => string | number | boolean | React.JSX.Element | Iterable<React.ReactNode> | null | undefined;
7
+ export declare const ConditionalWrapper: ({ withWrapper, Wrapper, children }: ConditionalWrapperProps) => string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element | null | undefined;
8
8
  export {};
9
9
  //# sourceMappingURL=ConditionalWrapper.d.ts.map
@@ -1,369 +1,2 @@
1
- export declare const LOCALIZATION_CONFIGS: {
2
- "en-SE": {
3
- locale: string;
4
- "teacherFeedback.noComments": string;
5
- "time.justNow": string;
6
- "time.minuteAgo": string;
7
- "time.minutesAgo": string;
8
- "time.hourAgo": string;
9
- "time.hoursAgo": string;
10
- "time.dayAgo": string;
11
- "time.daysAgo": string;
12
- "time.monthAgo": string;
13
- "time.monthsAgo": string;
14
- "time.yearAgo": string;
15
- "time.yearsAgo": string;
16
- chat: {
17
- anotherHint: string;
18
- getHint: string;
19
- needHint: string;
20
- giveHintOpenChat: string;
21
- answerAgain: string;
22
- errorMessage: string;
23
- howCanIHelp: string;
24
- showError: string;
25
- inputPlaceholder: string;
26
- };
27
- gifCelebrations: {
28
- greatStart: string;
29
- onTheWay: string;
30
- almostThere: string;
31
- };
32
- exampleSolution: {
33
- exampleSolution: string;
34
- letMeThink: string;
35
- aha: string;
36
- errorMessage: string;
37
- };
38
- keyboard: {
39
- length: string;
40
- area: string;
41
- volume: string;
42
- weight: string;
43
- time: string;
44
- };
45
- voice: {
46
- deleteRecording: string;
47
- youWontBeAbleToRecover: string;
48
- recordingDeleted: string;
49
- delete: string;
50
- cancel: string;
51
- noMicrophoneAccess: string;
52
- noMicrophoneAccessBySystem: string;
53
- noMicrophoneFound: string;
54
- uploadFailed: string;
55
- redoRecording: string;
56
- redo: string;
57
- thisWillRemoveRecording: string;
58
- transcriptions: string;
59
- attempt: string;
60
- transcriptNotAvailable: string;
61
- };
62
- };
63
- "en-GB": {
64
- locale: string;
65
- "teacherFeedback.noComments": string;
66
- "time.justNow": string;
67
- "time.minuteAgo": string;
68
- "time.minutesAgo": string;
69
- "time.hourAgo": string;
70
- "time.hoursAgo": string;
71
- "time.dayAgo": string;
72
- "time.daysAgo": string;
73
- "time.monthAgo": string;
74
- "time.monthsAgo": string;
75
- "time.yearAgo": string;
76
- "time.yearsAgo": string;
77
- chat: {
78
- anotherHint: string;
79
- getHint: string;
80
- needHint: string;
81
- giveHintOpenChat: string;
82
- answerAgain: string;
83
- errorMessage: string;
84
- howCanIHelp: string;
85
- showError: string;
86
- inputPlaceholder: string;
87
- };
88
- gifCelebrations: {
89
- greatStart: string;
90
- onTheWay: string;
91
- almostThere: string;
92
- };
93
- exampleSolution: {
94
- exampleSolution: string;
95
- letMeThink: string;
96
- aha: string;
97
- errorMessage: string;
98
- };
99
- keyboard: {
100
- length: string;
101
- area: string;
102
- volume: string;
103
- weight: string;
104
- time: string;
105
- };
106
- voice: {
107
- deleteRecording: string;
108
- youWontBeAbleToRecover: string;
109
- recordingDeleted: string;
110
- delete: string;
111
- cancel: string;
112
- noMicrophoneAccess: string;
113
- noMicrophoneAccessBySystem: string;
114
- noMicrophoneFound: string;
115
- uploadFailed: string;
116
- redoRecording: string;
117
- redo: string;
118
- thisWillRemoveRecording: string;
119
- transcriptions: string;
120
- attempt: string;
121
- transcriptNotAvailable: string;
122
- };
123
- };
124
- "sv-SE": {
125
- locale: string;
126
- "teacherFeedback.noComments": string;
127
- "time.justNow": string;
128
- "time.minuteAgo": string;
129
- "time.minutesAgo": string;
130
- "time.hourAgo": string;
131
- "time.hoursAgo": string;
132
- "time.dayAgo": string;
133
- "time.daysAgo": string;
134
- "time.monthAgo": string;
135
- "time.monthsAgo": string;
136
- "time.yearAgo": string;
137
- "time.yearsAgo": string;
138
- chat: {
139
- anotherHint: string;
140
- getHint: string;
141
- needHint: string;
142
- giveHintOpenChat: string;
143
- answerAgain: string;
144
- errorMessage: string;
145
- howCanIHelp: string;
146
- showError: string;
147
- inputPlaceholder: string;
148
- };
149
- gifCelebrations: {
150
- greatStart: string;
151
- onTheWay: string;
152
- almostThere: string;
153
- };
154
- exampleSolution: {
155
- exampleSolution: string;
156
- letMeThink: string;
157
- aha: string;
158
- errorMessage: string;
159
- };
160
- keyboard: {
161
- length: string;
162
- area: string;
163
- volume: string;
164
- weight: string;
165
- time: string;
166
- };
167
- voice: {
168
- deleteRecording: string;
169
- youWontBeAbleToRecover: string;
170
- recordingDeleted: string;
171
- delete: string;
172
- cancel: string;
173
- noMicrophoneAccess: string;
174
- noMicrophoneAccessBySystem: string;
175
- noMicrophoneFound: string;
176
- uploadFailed: string;
177
- redoRecording: string;
178
- redo: string;
179
- thisWillRemoveRecording: string;
180
- transcriptions: string;
181
- attempt: string;
182
- transcriptNotAvailable: string;
183
- };
184
- };
185
- "en-CA": {
186
- locale: string;
187
- "teacherFeedback.noComments": string;
188
- "time.justNow": string;
189
- "time.minuteAgo": string;
190
- "time.minutesAgo": string;
191
- "time.hourAgo": string;
192
- "time.hoursAgo": string;
193
- "time.dayAgo": string;
194
- "time.daysAgo": string;
195
- "time.monthAgo": string;
196
- "time.monthsAgo": string;
197
- "time.yearAgo": string;
198
- "time.yearsAgo": string;
199
- chat: {
200
- anotherHint: string;
201
- getHint: string;
202
- needHint: string;
203
- giveHintOpenChat: string;
204
- answerAgain: string;
205
- errorMessage: string;
206
- howCanIHelp: string;
207
- showError: string;
208
- inputPlaceholder: string;
209
- };
210
- gifCelebrations: {
211
- greatStart: string;
212
- onTheWay: string;
213
- almostThere: string;
214
- };
215
- exampleSolution: {
216
- exampleSolution: string;
217
- letMeThink: string;
218
- aha: string;
219
- errorMessage: string;
220
- };
221
- keyboard: {
222
- length: string;
223
- area: string;
224
- volume: string;
225
- weight: string;
226
- time: string;
227
- };
228
- voice: {
229
- deleteRecording: string;
230
- youWontBeAbleToRecover: string;
231
- recordingDeleted: string;
232
- delete: string;
233
- cancel: string;
234
- noMicrophoneAccess: string;
235
- noMicrophoneAccessBySystem: string;
236
- noMicrophoneFound: string;
237
- uploadFailed: string;
238
- redoRecording: string;
239
- redo: string;
240
- thisWillRemoveRecording: string;
241
- transcriptions: string;
242
- attempt: string;
243
- transcriptNotAvailable: string;
244
- };
245
- };
246
- "en-SCT": {
247
- locale: string;
248
- "teacherFeedback.noComments": string;
249
- "time.justNow": string;
250
- "time.minuteAgo": string;
251
- "time.minutesAgo": string;
252
- "time.hourAgo": string;
253
- "time.hoursAgo": string;
254
- "time.dayAgo": string;
255
- "time.daysAgo": string;
256
- "time.monthAgo": string;
257
- "time.monthsAgo": string;
258
- "time.yearAgo": string;
259
- "time.yearsAgo": string;
260
- chat: {
261
- anotherHint: string;
262
- getHint: string;
263
- needHint: string;
264
- giveHintOpenChat: string;
265
- answerAgain: string;
266
- errorMessage: string;
267
- howCanIHelp: string;
268
- showError: string;
269
- inputPlaceholder: string;
270
- };
271
- gifCelebrations: {
272
- greatStart: string;
273
- onTheWay: string;
274
- almostThere: string;
275
- };
276
- exampleSolution: {
277
- exampleSolution: string;
278
- letMeThink: string;
279
- aha: string;
280
- errorMessage: string;
281
- };
282
- keyboard: {
283
- length: string;
284
- area: string;
285
- volume: string;
286
- weight: string;
287
- time: string;
288
- };
289
- voice: {
290
- deleteRecording: string;
291
- youWontBeAbleToRecover: string;
292
- recordingDeleted: string;
293
- delete: string;
294
- cancel: string;
295
- noMicrophoneAccess: string;
296
- noMicrophoneAccessBySystem: string;
297
- noMicrophoneFound: string;
298
- uploadFailed: string;
299
- redoRecording: string;
300
- redo: string;
301
- thisWillRemoveRecording: string;
302
- transcriptions: string;
303
- attempt: string;
304
- transcriptNotAvailable: string;
305
- };
306
- };
307
- "de-DE": {
308
- locale: string;
309
- "teacherFeedback.noComments": string;
310
- "time.justNow": string;
311
- "time.minuteAgo": string;
312
- "time.minutesAgo": string;
313
- "time.hourAgo": string;
314
- "time.hoursAgo": string;
315
- "time.dayAgo": string;
316
- "time.daysAgo": string;
317
- "time.monthAgo": string;
318
- "time.monthsAgo": string;
319
- "time.yearAgo": string;
320
- "time.yearsAgo": string;
321
- chat: {
322
- anotherHint: string;
323
- getHint: string;
324
- needHint: string;
325
- giveHintOpenChat: string;
326
- answerAgain: string;
327
- errorMessage: string;
328
- howCanIHelp: string;
329
- showError: string;
330
- inputPlaceholder: string;
331
- };
332
- gifCelebrations: {
333
- greatStart: string;
334
- onTheWay: string;
335
- almostThere: string;
336
- };
337
- exampleSolution: {
338
- exampleSolution: string;
339
- letMeThink: string;
340
- aha: string;
341
- errorMessage: string;
342
- };
343
- keyboard: {
344
- length: string;
345
- area: string;
346
- volume: string;
347
- weight: string;
348
- time: string;
349
- };
350
- voice: {
351
- deleteRecording: string;
352
- youWontBeAbleToRecover: string;
353
- recordingDeleted: string;
354
- delete: string;
355
- cancel: string;
356
- noMicrophoneAccess: string;
357
- noMicrophoneAccessBySystem: string;
358
- noMicrophoneFound: string;
359
- uploadFailed: string;
360
- redoRecording: string;
361
- redo: string;
362
- thisWillRemoveRecording: string;
363
- transcriptions: string;
364
- attempt: string;
365
- transcriptNotAvailable: string;
366
- };
367
- };
368
- };
1
+ export declare const NAMESPACE = "students-features";
369
2
  //# sourceMappingURL=constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/shared/translation/constants.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOhC,CAAA"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/shared/translation/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,sBAAsB,CAAA"}
@@ -1,7 +1,3 @@
1
- import { LOCALIZATION_CONFIGS } from './constants';
2
- import { GetText, TranslationKeys, Translations } from './types';
3
- export declare function getTranslation(config: Translations, key: TranslationKeys): string;
4
- export declare const getSubstitutedString: (str: string, substitutions?: Record<string, string>) => string;
1
+ import { GetText } from './types';
5
2
  export declare const getText: GetText;
6
- export declare const setFeaturesLocalization: (generator: ((config: typeof LOCALIZATION_CONFIGS) => Translations) | Translations) => void;
7
3
  //# sourceMappingURL=helpers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../src/shared/translation/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAElD,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAEhE,wBAAgB,cAAc,CAAC,MAAM,EAAE,YAAY,EAAE,GAAG,EAAE,eAAe,UAexE;AAED,eAAO,MAAM,oBAAoB,QAAS,MAAM,kBAAiB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,WAWtF,CAAA;AAED,eAAO,MAAM,OAAO,EAAE,OAMrB,CAAA;AAED,eAAO,MAAM,uBAAuB,cACvB,CAAC,CAAC,MAAM,EAAE,OAAO,oBAAoB,KAAK,YAAY,CAAC,GAAG,YAAY,SAGlF,CAAA"}
1
+ {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../src/shared/translation/helpers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AAEjC,eAAO,MAAM,OAAO,EAAE,OAErB,CAAA"}
@@ -1,5 +1,3 @@
1
- import { GetText, Translations } from './types';
2
- import { LOCALIZATION_CONFIGS } from './constants';
1
+ import { GetText } from './types';
3
2
  export declare const useText: () => GetText;
4
- export declare const useFeaturesLocalization: (generator: ((config: typeof LOCALIZATION_CONFIGS) => Translations) | Translations) => void;
5
3
  //# sourceMappingURL=hooks.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../../../src/shared/translation/hooks.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAE/C,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAGlD,eAAO,MAAM,OAAO,QAAO,OAS1B,CAAA;AAED,eAAO,MAAM,uBAAuB,cACvB,CAAC,CAAC,MAAM,EAAE,OAAO,oBAAoB,KAAK,YAAY,CAAC,GAAG,YAAY,SAKlF,CAAA"}
1
+ {"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../../../src/shared/translation/hooks.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AAEjC,eAAO,MAAM,OAAO,QAAO,OAG1B,CAAA"}
@@ -1,4 +1,4 @@
1
- export { useFeaturesLocalization, useText } from './hooks';
2
- export { setFeaturesLocalization, getText as t } from './helpers';
3
- export { $localization, setLocalization } from './model';
1
+ export { useText } from './hooks';
2
+ export { getText as t } from './helpers';
3
+ export type { TranslationKeys, GetText } from './types';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/shared/translation/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AAC1D,OAAO,EAAE,uBAAuB,EAAE,OAAO,IAAI,CAAC,EAAE,MAAM,WAAW,CAAA;AACjE,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/shared/translation/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AACjC,OAAO,EAAE,OAAO,IAAI,CAAC,EAAE,MAAM,WAAW,CAAA;AACxC,YAAY,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA"}
@@ -1,6 +1,3 @@
1
- import enTranslations from './localization/en.json';
2
- import { RetrieveKeys } from '../../lib/types/keys';
3
- export type Translations = typeof enTranslations;
4
- export type TranslationKeys = RetrieveKeys<Translations>;
1
+ export type TranslationKeys = string;
5
2
  export type GetText = (key: TranslationKeys, args?: Record<string, string> | null) => string;
6
3
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/shared/translation/types.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,wBAAwB,CAAA;AAOnD,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAGnD,MAAM,MAAM,YAAY,GAAG,OAAO,cAAc,CAAA;AAChD,MAAM,MAAM,eAAe,GAAG,YAAY,CAAC,YAAY,CAAC,CAAA;AACxD,MAAM,MAAM,OAAO,GAAG,CAAC,GAAG,EAAE,eAAe,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,KAAK,MAAM,CAAA"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/shared/translation/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,GAAG,MAAM,CAAA;AACpC,MAAM,MAAM,OAAO,GAAG,CAAC,GAAG,EAAE,eAAe,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,KAAK,MAAM,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@magmamath/students-features",
3
- "version": "1.3.2",
3
+ "version": "1.3.3-rc.1",
4
4
  "description": "Magmamath features library",
5
5
  "source": "src/index.ts",
6
6
  "main": "src/index.ts",
@@ -15,32 +15,37 @@
15
15
  "scripts": {
16
16
  "clean": "del-cli dist",
17
17
  "prepare": "bob build",
18
- "release": "release-it"
18
+ "release": "release-it",
19
+ "pull-translations": "node scripts/pullTranslations.mjs"
19
20
  },
20
21
  "peerDependencies": {
21
22
  "@magmamath/frontend-config": "1.1.0",
22
23
  "@magmamath/react-native-ui": "*",
24
+ "@react-native-masked-view/masked-view": "*",
23
25
  "effector": "^23.2.3",
24
26
  "effector-react": "^23.2.1",
27
+ "expo": ">=52.0.47",
28
+ "expo-audio": "^1.1.1",
29
+ "i18next": ">=22",
25
30
  "patronum": "^2.3.0",
26
31
  "react": "*",
32
+ "react-i18next": ">=11",
27
33
  "react-native": "*",
28
34
  "react-native-gesture-handler": "*",
35
+ "react-native-linear-gradient": "*",
29
36
  "react-native-modalfy": "*",
30
37
  "react-native-reanimated": ">=0.3.16",
31
- "react-native-svg": "^15.10.0",
32
- "expo-audio": "^1.1.1",
33
- "expo": ">=52.0.47",
34
- "@react-native-masked-view/masked-view": "*",
35
- "react-native-linear-gradient": "*"
38
+ "react-native-svg": "^15.10.0"
36
39
  },
37
40
  "devDependencies": {
38
- "@magmamath/react-native-ui": "0.4.83",
39
41
  "@magmamath/frontend-config": "1.1.0",
42
+ "@magmamath/react-native-ui": "0.4.83",
43
+ "@react-native-masked-view/masked-view": "^0.3.2",
40
44
  "@react-native/eslint-config": "^0.73.1",
41
45
  "@release-it/conventional-changelog": "^9.0.2",
42
46
  "@types/jest": "^29.5.5",
43
47
  "@types/react": "^18.2.44",
48
+ "axios": "^1.13.5",
44
49
  "del-cli": "^5.1.0",
45
50
  "effector": "^23.2.3",
46
51
  "effector-react": "^23.2.1",
@@ -49,21 +54,21 @@
49
54
  "eslint-plugin-prettier": "^5.0.1",
50
55
  "expo": "^52.0.47",
51
56
  "expo-audio": "^1.1.1",
57
+ "i18next": "^22.5.1",
52
58
  "jest": "^29.7.0",
53
- "prettier": "^3.0.3",
54
59
  "patronum": "^2.3.0",
60
+ "prettier": "^3.0.3",
55
61
  "react": "18.3.1",
62
+ "react-i18next": "^11.3.4",
56
63
  "react-native": "0.76.3",
57
64
  "react-native-builder-bob": "^0.33.3",
58
65
  "react-native-gesture-handler": "^2.28.0",
66
+ "react-native-linear-gradient": "^2.8.3",
59
67
  "react-native-modalfy": "^3.7.0",
60
68
  "react-native-reanimated": "^3.17.2",
61
69
  "react-native-svg": "^15.10.0",
62
70
  "release-it": "^17.10.0",
63
- "typescript": "^5.2.2",
64
- "axios": "^1.13.5",
65
- "@react-native-masked-view/masked-view": "^0.3.2",
66
- "react-native-linear-gradient": "^2.8.3"
71
+ "typescript": "^5.2.2"
67
72
  },
68
73
  "resolutions": {
69
74
  "@types/react": "^18.2.44"
@@ -65,7 +65,6 @@ export function prepareChatRequestPayload(
65
65
  imageAltText,
66
66
  answerOptions,
67
67
  answer,
68
- chatHistory,
69
68
  } = payload
70
69
 
71
70
  if (freeTextMessage) {
@@ -87,7 +86,6 @@ export function prepareChatRequestPayload(
87
86
  language,
88
87
  ...(imageCdnId && { imageCdnId }),
89
88
  ...(imageAltText && { altText: imageAltText }),
90
- ...(chatHistory && { chatHistory }),
91
89
  ...(!!problemStandards?.length && { problemStandards }),
92
90
  ...(!!answerOptions?.length && { answerOptions }),
93
91
  },
@@ -7,15 +7,7 @@ export {
7
7
  type IChatDrawBoardAdapter,
8
8
  } from './types/model.types'
9
9
  export type { RequestOptionalConfig } from '../../lib/effector/createControllerEffect'
10
- export type {
11
- PostMessageResponse,
12
- ChatHintPayload,
13
- ChatHintResponse,
14
- GetAlternativesPayload,
15
- GetAlternativesResponse,
16
- SendMessagePayload,
17
- SendMessageResponse,
18
- } from './types/api.types'
10
+ export type { PostMessageResponse } from './types/api.types'
19
11
  export { DefaultMessagesCreator } from './model/DefaultMessageCreator'
20
12
  export type { ChatAnswer } from './types/units.types'
21
13
  export type { ConversationMessage } from './types/units.types'