@magmamath/students-features 0.6.5-rc-21 → 0.6.5-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 (201) hide show
  1. package/dist/commonjs/features/chatbot/model/ChatBotModel.js +3 -3
  2. package/dist/commonjs/features/chatbot/model/ChatBotModel.js.map +1 -1
  3. package/dist/commonjs/features/chatbot/model/ChatBoxTextManager.js +1 -3
  4. package/dist/commonjs/features/chatbot/model/ChatBoxTextManager.js.map +1 -1
  5. package/dist/commonjs/features/chatbot/model/DefaultMessageCreator.js +2 -4
  6. package/dist/commonjs/features/chatbot/model/DefaultMessageCreator.js.map +1 -1
  7. package/dist/commonjs/features/chatbot/model/constants.js.map +1 -1
  8. package/dist/commonjs/features/chatbot/model/translation.js +0 -7
  9. package/dist/commonjs/features/chatbot/model/translation.js.map +1 -1
  10. package/dist/commonjs/features/endOfAssignment/components/Modal/ModalBackground.js +3 -17
  11. package/dist/commonjs/features/endOfAssignment/components/Modal/ModalBackground.js.map +1 -1
  12. package/dist/commonjs/features/feedback/model/comments.js +3 -5
  13. package/dist/commonjs/features/feedback/model/comments.js.map +1 -1
  14. package/dist/commonjs/features/feedback/model/model.js +9 -7
  15. package/dist/commonjs/features/feedback/model/model.js.map +1 -1
  16. package/dist/commonjs/features/gifCelebrations/GifCelebrations.js +65 -0
  17. package/dist/commonjs/features/gifCelebrations/GifCelebrations.js.map +1 -0
  18. package/dist/commonjs/features/gifCelebrations/assets/confetti.webp +0 -0
  19. package/dist/commonjs/features/gifCelebrations/components/Backdrop.js +44 -0
  20. package/dist/commonjs/features/gifCelebrations/components/Backdrop.js.map +1 -0
  21. package/dist/commonjs/features/gifCelebrations/components/ContentContainer.js +46 -0
  22. package/dist/commonjs/features/gifCelebrations/components/ContentContainer.js.map +1 -0
  23. package/dist/commonjs/features/gifCelebrations/components/Gif.js +63 -0
  24. package/dist/commonjs/features/gifCelebrations/components/Gif.js.map +1 -0
  25. package/dist/commonjs/features/gifCelebrations/components/Progress.js +102 -0
  26. package/dist/commonjs/features/gifCelebrations/components/Progress.js.map +1 -0
  27. package/dist/commonjs/features/gifCelebrations/constants.js +18 -0
  28. package/dist/commonjs/features/gifCelebrations/constants.js.map +1 -0
  29. package/dist/commonjs/features/gifCelebrations/helpers.js +67 -0
  30. package/dist/commonjs/features/gifCelebrations/helpers.js.map +1 -0
  31. package/dist/commonjs/features/gifCelebrations/index.js +20 -0
  32. package/dist/commonjs/features/gifCelebrations/index.js.map +1 -0
  33. package/dist/commonjs/features/gifCelebrations/model/GifCelebrations.cache.js +19 -0
  34. package/dist/commonjs/features/gifCelebrations/model/GifCelebrations.cache.js.map +1 -0
  35. package/dist/commonjs/features/gifCelebrations/model/GifCelebrations.model.js +151 -0
  36. package/dist/commonjs/features/gifCelebrations/model/GifCelebrations.model.js.map +1 -0
  37. package/dist/commonjs/features/gifCelebrations/model/GifCelebrationsApi.js +14 -0
  38. package/dist/commonjs/features/gifCelebrations/model/GifCelebrationsApi.js.map +1 -0
  39. package/dist/commonjs/features/gifCelebrations/types/model.types.js +6 -0
  40. package/dist/commonjs/features/gifCelebrations/types/model.types.js.map +1 -0
  41. package/dist/commonjs/index.js +12 -0
  42. package/dist/commonjs/index.js.map +1 -1
  43. package/dist/commonjs/shared/hooks/useImagePreloader.js +20 -0
  44. package/dist/commonjs/shared/hooks/useImagePreloader.js.map +1 -0
  45. package/dist/commonjs/shared/translation/localization/en.json +1 -2
  46. package/dist/commonjs/shared/translation/localization/gb.json +1 -2
  47. package/dist/commonjs/shared/translation/localization/sw.json +1 -2
  48. package/dist/module/features/chatbot/model/ChatBotModel.js +3 -3
  49. package/dist/module/features/chatbot/model/ChatBotModel.js.map +1 -1
  50. package/dist/module/features/chatbot/model/ChatBoxTextManager.js +1 -3
  51. package/dist/module/features/chatbot/model/ChatBoxTextManager.js.map +1 -1
  52. package/dist/module/features/chatbot/model/DefaultMessageCreator.js +2 -4
  53. package/dist/module/features/chatbot/model/DefaultMessageCreator.js.map +1 -1
  54. package/dist/module/features/chatbot/model/constants.js.map +1 -1
  55. package/dist/module/features/chatbot/model/translation.js +0 -7
  56. package/dist/module/features/chatbot/model/translation.js.map +1 -1
  57. package/dist/module/features/endOfAssignment/components/Modal/ModalBackground.js +4 -19
  58. package/dist/module/features/endOfAssignment/components/Modal/ModalBackground.js.map +1 -1
  59. package/dist/module/features/feedback/model/comments.js +3 -5
  60. package/dist/module/features/feedback/model/comments.js.map +1 -1
  61. package/dist/module/features/feedback/model/model.js +9 -7
  62. package/dist/module/features/feedback/model/model.js.map +1 -1
  63. package/dist/module/features/gifCelebrations/GifCelebrations.js +58 -0
  64. package/dist/module/features/gifCelebrations/GifCelebrations.js.map +1 -0
  65. package/dist/module/features/gifCelebrations/assets/confetti.webp +0 -0
  66. package/dist/module/features/gifCelebrations/components/Backdrop.js +36 -0
  67. package/dist/module/features/gifCelebrations/components/Backdrop.js.map +1 -0
  68. package/dist/module/features/gifCelebrations/components/ContentContainer.js +38 -0
  69. package/dist/module/features/gifCelebrations/components/ContentContainer.js.map +1 -0
  70. package/dist/module/features/gifCelebrations/components/Gif.js +56 -0
  71. package/dist/module/features/gifCelebrations/components/Gif.js.map +1 -0
  72. package/dist/module/features/gifCelebrations/components/Progress.js +94 -0
  73. package/dist/module/features/gifCelebrations/components/Progress.js.map +1 -0
  74. package/dist/module/features/gifCelebrations/constants.js +14 -0
  75. package/dist/module/features/gifCelebrations/constants.js.map +1 -0
  76. package/dist/module/features/gifCelebrations/helpers.js +61 -0
  77. package/dist/module/features/gifCelebrations/helpers.js.map +1 -0
  78. package/dist/module/features/gifCelebrations/index.js +5 -0
  79. package/dist/module/features/gifCelebrations/index.js.map +1 -0
  80. package/dist/module/features/gifCelebrations/model/GifCelebrations.cache.js +14 -0
  81. package/dist/module/features/gifCelebrations/model/GifCelebrations.cache.js.map +1 -0
  82. package/dist/module/features/gifCelebrations/model/GifCelebrations.model.js +146 -0
  83. package/dist/module/features/gifCelebrations/model/GifCelebrations.model.js.map +1 -0
  84. package/dist/module/features/gifCelebrations/model/GifCelebrationsApi.js +9 -0
  85. package/dist/module/features/gifCelebrations/model/GifCelebrationsApi.js.map +1 -0
  86. package/dist/module/features/gifCelebrations/types/model.types.js +4 -0
  87. package/dist/module/features/gifCelebrations/types/model.types.js.map +1 -0
  88. package/dist/module/index.js +1 -0
  89. package/dist/module/index.js.map +1 -1
  90. package/dist/module/shared/hooks/useImagePreloader.js +15 -0
  91. package/dist/module/shared/hooks/useImagePreloader.js.map +1 -0
  92. package/dist/module/shared/translation/localization/en.json +1 -2
  93. package/dist/module/shared/translation/localization/gb.json +1 -2
  94. package/dist/module/shared/translation/localization/sw.json +1 -2
  95. package/dist/typescript/commonjs/features/chatbot/model/ChatBoxTextManager.d.ts.map +1 -1
  96. package/dist/typescript/commonjs/features/chatbot/model/DefaultMessageCreator.d.ts +1 -2
  97. package/dist/typescript/commonjs/features/chatbot/model/DefaultMessageCreator.d.ts.map +1 -1
  98. package/dist/typescript/commonjs/features/chatbot/model/constants.d.ts.map +1 -1
  99. package/dist/typescript/commonjs/features/chatbot/model/translation.d.ts.map +1 -1
  100. package/dist/typescript/commonjs/features/endOfAssignment/components/Modal/ModalBackground.d.ts.map +1 -1
  101. package/dist/typescript/commonjs/features/gifCelebrations/GifCelebrations.d.ts +8 -0
  102. package/dist/typescript/commonjs/features/gifCelebrations/GifCelebrations.d.ts.map +1 -0
  103. package/dist/typescript/commonjs/features/gifCelebrations/components/Backdrop.d.ts +9 -0
  104. package/dist/typescript/commonjs/features/gifCelebrations/components/Backdrop.d.ts.map +1 -0
  105. package/dist/typescript/commonjs/features/gifCelebrations/components/ContentContainer.d.ts +9 -0
  106. package/dist/typescript/commonjs/features/gifCelebrations/components/ContentContainer.d.ts.map +1 -0
  107. package/dist/typescript/commonjs/features/gifCelebrations/components/Gif.d.ts +7 -0
  108. package/dist/typescript/commonjs/features/gifCelebrations/components/Gif.d.ts.map +1 -0
  109. package/dist/typescript/commonjs/features/gifCelebrations/components/Progress.d.ts +9 -0
  110. package/dist/typescript/commonjs/features/gifCelebrations/components/Progress.d.ts.map +1 -0
  111. package/dist/typescript/commonjs/features/gifCelebrations/constants.d.ts +12 -0
  112. package/dist/typescript/commonjs/features/gifCelebrations/constants.d.ts.map +1 -0
  113. package/dist/typescript/commonjs/features/gifCelebrations/helpers.d.ts +75 -0
  114. package/dist/typescript/commonjs/features/gifCelebrations/helpers.d.ts.map +1 -0
  115. package/dist/typescript/commonjs/features/gifCelebrations/index.d.ts +3 -0
  116. package/dist/typescript/commonjs/features/gifCelebrations/index.d.ts.map +1 -0
  117. package/dist/typescript/commonjs/features/gifCelebrations/model/GifCelebrations.cache.d.ts +8 -0
  118. package/dist/typescript/commonjs/features/gifCelebrations/model/GifCelebrations.cache.d.ts.map +1 -0
  119. package/dist/typescript/commonjs/features/gifCelebrations/model/GifCelebrations.model.d.ts +23 -0
  120. package/dist/typescript/commonjs/features/gifCelebrations/model/GifCelebrations.model.d.ts.map +1 -0
  121. package/dist/typescript/commonjs/features/gifCelebrations/model/GifCelebrationsApi.d.ts +6 -0
  122. package/dist/typescript/commonjs/features/gifCelebrations/model/GifCelebrationsApi.d.ts.map +1 -0
  123. package/dist/typescript/commonjs/features/gifCelebrations/types/model.types.d.ts +32 -0
  124. package/dist/typescript/commonjs/features/gifCelebrations/types/model.types.d.ts.map +1 -0
  125. package/dist/typescript/commonjs/index.d.ts +1 -0
  126. package/dist/typescript/commonjs/index.d.ts.map +1 -1
  127. package/dist/typescript/commonjs/shared/hooks/useImagePreloader.d.ts +4 -0
  128. package/dist/typescript/commonjs/shared/hooks/useImagePreloader.d.ts.map +1 -0
  129. package/dist/typescript/commonjs/shared/translation/constants.d.ts +0 -3
  130. package/dist/typescript/commonjs/shared/translation/constants.d.ts.map +1 -1
  131. package/dist/typescript/commonjs/shared/translation/model.d.ts +0 -2
  132. package/dist/typescript/commonjs/shared/translation/model.d.ts.map +1 -1
  133. package/dist/typescript/module/features/chatbot/model/ChatBoxTextManager.d.ts.map +1 -1
  134. package/dist/typescript/module/features/chatbot/model/DefaultMessageCreator.d.ts +1 -2
  135. package/dist/typescript/module/features/chatbot/model/DefaultMessageCreator.d.ts.map +1 -1
  136. package/dist/typescript/module/features/chatbot/model/constants.d.ts.map +1 -1
  137. package/dist/typescript/module/features/chatbot/model/translation.d.ts.map +1 -1
  138. package/dist/typescript/module/features/endOfAssignment/components/Modal/ModalBackground.d.ts.map +1 -1
  139. package/dist/typescript/module/features/gifCelebrations/GifCelebrations.d.ts +8 -0
  140. package/dist/typescript/module/features/gifCelebrations/GifCelebrations.d.ts.map +1 -0
  141. package/dist/typescript/module/features/gifCelebrations/components/Backdrop.d.ts +9 -0
  142. package/dist/typescript/module/features/gifCelebrations/components/Backdrop.d.ts.map +1 -0
  143. package/dist/typescript/module/features/gifCelebrations/components/ContentContainer.d.ts +9 -0
  144. package/dist/typescript/module/features/gifCelebrations/components/ContentContainer.d.ts.map +1 -0
  145. package/dist/typescript/module/features/gifCelebrations/components/Gif.d.ts +7 -0
  146. package/dist/typescript/module/features/gifCelebrations/components/Gif.d.ts.map +1 -0
  147. package/dist/typescript/module/features/gifCelebrations/components/Progress.d.ts +9 -0
  148. package/dist/typescript/module/features/gifCelebrations/components/Progress.d.ts.map +1 -0
  149. package/dist/typescript/module/features/gifCelebrations/constants.d.ts +12 -0
  150. package/dist/typescript/module/features/gifCelebrations/constants.d.ts.map +1 -0
  151. package/dist/typescript/module/features/gifCelebrations/helpers.d.ts +75 -0
  152. package/dist/typescript/module/features/gifCelebrations/helpers.d.ts.map +1 -0
  153. package/dist/typescript/module/features/gifCelebrations/index.d.ts +3 -0
  154. package/dist/typescript/module/features/gifCelebrations/index.d.ts.map +1 -0
  155. package/dist/typescript/module/features/gifCelebrations/model/GifCelebrations.cache.d.ts +8 -0
  156. package/dist/typescript/module/features/gifCelebrations/model/GifCelebrations.cache.d.ts.map +1 -0
  157. package/dist/typescript/module/features/gifCelebrations/model/GifCelebrations.model.d.ts +23 -0
  158. package/dist/typescript/module/features/gifCelebrations/model/GifCelebrations.model.d.ts.map +1 -0
  159. package/dist/typescript/module/features/gifCelebrations/model/GifCelebrationsApi.d.ts +6 -0
  160. package/dist/typescript/module/features/gifCelebrations/model/GifCelebrationsApi.d.ts.map +1 -0
  161. package/dist/typescript/module/features/gifCelebrations/types/model.types.d.ts +32 -0
  162. package/dist/typescript/module/features/gifCelebrations/types/model.types.d.ts.map +1 -0
  163. package/dist/typescript/module/index.d.ts +1 -0
  164. package/dist/typescript/module/index.d.ts.map +1 -1
  165. package/dist/typescript/module/shared/hooks/useImagePreloader.d.ts +4 -0
  166. package/dist/typescript/module/shared/hooks/useImagePreloader.d.ts.map +1 -0
  167. package/dist/typescript/module/shared/translation/constants.d.ts +0 -3
  168. package/dist/typescript/module/shared/translation/constants.d.ts.map +1 -1
  169. package/dist/typescript/module/shared/translation/model.d.ts +0 -2
  170. package/dist/typescript/module/shared/translation/model.d.ts.map +1 -1
  171. package/package.json +1 -1
  172. package/src/features/chatbot/model/ChatBotModel.ts +1 -1
  173. package/src/features/chatbot/model/ChatBoxTextManager.ts +1 -3
  174. package/src/features/chatbot/model/DefaultMessageCreator.ts +2 -4
  175. package/src/features/chatbot/model/constants.ts +2 -0
  176. package/src/features/chatbot/model/translation.ts +0 -9
  177. package/src/features/endOfAssignment/components/Modal/ModalBackground.tsx +3 -14
  178. package/src/features/feedback/model/comments.ts +7 -7
  179. package/src/features/feedback/model/model.ts +6 -6
  180. package/src/features/gifCelebrations/GifCelebrations.tsx +75 -0
  181. package/src/features/gifCelebrations/assets/confetti.webp +0 -0
  182. package/src/features/gifCelebrations/components/Backdrop.tsx +40 -0
  183. package/src/features/gifCelebrations/components/ContentContainer.tsx +43 -0
  184. package/src/features/gifCelebrations/components/Gif.tsx +61 -0
  185. package/src/features/gifCelebrations/components/Progress.tsx +108 -0
  186. package/src/features/gifCelebrations/constants.ts +13 -0
  187. package/src/features/gifCelebrations/helpers.ts +68 -0
  188. package/src/features/gifCelebrations/index.ts +2 -0
  189. package/src/features/gifCelebrations/model/GifCelebrations.cache.ts +24 -0
  190. package/src/features/gifCelebrations/model/GifCelebrations.model.ts +177 -0
  191. package/src/features/gifCelebrations/model/GifCelebrationsApi.ts +10 -0
  192. package/src/features/gifCelebrations/types/model.types.ts +36 -0
  193. package/src/index.ts +1 -0
  194. package/src/shared/hooks/useImagePreloader.ts +15 -0
  195. package/src/shared/translation/localization/en.json +1 -2
  196. package/src/shared/translation/localization/gb.json +1 -2
  197. package/src/shared/translation/localization/sw.json +1 -2
  198. package/src/types/types.d.ts +0 -5
  199. package/dist/commonjs/features/endOfAssignment/components/Modal/assets/goblet-bg.webp +0 -0
  200. package/dist/module/features/endOfAssignment/components/Modal/assets/goblet-bg.webp +0 -0
  201. package/src/features/endOfAssignment/components/Modal/assets/goblet-bg.webp +0 -0
@@ -0,0 +1,75 @@
1
+ import { GifsGroups } from './types/model.types';
2
+ type GifSelectProps = {
3
+ gifsGroups: GifsGroups;
4
+ resolvedProblem: number;
5
+ totalProblems: number;
6
+ };
7
+ export declare const gifSelect: ({ gifsGroups, resolvedProblem, totalProblems }: GifSelectProps) => string | null;
8
+ export declare const calculatePercentageTable: (totalProblems: number) => {
9
+ 50: number;
10
+ 33?: undefined;
11
+ 66?: undefined;
12
+ 25?: undefined;
13
+ 75?: undefined;
14
+ 20?: undefined;
15
+ 40?: undefined;
16
+ 60?: undefined;
17
+ 80?: undefined;
18
+ 15?: undefined;
19
+ 30?: undefined;
20
+ 45?: undefined;
21
+ } | {
22
+ 33: number;
23
+ 66: number;
24
+ 50?: undefined;
25
+ 25?: undefined;
26
+ 75?: undefined;
27
+ 20?: undefined;
28
+ 40?: undefined;
29
+ 60?: undefined;
30
+ 80?: undefined;
31
+ 15?: undefined;
32
+ 30?: undefined;
33
+ 45?: undefined;
34
+ } | {
35
+ 25: number;
36
+ 50: number;
37
+ 75: number;
38
+ 33?: undefined;
39
+ 66?: undefined;
40
+ 20?: undefined;
41
+ 40?: undefined;
42
+ 60?: undefined;
43
+ 80?: undefined;
44
+ 15?: undefined;
45
+ 30?: undefined;
46
+ 45?: undefined;
47
+ } | {
48
+ 20: number;
49
+ 40: number;
50
+ 60: number;
51
+ 80: number;
52
+ 50?: undefined;
53
+ 33?: undefined;
54
+ 66?: undefined;
55
+ 25?: undefined;
56
+ 75?: undefined;
57
+ 15?: undefined;
58
+ 30?: undefined;
59
+ 45?: undefined;
60
+ } | {
61
+ 15: number;
62
+ 30: number;
63
+ 45: number;
64
+ 60: number;
65
+ 75: number;
66
+ 50?: undefined;
67
+ 33?: undefined;
68
+ 66?: undefined;
69
+ 25?: undefined;
70
+ 20?: undefined;
71
+ 40?: undefined;
72
+ 80?: undefined;
73
+ };
74
+ export {};
75
+ //# sourceMappingURL=helpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../src/features/gifCelebrations/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAEhD,KAAK,cAAc,GAAG;IACpB,UAAU,EAAE,UAAU,CAAA;IACtB,eAAe,EAAE,MAAM,CAAA;IACvB,aAAa,EAAE,MAAM,CAAA;CACtB,CAAA;AAeD,eAAO,MAAM,SAAS,mDAAoD,cAAc,kBAUvF,CAAA;AAED,eAAO,MAAM,wBAAwB,kBAAmB,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkC7D,CAAA"}
@@ -0,0 +1,3 @@
1
+ export { GifCelebrations } from './GifCelebrations';
2
+ export { GifCelebrationsModel } from './model/GifCelebrations.model';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/gifCelebrations/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAA"}
@@ -0,0 +1,8 @@
1
+ import { GifsGroups, GifsStructure } from '../types/model.types';
2
+ export declare class GifCelebrationsCache {
3
+ readonly initialSet: import("effector").EventCallable<GifsGroups>;
4
+ readonly set: import("effector").EventCallable<GifsStructure>;
5
+ readonly reset: import("effector").EventCallable<void>;
6
+ readonly $gifs: import("effector").StoreWritable<GifsStructure | null>;
7
+ }
8
+ //# sourceMappingURL=GifCelebrations.cache.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GifCelebrations.cache.d.ts","sourceRoot":"","sources":["../../../../../../src/features/gifCelebrations/model/GifCelebrations.cache.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAEhE,qBAAa,oBAAoB;IAC/B,SAAgB,UAAU,+CAA4B;IACtD,SAAgB,GAAG,kDAA+B;IAClD,SAAgB,KAAK,yCAAgB;IAErC,SAAgB,KAAK,yDAca;CACnC"}
@@ -0,0 +1,23 @@
1
+ import { Store } from 'effector';
2
+ import { GifCelebrationsApi } from './GifCelebrationsApi';
3
+ import { GifCelebrationsModelProps, GifObject, ProblemsPercentageTable } from '../types/model.types';
4
+ import { GifCelebrationsCache } from './GifCelebrations.cache';
5
+ export declare class GifCelebrationsModel {
6
+ readonly api: GifCelebrationsApi;
7
+ readonly cache: GifCelebrationsCache;
8
+ readonly $totalProblems: Store<number>;
9
+ readonly $resolvedProblems: Store<number>;
10
+ readonly triggerPlay: import("effector").EventCallable<void>;
11
+ readonly stop: import("effector").EventCallable<void>;
12
+ readonly resetPercentageTable: import("effector").EventCallable<void>;
13
+ readonly $problemsPercentageTable: import("effector").StoreWritable<ProblemsPercentageTable | null>;
14
+ readonly setActiveGif: import("effector").EventCallable<GifObject>;
15
+ readonly $activeGif: import("effector").StoreWritable<GifObject | null>;
16
+ readonly initialize: import("effector").EventCallable<void>;
17
+ readonly resetGroupGifs: import("effector").EventCallable<string>;
18
+ constructor({ api, totalProblems, resolvedProblems }: GifCelebrationsModelProps);
19
+ private setupEventHandlers;
20
+ private readonly handleGifSelection;
21
+ private findGroupForPercentage;
22
+ }
23
+ //# sourceMappingURL=GifCelebrations.model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GifCelebrations.model.d.ts","sourceRoot":"","sources":["../../../../../../src/features/gifCelebrations/model/GifCelebrations.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkD,KAAK,EAAE,MAAM,UAAU,CAAA;AAChF,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AACzD,OAAO,EACL,yBAAyB,EACzB,SAAS,EAGT,uBAAuB,EACxB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAA;AAiB9D,qBAAa,oBAAoB;IAC/B,SAAgB,GAAG,EAAE,kBAAkB,CAAA;IACvC,SAAgB,KAAK,EAAE,oBAAoB,CAAA;IAE3C,SAAgB,cAAc,EAAE,KAAK,CAAC,MAAM,CAAC,CAAA;IAC7C,SAAgB,iBAAiB,EAAE,KAAK,CAAC,MAAM,CAAC,CAAA;IAEhD,SAAgB,WAAW,yCAAgB;IAC3C,SAAgB,IAAI,yCAAgB;IAEpC,SAAgB,oBAAoB,yCAAgB;IACpD,SAAgB,wBAAwB,mEAEN;IAElC,SAAgB,YAAY,8CAA2B;IACvD,SAAgB,UAAU,qDAEe;IAEzC,SAAgB,UAAU,yCAAgB;IAC1C,SAAgB,cAAc,2CAAwB;gBAE1C,EAAE,GAAG,EAAE,aAAa,EAAE,gBAAgB,EAAE,EAAE,yBAAyB;IAU/E,OAAO,CAAC,kBAAkB;IAoD1B,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CA0DlC;IAED,OAAO,CAAC,sBAAsB;CAK/B"}
@@ -0,0 +1,6 @@
1
+ import { GifCelebrationApiRequests } from '../types/model.types';
2
+ export declare class GifCelebrationsApi {
3
+ readonly getGifsFx: import("./../../../lib/effector/createControllerEffect").ControlledEffect<unknown, import("../types/model.types").GifResponse>;
4
+ constructor(api: GifCelebrationApiRequests);
5
+ }
6
+ //# sourceMappingURL=GifCelebrationsApi.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GifCelebrationsApi.d.ts","sourceRoot":"","sources":["../../../../../../src/features/gifCelebrations/model/GifCelebrationsApi.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAA;AAEhE,qBAAa,kBAAkB;IAC7B,SAAgB,SAAS,iIAAA;gBAEb,GAAG,EAAE,yBAAyB;CAG3C"}
@@ -0,0 +1,32 @@
1
+ import { Store } from 'effector';
2
+ export type GifCelebrationApiRequests = {
3
+ getGifs: () => Promise<GifResponse>;
4
+ };
5
+ export type GifCelebrationsModelProps = {
6
+ api: GifCelebrationApiRequests;
7
+ totalProblems: Store<number>;
8
+ resolvedProblems: Store<number>;
9
+ };
10
+ export type GifsGroup = string[];
11
+ export type GifsGroups = Record<`group${number}`, GifsGroup>;
12
+ export type GifObject = {
13
+ url: string;
14
+ isShown: boolean;
15
+ group: `group${number}`;
16
+ };
17
+ export type GifsStructure = Record<`group${number}`, GifObject[]>;
18
+ /**
19
+ * Usually, the response contains 3 groups of gifs:
20
+ * - group1: early celebrations
21
+ * - group2: mid celebrations
22
+ * - group3: party
23
+ */
24
+ export type GifResponse = {
25
+ data: GifsGroups;
26
+ ok: boolean;
27
+ };
28
+ export type GifsPayload = {
29
+ group: number;
30
+ };
31
+ export type ProblemsPercentageTable = Record<number, number>;
32
+ //# sourceMappingURL=model.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"model.types.d.ts","sourceRoot":"","sources":["../../../../../../src/features/gifCelebrations/types/model.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAA;AAEhC,MAAM,MAAM,yBAAyB,GAAG;IACtC,OAAO,EAAE,MAAM,OAAO,CAAC,WAAW,CAAC,CAAA;CACpC,CAAA;AAED,MAAM,MAAM,yBAAyB,GAAG;IACtC,GAAG,EAAE,yBAAyB,CAAA;IAC9B,aAAa,EAAE,KAAK,CAAC,MAAM,CAAC,CAAA;IAC5B,gBAAgB,EAAE,KAAK,CAAC,MAAM,CAAC,CAAA;CAChC,CAAA;AAED,MAAM,MAAM,SAAS,GAAG,MAAM,EAAE,CAAA;AAChC,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,QAAQ,MAAM,EAAE,EAAE,SAAS,CAAC,CAAA;AAE5D,MAAM,MAAM,SAAS,GAAG;IACtB,GAAG,EAAE,MAAM,CAAA;IACX,OAAO,EAAE,OAAO,CAAA;IAChB,KAAK,EAAE,QAAQ,MAAM,EAAE,CAAA;CACxB,CAAA;AAED,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,QAAQ,MAAM,EAAE,EAAE,SAAS,EAAE,CAAC,CAAA;AACjE;;;;;GAKG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,EAAE,UAAU,CAAA;IAChB,EAAE,EAAE,OAAO,CAAA;CACZ,CAAA;AACD,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AACD,MAAM,MAAM,uBAAuB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA"}
@@ -6,4 +6,5 @@ export * from './features/celebrations';
6
6
  export * from './features/endOfAssignment';
7
7
  export * from './features/formulaSheet';
8
8
  export * from './features/problemSelector';
9
+ export * from './features/gifCelebrations';
9
10
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAA;AAC/F,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"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAA;AAC/F,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"}
@@ -0,0 +1,4 @@
1
+ type ImagesUrls = string[];
2
+ export declare const useImagePreloader: (imageUrls: ImagesUrls) => void;
3
+ export {};
4
+ //# sourceMappingURL=useImagePreloader.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useImagePreloader.d.ts","sourceRoot":"","sources":["../../../../../src/shared/hooks/useImagePreloader.ts"],"names":[],"mappings":"AAEA,KAAK,UAAU,GAAG,MAAM,EAAE,CAAA;AAE1B,eAAO,MAAM,iBAAiB,cAAe,UAAU,SAUtD,CAAA"}
@@ -14,7 +14,6 @@ export declare const LOCALIZATION_CONFIGS: {
14
14
  "time.yearsAgo": string;
15
15
  chat: {
16
16
  anotherHint: string;
17
- giveHint: string;
18
17
  answerAgain: string;
19
18
  errorMessage: string;
20
19
  howCanIHelp: string;
@@ -36,7 +35,6 @@ export declare const LOCALIZATION_CONFIGS: {
36
35
  "time.yearsAgo": string;
37
36
  chat: {
38
37
  anotherHint: string;
39
- giveHint: string;
40
38
  answerAgain: string;
41
39
  errorMessage: string;
42
40
  howCanIHelp: string;
@@ -58,7 +56,6 @@ export declare const LOCALIZATION_CONFIGS: {
58
56
  "time.yearsAgo": string;
59
57
  chat: {
60
58
  anotherHint: string;
61
- giveHint: string;
62
59
  answerAgain: string;
63
60
  errorMessage: string;
64
61
  howCanIHelp: string;
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/shared/translation/constants.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIhC,CAAA"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/shared/translation/constants.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIhC,CAAA"}
@@ -15,7 +15,6 @@ export declare const setLocalization: import("effector").EventCallable<{
15
15
  "time.yearsAgo": string;
16
16
  chat: {
17
17
  anotherHint: string;
18
- giveHint: string;
19
18
  answerAgain: string;
20
19
  errorMessage: string;
21
20
  howCanIHelp: string;
@@ -37,7 +36,6 @@ export declare const $localization: import("effector").StoreWritable<{
37
36
  "time.yearsAgo": string;
38
37
  chat: {
39
38
  anotherHint: string;
40
- giveHint: string;
41
39
  answerAgain: string;
42
40
  errorMessage: string;
43
41
  howCanIHelp: 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":"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,CAKxC;CACF"}
@@ -6,7 +6,6 @@ type ChatMessage = Omit<PostMessageResponse, 'threadId'> & {
6
6
  isOwnMessage: boolean;
7
7
  };
8
8
  type DefaultMessageSettings = {
9
- options?: ChatAnswer[];
10
9
  isOwn?: boolean;
11
10
  };
12
11
  type DefaultMessageCreatorProps<K extends string> = {
@@ -16,7 +15,7 @@ export declare class DefaultMessagesCreator<K extends string> {
16
15
  private readonly list;
17
16
  private readonly getter;
18
17
  constructor({ textGetter }: DefaultMessageCreatorProps<K>);
19
- createMessage(key: K, { isOwn, options }?: DefaultMessageSettings): ChatMessage;
18
+ createMessage(key: K, { isOwn }?: DefaultMessageSettings): ChatMessage;
20
19
  createOption(key: K): ChatAnswer;
21
20
  bindToLanguageChanged(event: Event<unknown>): this;
22
21
  }
@@ -1 +1 @@
1
- {"version":3,"file":"DefaultMessageCreator.d.ts","sourceRoot":"","sources":["../../../../../../src/features/chatbot/model/DefaultMessageCreator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAA;AACxD,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAA;AAChC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAEjD,KAAK,WAAW,GAAG,IAAI,CAAC,mBAAmB,EAAE,UAAU,CAAC,GAAG;IACzD,EAAE,EAAE,MAAM,CAAA;IACV,YAAY,EAAE,OAAO,CAAA;CACtB,CAAA;AAED,KAAK,sBAAsB,GAAG;IAC5B,OAAO,CAAC,EAAE,UAAU,EAAE,CAAA;IACtB,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB,CAAA;AAED,KAAK,0BAA0B,CAAC,CAAC,SAAS,MAAM,IAAI;IAClD,UAAU,EAAE,CAAC,GAAG,EAAE,CAAC,KAAK,MAAM,CAAA;CAC/B,CAAA;AAED,qBAAa,sBAAsB,CAAC,CAAC,SAAS,MAAM;IAClD,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAyC;IAC9D,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAA;gBAEX,EAAE,UAAU,EAAE,EAAE,0BAA0B,CAAC,CAAC,CAAC;IAIlD,aAAa,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,KAAa,EAAE,OAAY,EAAE,GAAE,sBAA2B;IAWlF,YAAY,CAAC,GAAG,EAAE,CAAC;IAUnB,qBAAqB,CAAC,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC;CAYnD"}
1
+ {"version":3,"file":"DefaultMessageCreator.d.ts","sourceRoot":"","sources":["../../../../../../src/features/chatbot/model/DefaultMessageCreator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAA;AACxD,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAA;AAChC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAEjD,KAAK,WAAW,GAAG,IAAI,CAAC,mBAAmB,EAAE,UAAU,CAAC,GAAG;IACzD,EAAE,EAAE,MAAM,CAAA;IACV,YAAY,EAAE,OAAO,CAAA;CACtB,CAAA;AAED,KAAK,sBAAsB,GAAG;IAC5B,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB,CAAA;AAED,KAAK,0BAA0B,CAAC,CAAC,SAAS,MAAM,IAAI;IAClD,UAAU,EAAE,CAAC,GAAG,EAAE,CAAC,KAAK,MAAM,CAAA;CAC/B,CAAA;AAED,qBAAa,sBAAsB,CAAC,CAAC,SAAS,MAAM;IAClD,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAyC;IAC9D,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAA;gBAEX,EAAE,UAAU,EAAE,EAAE,0BAA0B,CAAC,CAAC,CAAC;IAIlD,aAAa,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,KAAa,EAAE,GAAE,sBAA2B;IAWpE,YAAY,CAAC,GAAG,EAAE,CAAC;IASnB,qBAAqB,CAAC,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC;CAYnD"}
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../src/features/chatbot/model/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB;;CAEnC,CAAA"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../src/features/chatbot/model/constants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,uBAAuB;;CAEnC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"translation.d.ts","sourceRoot":"","sources":["../../../../../../src/features/chatbot/model/translation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqC,aAAa,EAAmB,KAAK,EAAE,MAAM,UAAU,CAAA;AAOnG,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AACtE,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAA;AAE5D,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAOzC,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAE1D,KAAK,uBAAuB,GAAG;IAC7B,GAAG,EAAE,UAAU,CAAA;IACf,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,CAAA;IACnB,eAAe,EAAE,eAAe,CAAA;IAChC,QAAQ,EAAE,KAAK,CAAC,cAAc,GAAG,IAAI,CAAC,CAAA;IACtC,iBAAiB,EAAE;QACjB,GAAG,EAAE,aAAa,CAAC,uBAAuB,GAAG,IAAI,CAAC,CAAA;QAClD,MAAM,EAAE,KAAK,CAAC,uBAAuB,GAAG,IAAI,CAAC,CAAA;KAC9C,CAAA;IACD,KAAK,EAAE,eAAe,CAAA;CACvB,CAAA;AAED,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAA;IACpB,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAA;IACrB,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAA;IACzB,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAA;IAChC,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAA;IAElC,QAAQ,CAAC,eAAe,yBAAyB;IACjD,QAAQ,CAAC,aAAa,4CAAuC;IAE7D,SAAgB,sBAAsB,gEAAA;IACtC,SAAgB,kBAAkB,iFAAA;gBAEtB,EACV,GAAG,EACH,IAAI,EACJ,eAAe,EACf,iBAAiB,EACjB,QAAQ,EACR,KAAK,GACN,EAAE,uBAAuB;YAyCZ,gBAAgB;IAmB9B,OAAO,CAAC,4BAA4B;IAIpC,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAyDhC;IAED,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CA4BnC;IAEM,KAAK;CAGb"}
1
+ {"version":3,"file":"translation.d.ts","sourceRoot":"","sources":["../../../../../../src/features/chatbot/model/translation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqC,aAAa,EAAmB,KAAK,EAAE,MAAM,UAAU,CAAA;AAOnG,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AACtE,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAA;AAE5D,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAOzC,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAE1D,KAAK,uBAAuB,GAAG;IAC7B,GAAG,EAAE,UAAU,CAAA;IACf,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,CAAA;IACnB,eAAe,EAAE,eAAe,CAAA;IAChC,QAAQ,EAAE,KAAK,CAAC,cAAc,GAAG,IAAI,CAAC,CAAA;IACtC,iBAAiB,EAAE;QACjB,GAAG,EAAE,aAAa,CAAC,uBAAuB,GAAG,IAAI,CAAC,CAAA;QAClD,MAAM,EAAE,KAAK,CAAC,uBAAuB,GAAG,IAAI,CAAC,CAAA;KAC9C,CAAA;IACD,KAAK,EAAE,eAAe,CAAA;CACvB,CAAA;AAED,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAA;IACpB,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAA;IACrB,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAA;IACzB,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAA;IAChC,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAA;IAElC,QAAQ,CAAC,eAAe,yBAAyB;IACjD,QAAQ,CAAC,aAAa,4CAAuC;IAE7D,SAAgB,sBAAsB,gEAAA;IACtC,SAAgB,kBAAkB,iFAAA;gBAEtB,EACV,GAAG,EACH,IAAI,EACJ,eAAe,EACf,iBAAiB,EACjB,QAAQ,EACR,KAAK,GACN,EAAE,uBAAuB;YAyCZ,gBAAgB;IAmB9B,OAAO,CAAC,4BAA4B;IAIpC,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAgDhC;IAED,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CA4BnC;IAEM,KAAK;CAGb"}
@@ -1 +1 @@
1
- {"version":3,"file":"ModalBackground.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/endOfAssignment/components/Modal/ModalBackground.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAczB,eAAO,MAAM,eAAe,yBAa3B,CAAA"}
1
+ {"version":3,"file":"ModalBackground.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/endOfAssignment/components/Modal/ModalBackground.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAOzB,eAAO,MAAM,eAAe,yBAS3B,CAAA"}
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { GifCelebrationsModel } from './model/GifCelebrations.model';
3
+ type GifCelebrationsProps = {
4
+ model: GifCelebrationsModel;
5
+ };
6
+ export declare const GifCelebrations: ({ model }: GifCelebrationsProps) => React.JSX.Element | null;
7
+ export {};
8
+ //# sourceMappingURL=GifCelebrations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GifCelebrations.d.ts","sourceRoot":"","sources":["../../../../../src/features/gifCelebrations/GifCelebrations.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAA;AAQxC,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAA;AAEpE,KAAK,oBAAoB,GAAG;IAC1B,KAAK,EAAE,oBAAoB,CAAA;CAC5B,CAAA;AAED,eAAO,MAAM,eAAe,cAAe,oBAAoB,6BA4D9D,CAAA"}
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { SharedValue } from 'react-native-reanimated';
3
+ type BackdropProps = {
4
+ children: React.ReactNode;
5
+ progress: SharedValue<number>;
6
+ };
7
+ export declare const Backdrop: ({ children, progress }: BackdropProps) => React.JSX.Element;
8
+ export {};
9
+ //# sourceMappingURL=Backdrop.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Backdrop.d.ts","sourceRoot":"","sources":["../../../../../../src/features/gifCelebrations/components/Backdrop.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAiB,EAAsC,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAGnG,KAAK,aAAa,GAAG;IACnB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,QAAQ,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;CAC9B,CAAA;AAED,eAAO,MAAM,QAAQ,2BAA4B,aAAa,sBAmB7D,CAAA"}
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { SharedValue } from 'react-native-reanimated';
3
+ type ContentContainerProps = {
4
+ children: React.ReactNode;
5
+ progress: SharedValue<number>;
6
+ };
7
+ export declare const ContentContainer: ({ children, progress }: ContentContainerProps) => React.JSX.Element;
8
+ export {};
9
+ //# sourceMappingURL=ContentContainer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ContentContainer.d.ts","sourceRoot":"","sources":["../../../../../../src/features/gifCelebrations/components/ContentContainer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAiB,EAAiC,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAG9F,KAAK,qBAAqB,GAAG;IAC3B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,QAAQ,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;CAC9B,CAAA;AAED,eAAO,MAAM,gBAAgB,2BAA4B,qBAAqB,sBAsB7E,CAAA"}
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ type GifProps = {
3
+ uri: string;
4
+ };
5
+ export declare const Gif: ({ uri }: GifProps) => React.JSX.Element;
6
+ export {};
7
+ //# sourceMappingURL=Gif.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Gif.d.ts","sourceRoot":"","sources":["../../../../../../src/features/gifCelebrations/components/Gif.tsx"],"names":[],"mappings":"AACA,OAAO,KAAoC,MAAM,OAAO,CAAA;AAMxD,KAAK,QAAQ,GAAG;IACd,GAAG,EAAE,MAAM,CAAA;CACZ,CAAA;AAOD,eAAO,MAAM,GAAG,YAAa,QAAQ,sBA2BpC,CAAA"}
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { SharedValue } from 'react-native-reanimated';
3
+ type ProgressProps = {
4
+ progress: SharedValue<number>;
5
+ completedPercent: number;
6
+ };
7
+ export declare const Progress: ({ progress, completedPercent }: ProgressProps) => React.JSX.Element;
8
+ export {};
9
+ //# sourceMappingURL=Progress.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Progress.d.ts","sourceRoot":"","sources":["../../../../../../src/features/gifCelebrations/components/Progress.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AAQzB,OAAiB,EAAoB,WAAW,EAAe,MAAM,yBAAyB,CAAA;AAO9F,KAAK,aAAa,GAAG;IACnB,QAAQ,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;IAC7B,gBAAgB,EAAE,MAAM,CAAA;CACzB,CAAA;AAED,eAAO,MAAM,QAAQ,mCAAoC,aAAa,sBAuCrE,CAAA"}
@@ -0,0 +1,12 @@
1
+ export declare const BACKDROP_COLOR: {
2
+ INITIAL: string;
3
+ FINAL: string;
4
+ };
5
+ export declare const CONTENT_CONTAINER: {
6
+ ANGLE: number;
7
+ CONTAINER_WIDTH: number;
8
+ SAFE_AREA: number;
9
+ };
10
+ export declare const ANIMATION_DURATION = 1750;
11
+ export declare const MIN_PROBLEMS_TO_SHOW_GIF = 6;
12
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/features/gifCelebrations/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc;;;CAG1B,CAAA;AAED,eAAO,MAAM,iBAAiB;;;;CAI7B,CAAA;AAED,eAAO,MAAM,kBAAkB,OAAO,CAAA;AACtC,eAAO,MAAM,wBAAwB,IAAI,CAAA"}
@@ -0,0 +1,75 @@
1
+ import { GifsGroups } from './types/model.types';
2
+ type GifSelectProps = {
3
+ gifsGroups: GifsGroups;
4
+ resolvedProblem: number;
5
+ totalProblems: number;
6
+ };
7
+ export declare const gifSelect: ({ gifsGroups, resolvedProblem, totalProblems }: GifSelectProps) => string | null;
8
+ export declare const calculatePercentageTable: (totalProblems: number) => {
9
+ 50: number;
10
+ 33?: undefined;
11
+ 66?: undefined;
12
+ 25?: undefined;
13
+ 75?: undefined;
14
+ 20?: undefined;
15
+ 40?: undefined;
16
+ 60?: undefined;
17
+ 80?: undefined;
18
+ 15?: undefined;
19
+ 30?: undefined;
20
+ 45?: undefined;
21
+ } | {
22
+ 33: number;
23
+ 66: number;
24
+ 50?: undefined;
25
+ 25?: undefined;
26
+ 75?: undefined;
27
+ 20?: undefined;
28
+ 40?: undefined;
29
+ 60?: undefined;
30
+ 80?: undefined;
31
+ 15?: undefined;
32
+ 30?: undefined;
33
+ 45?: undefined;
34
+ } | {
35
+ 25: number;
36
+ 50: number;
37
+ 75: number;
38
+ 33?: undefined;
39
+ 66?: undefined;
40
+ 20?: undefined;
41
+ 40?: undefined;
42
+ 60?: undefined;
43
+ 80?: undefined;
44
+ 15?: undefined;
45
+ 30?: undefined;
46
+ 45?: undefined;
47
+ } | {
48
+ 20: number;
49
+ 40: number;
50
+ 60: number;
51
+ 80: number;
52
+ 50?: undefined;
53
+ 33?: undefined;
54
+ 66?: undefined;
55
+ 25?: undefined;
56
+ 75?: undefined;
57
+ 15?: undefined;
58
+ 30?: undefined;
59
+ 45?: undefined;
60
+ } | {
61
+ 15: number;
62
+ 30: number;
63
+ 45: number;
64
+ 60: number;
65
+ 75: number;
66
+ 50?: undefined;
67
+ 33?: undefined;
68
+ 66?: undefined;
69
+ 25?: undefined;
70
+ 20?: undefined;
71
+ 40?: undefined;
72
+ 80?: undefined;
73
+ };
74
+ export {};
75
+ //# sourceMappingURL=helpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../src/features/gifCelebrations/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAEhD,KAAK,cAAc,GAAG;IACpB,UAAU,EAAE,UAAU,CAAA;IACtB,eAAe,EAAE,MAAM,CAAA;IACvB,aAAa,EAAE,MAAM,CAAA;CACtB,CAAA;AAeD,eAAO,MAAM,SAAS,mDAAoD,cAAc,kBAUvF,CAAA;AAED,eAAO,MAAM,wBAAwB,kBAAmB,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkC7D,CAAA"}
@@ -0,0 +1,3 @@
1
+ export { GifCelebrations } from './GifCelebrations';
2
+ export { GifCelebrationsModel } from './model/GifCelebrations.model';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/gifCelebrations/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAA"}
@@ -0,0 +1,8 @@
1
+ import { GifsGroups, GifsStructure } from '../types/model.types';
2
+ export declare class GifCelebrationsCache {
3
+ readonly initialSet: import("effector").EventCallable<GifsGroups>;
4
+ readonly set: import("effector").EventCallable<GifsStructure>;
5
+ readonly reset: import("effector").EventCallable<void>;
6
+ readonly $gifs: import("effector").StoreWritable<GifsStructure | null>;
7
+ }
8
+ //# sourceMappingURL=GifCelebrations.cache.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GifCelebrations.cache.d.ts","sourceRoot":"","sources":["../../../../../../src/features/gifCelebrations/model/GifCelebrations.cache.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAEhE,qBAAa,oBAAoB;IAC/B,SAAgB,UAAU,+CAA4B;IACtD,SAAgB,GAAG,kDAA+B;IAClD,SAAgB,KAAK,yCAAgB;IAErC,SAAgB,KAAK,yDAca;CACnC"}
@@ -0,0 +1,23 @@
1
+ import { Store } from 'effector';
2
+ import { GifCelebrationsApi } from './GifCelebrationsApi';
3
+ import { GifCelebrationsModelProps, GifObject, ProblemsPercentageTable } from '../types/model.types';
4
+ import { GifCelebrationsCache } from './GifCelebrations.cache';
5
+ export declare class GifCelebrationsModel {
6
+ readonly api: GifCelebrationsApi;
7
+ readonly cache: GifCelebrationsCache;
8
+ readonly $totalProblems: Store<number>;
9
+ readonly $resolvedProblems: Store<number>;
10
+ readonly triggerPlay: import("effector").EventCallable<void>;
11
+ readonly stop: import("effector").EventCallable<void>;
12
+ readonly resetPercentageTable: import("effector").EventCallable<void>;
13
+ readonly $problemsPercentageTable: import("effector").StoreWritable<ProblemsPercentageTable | null>;
14
+ readonly setActiveGif: import("effector").EventCallable<GifObject>;
15
+ readonly $activeGif: import("effector").StoreWritable<GifObject | null>;
16
+ readonly initialize: import("effector").EventCallable<void>;
17
+ readonly resetGroupGifs: import("effector").EventCallable<string>;
18
+ constructor({ api, totalProblems, resolvedProblems }: GifCelebrationsModelProps);
19
+ private setupEventHandlers;
20
+ private readonly handleGifSelection;
21
+ private findGroupForPercentage;
22
+ }
23
+ //# sourceMappingURL=GifCelebrations.model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GifCelebrations.model.d.ts","sourceRoot":"","sources":["../../../../../../src/features/gifCelebrations/model/GifCelebrations.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkD,KAAK,EAAE,MAAM,UAAU,CAAA;AAChF,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AACzD,OAAO,EACL,yBAAyB,EACzB,SAAS,EAGT,uBAAuB,EACxB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAA;AAiB9D,qBAAa,oBAAoB;IAC/B,SAAgB,GAAG,EAAE,kBAAkB,CAAA;IACvC,SAAgB,KAAK,EAAE,oBAAoB,CAAA;IAE3C,SAAgB,cAAc,EAAE,KAAK,CAAC,MAAM,CAAC,CAAA;IAC7C,SAAgB,iBAAiB,EAAE,KAAK,CAAC,MAAM,CAAC,CAAA;IAEhD,SAAgB,WAAW,yCAAgB;IAC3C,SAAgB,IAAI,yCAAgB;IAEpC,SAAgB,oBAAoB,yCAAgB;IACpD,SAAgB,wBAAwB,mEAEN;IAElC,SAAgB,YAAY,8CAA2B;IACvD,SAAgB,UAAU,qDAEe;IAEzC,SAAgB,UAAU,yCAAgB;IAC1C,SAAgB,cAAc,2CAAwB;gBAE1C,EAAE,GAAG,EAAE,aAAa,EAAE,gBAAgB,EAAE,EAAE,yBAAyB;IAU/E,OAAO,CAAC,kBAAkB;IAoD1B,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CA0DlC;IAED,OAAO,CAAC,sBAAsB;CAK/B"}
@@ -0,0 +1,6 @@
1
+ import { GifCelebrationApiRequests } from '../types/model.types';
2
+ export declare class GifCelebrationsApi {
3
+ readonly getGifsFx: import("./../../../lib/effector/createControllerEffect").ControlledEffect<unknown, import("../types/model.types").GifResponse>;
4
+ constructor(api: GifCelebrationApiRequests);
5
+ }
6
+ //# sourceMappingURL=GifCelebrationsApi.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GifCelebrationsApi.d.ts","sourceRoot":"","sources":["../../../../../../src/features/gifCelebrations/model/GifCelebrationsApi.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAA;AAEhE,qBAAa,kBAAkB;IAC7B,SAAgB,SAAS,iIAAA;gBAEb,GAAG,EAAE,yBAAyB;CAG3C"}
@@ -0,0 +1,32 @@
1
+ import { Store } from 'effector';
2
+ export type GifCelebrationApiRequests = {
3
+ getGifs: () => Promise<GifResponse>;
4
+ };
5
+ export type GifCelebrationsModelProps = {
6
+ api: GifCelebrationApiRequests;
7
+ totalProblems: Store<number>;
8
+ resolvedProblems: Store<number>;
9
+ };
10
+ export type GifsGroup = string[];
11
+ export type GifsGroups = Record<`group${number}`, GifsGroup>;
12
+ export type GifObject = {
13
+ url: string;
14
+ isShown: boolean;
15
+ group: `group${number}`;
16
+ };
17
+ export type GifsStructure = Record<`group${number}`, GifObject[]>;
18
+ /**
19
+ * Usually, the response contains 3 groups of gifs:
20
+ * - group1: early celebrations
21
+ * - group2: mid celebrations
22
+ * - group3: party
23
+ */
24
+ export type GifResponse = {
25
+ data: GifsGroups;
26
+ ok: boolean;
27
+ };
28
+ export type GifsPayload = {
29
+ group: number;
30
+ };
31
+ export type ProblemsPercentageTable = Record<number, number>;
32
+ //# sourceMappingURL=model.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"model.types.d.ts","sourceRoot":"","sources":["../../../../../../src/features/gifCelebrations/types/model.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAA;AAEhC,MAAM,MAAM,yBAAyB,GAAG;IACtC,OAAO,EAAE,MAAM,OAAO,CAAC,WAAW,CAAC,CAAA;CACpC,CAAA;AAED,MAAM,MAAM,yBAAyB,GAAG;IACtC,GAAG,EAAE,yBAAyB,CAAA;IAC9B,aAAa,EAAE,KAAK,CAAC,MAAM,CAAC,CAAA;IAC5B,gBAAgB,EAAE,KAAK,CAAC,MAAM,CAAC,CAAA;CAChC,CAAA;AAED,MAAM,MAAM,SAAS,GAAG,MAAM,EAAE,CAAA;AAChC,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,QAAQ,MAAM,EAAE,EAAE,SAAS,CAAC,CAAA;AAE5D,MAAM,MAAM,SAAS,GAAG;IACtB,GAAG,EAAE,MAAM,CAAA;IACX,OAAO,EAAE,OAAO,CAAA;IAChB,KAAK,EAAE,QAAQ,MAAM,EAAE,CAAA;CACxB,CAAA;AAED,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,QAAQ,MAAM,EAAE,EAAE,SAAS,EAAE,CAAC,CAAA;AACjE;;;;;GAKG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,EAAE,UAAU,CAAA;IAChB,EAAE,EAAE,OAAO,CAAA;CACZ,CAAA;AACD,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AACD,MAAM,MAAM,uBAAuB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA"}
@@ -6,4 +6,5 @@ export * from './features/celebrations';
6
6
  export * from './features/endOfAssignment';
7
7
  export * from './features/formulaSheet';
8
8
  export * from './features/problemSelector';
9
+ export * from './features/gifCelebrations';
9
10
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAA;AAC/F,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"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAA;AAC/F,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"}
@@ -0,0 +1,4 @@
1
+ type ImagesUrls = string[];
2
+ export declare const useImagePreloader: (imageUrls: ImagesUrls) => void;
3
+ export {};
4
+ //# sourceMappingURL=useImagePreloader.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useImagePreloader.d.ts","sourceRoot":"","sources":["../../../../../src/shared/hooks/useImagePreloader.ts"],"names":[],"mappings":"AAEA,KAAK,UAAU,GAAG,MAAM,EAAE,CAAA;AAE1B,eAAO,MAAM,iBAAiB,cAAe,UAAU,SAUtD,CAAA"}