@magmamath/students-features 0.6.5-rc.13 → 0.6.5-rc.2

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 (144) 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/gifCelebrations/GifCelebrations.js +2 -5
  11. package/dist/commonjs/features/gifCelebrations/GifCelebrations.js.map +1 -1
  12. package/dist/commonjs/features/gifCelebrations/components/Backdrop.js +1 -1
  13. package/dist/commonjs/features/gifCelebrations/components/Backdrop.js.map +1 -1
  14. package/dist/commonjs/features/gifCelebrations/components/ContentContainer.js.map +1 -1
  15. package/dist/commonjs/features/gifCelebrations/components/Gif.js +16 -33
  16. package/dist/commonjs/features/gifCelebrations/components/Gif.js.map +1 -1
  17. package/dist/commonjs/features/gifCelebrations/components/Progress.js +8 -12
  18. package/dist/commonjs/features/gifCelebrations/components/Progress.js.map +1 -1
  19. package/dist/commonjs/features/gifCelebrations/constants.js +1 -13
  20. package/dist/commonjs/features/gifCelebrations/constants.js.map +1 -1
  21. package/dist/commonjs/features/gifCelebrations/helpers.js +27 -31
  22. package/dist/commonjs/features/gifCelebrations/helpers.js.map +1 -1
  23. package/dist/commonjs/features/gifCelebrations/model/GifCelebrations.cache.js +5 -18
  24. package/dist/commonjs/features/gifCelebrations/model/GifCelebrations.cache.js.map +1 -1
  25. package/dist/commonjs/features/gifCelebrations/model/GifCelebrations.model.js +42 -18
  26. package/dist/commonjs/features/gifCelebrations/model/GifCelebrations.model.js.map +1 -1
  27. package/dist/commonjs/lib/helpers/helpers.js.map +1 -1
  28. package/dist/commonjs/shared/translation/localization/en.json +1 -7
  29. package/dist/commonjs/shared/translation/localization/gb.json +1 -7
  30. package/dist/commonjs/shared/translation/localization/sw.json +1 -7
  31. package/dist/module/features/chatbot/model/ChatBotModel.js +3 -3
  32. package/dist/module/features/chatbot/model/ChatBotModel.js.map +1 -1
  33. package/dist/module/features/chatbot/model/ChatBoxTextManager.js +1 -3
  34. package/dist/module/features/chatbot/model/ChatBoxTextManager.js.map +1 -1
  35. package/dist/module/features/chatbot/model/DefaultMessageCreator.js +2 -4
  36. package/dist/module/features/chatbot/model/DefaultMessageCreator.js.map +1 -1
  37. package/dist/module/features/chatbot/model/constants.js.map +1 -1
  38. package/dist/module/features/chatbot/model/translation.js +0 -7
  39. package/dist/module/features/chatbot/model/translation.js.map +1 -1
  40. package/dist/module/features/gifCelebrations/GifCelebrations.js +2 -5
  41. package/dist/module/features/gifCelebrations/GifCelebrations.js.map +1 -1
  42. package/dist/module/features/gifCelebrations/components/Backdrop.js +1 -1
  43. package/dist/module/features/gifCelebrations/components/Backdrop.js.map +1 -1
  44. package/dist/module/features/gifCelebrations/components/ContentContainer.js.map +1 -1
  45. package/dist/module/features/gifCelebrations/components/Gif.js +17 -34
  46. package/dist/module/features/gifCelebrations/components/Gif.js.map +1 -1
  47. package/dist/module/features/gifCelebrations/components/Progress.js +10 -14
  48. package/dist/module/features/gifCelebrations/components/Progress.js.map +1 -1
  49. package/dist/module/features/gifCelebrations/constants.js +0 -12
  50. package/dist/module/features/gifCelebrations/constants.js.map +1 -1
  51. package/dist/module/features/gifCelebrations/helpers.js +25 -28
  52. package/dist/module/features/gifCelebrations/helpers.js.map +1 -1
  53. package/dist/module/features/gifCelebrations/model/GifCelebrations.cache.js +6 -19
  54. package/dist/module/features/gifCelebrations/model/GifCelebrations.cache.js.map +1 -1
  55. package/dist/module/features/gifCelebrations/model/GifCelebrations.model.js +42 -18
  56. package/dist/module/features/gifCelebrations/model/GifCelebrations.model.js.map +1 -1
  57. package/dist/module/shared/translation/localization/en.json +1 -7
  58. package/dist/module/shared/translation/localization/gb.json +1 -7
  59. package/dist/module/shared/translation/localization/sw.json +1 -7
  60. package/dist/typescript/commonjs/features/chatbot/model/ChatBoxTextManager.d.ts.map +1 -1
  61. package/dist/typescript/commonjs/features/chatbot/model/DefaultMessageCreator.d.ts +1 -2
  62. package/dist/typescript/commonjs/features/chatbot/model/DefaultMessageCreator.d.ts.map +1 -1
  63. package/dist/typescript/commonjs/features/chatbot/model/constants.d.ts.map +1 -1
  64. package/dist/typescript/commonjs/features/chatbot/model/translation.d.ts.map +1 -1
  65. package/dist/typescript/commonjs/features/gifCelebrations/GifCelebrations.d.ts +1 -3
  66. package/dist/typescript/commonjs/features/gifCelebrations/GifCelebrations.d.ts.map +1 -1
  67. package/dist/typescript/commonjs/features/gifCelebrations/components/Backdrop.d.ts +1 -2
  68. package/dist/typescript/commonjs/features/gifCelebrations/components/Backdrop.d.ts.map +1 -1
  69. package/dist/typescript/commonjs/features/gifCelebrations/components/ContentContainer.d.ts +1 -2
  70. package/dist/typescript/commonjs/features/gifCelebrations/components/ContentContainer.d.ts.map +1 -1
  71. package/dist/typescript/commonjs/features/gifCelebrations/components/Gif.d.ts +2 -5
  72. package/dist/typescript/commonjs/features/gifCelebrations/components/Gif.d.ts.map +1 -1
  73. package/dist/typescript/commonjs/features/gifCelebrations/components/Progress.d.ts +1 -2
  74. package/dist/typescript/commonjs/features/gifCelebrations/components/Progress.d.ts.map +1 -1
  75. package/dist/typescript/commonjs/features/gifCelebrations/constants.d.ts +0 -10
  76. package/dist/typescript/commonjs/features/gifCelebrations/constants.d.ts.map +1 -1
  77. package/dist/typescript/commonjs/features/gifCelebrations/helpers.d.ts +8 -18
  78. package/dist/typescript/commonjs/features/gifCelebrations/helpers.d.ts.map +1 -1
  79. package/dist/typescript/commonjs/features/gifCelebrations/model/GifCelebrations.cache.d.ts +1 -11
  80. package/dist/typescript/commonjs/features/gifCelebrations/model/GifCelebrations.cache.d.ts.map +1 -1
  81. package/dist/typescript/commonjs/features/gifCelebrations/model/GifCelebrations.model.d.ts +1 -4
  82. package/dist/typescript/commonjs/features/gifCelebrations/model/GifCelebrations.model.d.ts.map +1 -1
  83. package/dist/typescript/commonjs/features/gifCelebrations/types/model.types.d.ts +3 -13
  84. package/dist/typescript/commonjs/features/gifCelebrations/types/model.types.d.ts.map +1 -1
  85. package/dist/typescript/commonjs/lib/helpers/helpers.d.ts.map +1 -1
  86. package/dist/typescript/commonjs/shared/translation/constants.d.ts +0 -18
  87. package/dist/typescript/commonjs/shared/translation/constants.d.ts.map +1 -1
  88. package/dist/typescript/commonjs/shared/translation/model.d.ts +0 -12
  89. package/dist/typescript/commonjs/shared/translation/model.d.ts.map +1 -1
  90. package/dist/typescript/module/features/chatbot/model/ChatBoxTextManager.d.ts.map +1 -1
  91. package/dist/typescript/module/features/chatbot/model/DefaultMessageCreator.d.ts +1 -2
  92. package/dist/typescript/module/features/chatbot/model/DefaultMessageCreator.d.ts.map +1 -1
  93. package/dist/typescript/module/features/chatbot/model/constants.d.ts.map +1 -1
  94. package/dist/typescript/module/features/chatbot/model/translation.d.ts.map +1 -1
  95. package/dist/typescript/module/features/gifCelebrations/GifCelebrations.d.ts +1 -3
  96. package/dist/typescript/module/features/gifCelebrations/GifCelebrations.d.ts.map +1 -1
  97. package/dist/typescript/module/features/gifCelebrations/components/Backdrop.d.ts +1 -2
  98. package/dist/typescript/module/features/gifCelebrations/components/Backdrop.d.ts.map +1 -1
  99. package/dist/typescript/module/features/gifCelebrations/components/ContentContainer.d.ts +1 -2
  100. package/dist/typescript/module/features/gifCelebrations/components/ContentContainer.d.ts.map +1 -1
  101. package/dist/typescript/module/features/gifCelebrations/components/Gif.d.ts +2 -5
  102. package/dist/typescript/module/features/gifCelebrations/components/Gif.d.ts.map +1 -1
  103. package/dist/typescript/module/features/gifCelebrations/components/Progress.d.ts +1 -2
  104. package/dist/typescript/module/features/gifCelebrations/components/Progress.d.ts.map +1 -1
  105. package/dist/typescript/module/features/gifCelebrations/constants.d.ts +0 -10
  106. package/dist/typescript/module/features/gifCelebrations/constants.d.ts.map +1 -1
  107. package/dist/typescript/module/features/gifCelebrations/helpers.d.ts +8 -18
  108. package/dist/typescript/module/features/gifCelebrations/helpers.d.ts.map +1 -1
  109. package/dist/typescript/module/features/gifCelebrations/model/GifCelebrations.cache.d.ts +1 -11
  110. package/dist/typescript/module/features/gifCelebrations/model/GifCelebrations.cache.d.ts.map +1 -1
  111. package/dist/typescript/module/features/gifCelebrations/model/GifCelebrations.model.d.ts +1 -4
  112. package/dist/typescript/module/features/gifCelebrations/model/GifCelebrations.model.d.ts.map +1 -1
  113. package/dist/typescript/module/features/gifCelebrations/types/model.types.d.ts +3 -13
  114. package/dist/typescript/module/features/gifCelebrations/types/model.types.d.ts.map +1 -1
  115. package/dist/typescript/module/lib/helpers/helpers.d.ts.map +1 -1
  116. package/dist/typescript/module/shared/translation/constants.d.ts +0 -18
  117. package/dist/typescript/module/shared/translation/constants.d.ts.map +1 -1
  118. package/dist/typescript/module/shared/translation/model.d.ts +0 -12
  119. package/dist/typescript/module/shared/translation/model.d.ts.map +1 -1
  120. package/package.json +1 -1
  121. package/src/features/chatbot/model/ChatBotModel.ts +1 -1
  122. package/src/features/chatbot/model/ChatBoxTextManager.ts +1 -3
  123. package/src/features/chatbot/model/DefaultMessageCreator.ts +2 -4
  124. package/src/features/chatbot/model/constants.ts +2 -0
  125. package/src/features/chatbot/model/translation.ts +0 -9
  126. package/src/features/gifCelebrations/GifCelebrations.tsx +3 -9
  127. package/src/features/gifCelebrations/components/Backdrop.tsx +2 -3
  128. package/src/features/gifCelebrations/components/ContentContainer.tsx +1 -2
  129. package/src/features/gifCelebrations/components/Gif.tsx +14 -39
  130. package/src/features/gifCelebrations/components/Progress.tsx +9 -17
  131. package/src/features/gifCelebrations/constants.ts +0 -12
  132. package/src/features/gifCelebrations/helpers.ts +32 -39
  133. package/src/features/gifCelebrations/model/GifCelebrations.cache.ts +14 -33
  134. package/src/features/gifCelebrations/model/GifCelebrations.model.ts +41 -39
  135. package/src/features/gifCelebrations/types/model.types.ts +3 -17
  136. package/src/lib/helpers/helpers.ts +1 -1
  137. package/src/shared/translation/localization/en.json +1 -7
  138. package/src/shared/translation/localization/gb.json +1 -7
  139. package/src/shared/translation/localization/sw.json +1 -7
  140. package/dist/commonjs/react-app-env.d.js +0 -2
  141. package/dist/commonjs/react-app-env.d.js.map +0 -1
  142. package/dist/module/react-app-env.d.js +0 -2
  143. package/dist/module/react-app-env.d.js.map +0 -1
  144. package/src/react-app-env.d.ts +0 -5
@@ -13,15 +13,9 @@
13
13
  "time.yearsAgo": "år sedan",
14
14
  "chat": {
15
15
  "anotherHint": "Ge mig en ledtråd",
16
- "giveHint": "Ge mig en ledtråd",
17
16
  "answerAgain": "Svara igen för att få en till ledtråd!",
18
- "errorMessage": "Något gick snett! Försök igen",
17
+ "errorMessage": "Tyvärr kan jag inte hjälpa dig just nu 😔.",
19
18
  "howCanIHelp": "Hej! Hur kan jag hjälpa dig?",
20
19
  "showError": "Visa fel"
21
- },
22
- "gifCelebrations": {
23
- "greatStart": "Bra start!",
24
- "onTheWay": "På god väg!",
25
- "almostThere": "Nästan där"
26
20
  }
27
21
  }
@@ -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,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AE,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,C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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,10 +1,8 @@
1
1
  import React from 'react';
2
2
  import { GifCelebrationsModel } from './model/GifCelebrations.model';
3
- import { TextComponentType } from './types/model.types';
4
3
  type GifCelebrationsProps = {
5
4
  model: GifCelebrationsModel;
6
- TextComponent: TextComponentType;
7
5
  };
8
- export declare const GifCelebrations: ({ model, TextComponent }: GifCelebrationsProps) => React.JSX.Element | null;
6
+ export declare const GifCelebrations: ({ model }: GifCelebrationsProps) => React.JSX.Element | null;
9
7
  export {};
10
8
  //# sourceMappingURL=GifCelebrations.d.ts.map
@@ -1 +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;AACpE,OAAO,EAAiB,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAEtE,KAAK,oBAAoB,GAAG;IAC1B,KAAK,EAAE,oBAAoB,CAAA;IAC3B,aAAa,EAAE,iBAAiB,CAAA;CACjC,CAAA;AAED,eAAO,MAAM,eAAe,6BAA8B,oBAAoB,6BA4D7E,CAAA"}
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,6BAwD9D,CAAA"}
@@ -1,9 +1,8 @@
1
1
  import React from 'react';
2
2
  import { SharedValue } from 'react-native-reanimated';
3
- import { ProgressValue } from '../types/model.types';
4
3
  type BackdropProps = {
5
4
  children: React.ReactNode;
6
- progress: SharedValue<ProgressValue>;
5
+ progress: SharedValue<number>;
7
6
  };
8
7
  export declare const Backdrop: ({ children, progress }: BackdropProps) => React.JSX.Element;
9
8
  export {};
@@ -1 +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;AAEnG,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAEpD,KAAK,aAAa,GAAG;IACnB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,QAAQ,EAAE,WAAW,CAAC,aAAa,CAAC,CAAA;CACrC,CAAA;AAED,eAAO,MAAM,QAAQ,2BAA4B,aAAa,sBAmB7D,CAAA"}
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"}
@@ -1,9 +1,8 @@
1
1
  import React from 'react';
2
2
  import { SharedValue } from 'react-native-reanimated';
3
- import { ProgressValue } from '../types/model.types';
4
3
  type ContentContainerProps = {
5
4
  children: React.ReactNode;
6
- progress: SharedValue<ProgressValue>;
5
+ progress: SharedValue<number>;
7
6
  };
8
7
  export declare const ContentContainer: ({ children, progress }: ContentContainerProps) => React.JSX.Element;
9
8
  export {};
@@ -1 +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;AAE9F,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAEpD,KAAK,qBAAqB,GAAG;IAC3B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,QAAQ,EAAE,WAAW,CAAC,aAAa,CAAC,CAAA;CACrC,CAAA;AAED,eAAO,MAAM,gBAAgB,2BAA4B,qBAAqB,sBAsB7E,CAAA"}
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"}
@@ -1,10 +1,7 @@
1
1
  import React from 'react';
2
- import { CustomGetCachePathMethod, GifObject, TextComponentType } from '../types/model.types';
3
2
  type GifProps = {
4
- gifObject: GifObject;
5
- getCachePathMethod?: CustomGetCachePathMethod;
6
- TextComponent: TextComponentType;
3
+ uri: string;
7
4
  };
8
- export declare const Gif: ({ gifObject, getCachePathMethod, TextComponent }: GifProps) => React.JSX.Element;
5
+ export declare const Gif: ({ uri }: GifProps) => React.JSX.Element;
9
6
  export {};
10
7
  //# sourceMappingURL=Gif.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Gif.d.ts","sourceRoot":"","sources":["../../../../../../src/features/gifCelebrations/components/Gif.tsx"],"names":[],"mappings":"AACA,OAAO,KAAoC,MAAM,OAAO,CAAA;AAExD,OAAO,EAAE,wBAAwB,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AAK7F,KAAK,QAAQ,GAAG;IACd,SAAS,EAAE,SAAS,CAAA;IACpB,kBAAkB,CAAC,EAAE,wBAAwB,CAAA;IAC7C,aAAa,EAAE,iBAAiB,CAAA;CACjC,CAAA;AAOD,eAAO,MAAM,GAAG,qDAAsD,QAAQ,sBA6C7E,CAAA"}
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"}
@@ -1,8 +1,7 @@
1
1
  import React from 'react';
2
2
  import { SharedValue } from 'react-native-reanimated';
3
- import { ProgressValue } from '../types/model.types';
4
3
  type ProgressProps = {
5
- progress: SharedValue<ProgressValue>;
4
+ progress: SharedValue<number>;
6
5
  completedPercent: number;
7
6
  };
8
7
  export declare const Progress: ({ progress, completedPercent }: ProgressProps) => React.JSX.Element;
@@ -1 +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;AAE9F,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAMpD,KAAK,aAAa,GAAG;IACnB,QAAQ,EAAE,WAAW,CAAC,aAAa,CAAC,CAAA;IACpC,gBAAgB,EAAE,MAAM,CAAA;CACzB,CAAA;AAED,eAAO,MAAM,QAAQ,mCAAoC,aAAa,sBA6CrE,CAAA"}
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"}
@@ -9,14 +9,4 @@ export declare const CONTENT_CONTAINER: {
9
9
  };
10
10
  export declare const ANIMATION_DURATION = 1750;
11
11
  export declare const MIN_PROBLEMS_TO_SHOW_GIF = 6;
12
- export declare const MAX_GIF_SIZE: {
13
- WIDTH: number;
14
- HEIGHT: number;
15
- };
16
- export declare const MIN_GIF_SIZE = 300;
17
- export declare const GROUPS_PERCENTAGES: {
18
- group1: number[];
19
- group2: number[];
20
- group3: number[];
21
- };
22
12
  //# sourceMappingURL=constants.d.ts.map
@@ -1 +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;AAEzC,eAAO,MAAM,YAAY;;;CAGxB,CAAA;AACD,eAAO,MAAM,YAAY,MAAM,CAAA;AAE/B,eAAO,MAAM,kBAAkB;;;;CAI9B,CAAA"}
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"}
@@ -1,19 +1,10 @@
1
- import { TranslationKeys } from 'src/shared/translation/types';
2
- import { GifsGroups, GifsStructure, GroupNumber } from './types/model.types';
3
- /**
4
- * Number of problems When we show gif
5
- * <6 Never
6
- * 7-12 50% completion
7
- * 13-18 33%, 66% completion
8
- * 19-24 25%, 50%, 75 completion
9
- * 25-30 20%, 40%, 60%, 80% completion
10
- * .>30 15%, 30%, 45%, 60%, 75% completion
11
- *
12
- * We are also going to have different buckets with different gifs. The logic is as follows:
13
- * Group 1: 15%, 20%, 25%, 30% - Early celebrations
14
- * Group 2: 33%, 40%, 45%, 50% - Mid celebrations
15
- * Group 3: 60%, 66%, 75%, 80% - Party
16
- */
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;
17
8
  export declare const calculatePercentageTable: (totalProblems: number) => {
18
9
  50: number;
19
10
  33?: undefined;
@@ -80,6 +71,5 @@ export declare const calculatePercentageTable: (totalProblems: number) => {
80
71
  40?: undefined;
81
72
  80?: undefined;
82
73
  };
83
- export declare const generateGifsStructure: (gifs: GifsGroups) => GifsStructure;
84
- export declare const getGifLabel: (relatedGroup: GroupNumber) => TranslationKeys;
74
+ export {};
85
75
  //# sourceMappingURL=helpers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../src/features/gifCelebrations/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAA;AAC9D,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AAE5E;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,wBAAwB,kBAAmB,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkC7D,CAAA;AAED,eAAO,MAAM,qBAAqB,SAAU,UAAU,KAAG,aAUtD,CAAA;AAEH,eAAO,MAAM,WAAW,iBAAkB,WAAW,KAAG,eASvD,CAAA"}
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"}
@@ -1,18 +1,8 @@
1
- import { GifsGroups, GifsStructure, CustomPrefetchMethod, CustomGetCachePathMethod } from '../types/model.types';
2
- import { Image } from 'react-native';
3
- type GifCelebrationsCacheProps = {
4
- customPrefetchMethod?: CustomPrefetchMethod;
5
- customGetCachePathMethod?: CustomGetCachePathMethod;
6
- };
1
+ import { GifsGroups, GifsStructure } from '../types/model.types';
7
2
  export declare class GifCelebrationsCache {
8
3
  readonly initialSet: import("effector").EventCallable<GifsGroups>;
9
4
  readonly set: import("effector").EventCallable<GifsStructure>;
10
5
  readonly reset: import("effector").EventCallable<void>;
11
- readonly prefetchMethod: CustomPrefetchMethod | typeof Image.prefetch;
12
- readonly getCachePathMethod?: CustomGetCachePathMethod;
13
- readonly prefetchGifs: import("effector").Effect<GifsGroups, void, Error>;
14
6
  readonly $gifs: import("effector").StoreWritable<GifsStructure | null>;
15
- constructor({ customPrefetchMethod, customGetCachePathMethod }: GifCelebrationsCacheProps);
16
7
  }
17
- export {};
18
8
  //# sourceMappingURL=GifCelebrations.cache.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"GifCelebrations.cache.d.ts","sourceRoot":"","sources":["../../../../../../src/features/gifCelebrations/model/GifCelebrations.cache.ts"],"names":[],"mappings":"AACA,OAAO,EACL,UAAU,EACV,aAAa,EACb,oBAAoB,EACpB,wBAAwB,EACzB,MAAM,sBAAsB,CAAA;AAE7B,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAA;AAEpC,KAAK,yBAAyB,GAAG;IAC/B,oBAAoB,CAAC,EAAE,oBAAoB,CAAA;IAC3C,wBAAwB,CAAC,EAAE,wBAAwB,CAAA;CACpD,CAAA;AAED,qBAAa,oBAAoB;IAC/B,SAAgB,UAAU,+CAA4B;IACtD,SAAgB,GAAG,kDAA+B;IAClD,SAAgB,KAAK,yCAAgB;IAErC,SAAgB,cAAc,EAAE,oBAAoB,GAAG,OAAO,KAAK,CAAC,QAAQ,CAAA;IAC5E,SAAgB,kBAAkB,CAAC,EAAE,wBAAwB,CAAA;IAE7D,SAAgB,YAAY,qDAQ1B;IAEF,SAAgB,KAAK,yDAGa;gBAEtB,EAAE,oBAAoB,EAAE,wBAAwB,EAAE,EAAE,yBAAyB;CAI1F"}
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"}
@@ -9,16 +9,13 @@ export declare class GifCelebrationsModel {
9
9
  readonly $resolvedProblems: Store<number>;
10
10
  readonly triggerPlay: import("effector").EventCallable<void>;
11
11
  readonly stop: import("effector").EventCallable<void>;
12
- readonly resetIsGifCelebrationMayBeTriggered: import("effector").EventCallable<void>;
13
- readonly setIsGifCelebrationMayBeTriggered: import("effector").EventCallable<boolean>;
14
- readonly $isGifCelebrationMayBeTriggered: import("effector").StoreWritable<boolean>;
15
12
  readonly resetPercentageTable: import("effector").EventCallable<void>;
16
13
  readonly $problemsPercentageTable: import("effector").StoreWritable<ProblemsPercentageTable | null>;
17
14
  readonly setActiveGif: import("effector").EventCallable<GifObject>;
18
15
  readonly $activeGif: import("effector").StoreWritable<GifObject | null>;
19
16
  readonly initialize: import("effector").EventCallable<void>;
20
17
  readonly resetGroupGifs: import("effector").EventCallable<string>;
21
- constructor({ api, totalProblems, resolvedProblems, customPrefetchMethod, customGetCachePathMethod, }: GifCelebrationsModelProps);
18
+ constructor({ api, totalProblems, resolvedProblems }: GifCelebrationsModelProps);
22
19
  private setupEventHandlers;
23
20
  private readonly handleGifSelection;
24
21
  private findGroupForPercentage;
@@ -1 +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;AAU9D,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,mCAAmC,yCAAgB;IACnE,SAAgB,iCAAiC,4CAAyB;IAC1E,SAAgB,+BAA+B,4CAM5C;IAEH,SAAgB,oBAAoB,yCAAgB;IACpD,SAAgB,wBAAwB,mEAEN;IAElC,SAAgB,YAAY,8CAA2B;IACvD,SAAgB,UAAU,qDAEe;IAEzC,SAAgB,UAAU,yCAAgB;IAC1C,SAAgB,cAAc,2CAAwB;gBAE1C,EACV,GAAG,EACH,aAAa,EACb,gBAAgB,EAChB,oBAAoB,EACpB,wBAAwB,GACzB,EAAE,yBAAyB;IAU5B,OAAO,CAAC,kBAAkB;IAkD1B,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CA+ClC;IAED,OAAO,CAAC,sBAAsB;CAK/B"}
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;IAmD1B,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAyDlC;IAED,OAAO,CAAC,sBAAsB;CAK/B"}
@@ -1,28 +1,20 @@
1
1
  import { Store } from 'effector';
2
- export type CustomPrefetchMethod = (gifs: string[] | string) => Promise<unknown>;
3
- export type CustomGetCachePathMethod = (uri: string) => Promise<string | null>;
4
- export type GroupNumber = number;
5
2
  export type GifCelebrationApiRequests = {
6
3
  getGifs: () => Promise<GifResponse>;
7
4
  };
8
- export type GifCelebrationCache = {
9
- prefetchMethod?: CustomPrefetchMethod;
10
- };
11
5
  export type GifCelebrationsModelProps = {
12
6
  api: GifCelebrationApiRequests;
13
7
  totalProblems: Store<number>;
14
8
  resolvedProblems: Store<number>;
15
- customPrefetchMethod?: CustomPrefetchMethod;
16
- customGetCachePathMethod?: CustomGetCachePathMethod;
17
9
  };
18
10
  export type GifsGroup = string[];
19
- export type GifsGroups = Record<`group${GroupNumber}`, GifsGroup>;
11
+ export type GifsGroups = Record<`group${number}`, GifsGroup>;
20
12
  export type GifObject = {
21
13
  url: string;
22
14
  isShown: boolean;
23
- group: `group${GroupNumber}`;
15
+ group: `group${number}`;
24
16
  };
25
- export type GifsStructure = Record<`group${GroupNumber}`, GifObject[]>;
17
+ export type GifsStructure = Record<`group${number}`, GifObject[]>;
26
18
  /**
27
19
  * Usually, the response contains 3 groups of gifs:
28
20
  * - group1: early celebrations
@@ -37,6 +29,4 @@ export type GifsPayload = {
37
29
  group: number;
38
30
  };
39
31
  export type ProblemsPercentageTable = Record<number, number>;
40
- export type ProgressValue = 0 | 1 | 2;
41
- export type TextComponentType = (text: string) => React.ReactNode;
42
32
  //# sourceMappingURL=model.types.d.ts.map
@@ -1 +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,oBAAoB,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,CAAA;AAChF,MAAM,MAAM,wBAAwB,GAAG,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAA;AAE9E,MAAM,MAAM,WAAW,GAAG,MAAM,CAAA;AA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{"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"}
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../src/lib/helpers/helpers.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI,YAAW,CAAA;AAE5B,eAAO,MAAM,gBAAgB,cACsC,CAAA;AASnE,eAAO,MAAM,mBAAmB,SAAU,IAAI,WAuB7C,CAAA"}
1
+ {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../src/lib/helpers/helpers.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI,YAAW,CAAC;AAE7B,eAAO,MAAM,gBAAgB,cACsC,CAAA;AASnE,eAAO,MAAM,mBAAmB,SAAU,IAAI,WAuB7C,CAAA"}
@@ -14,17 +14,11 @@ 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;
21
20
  showError: string;
22
21
  };
23
- gifCelebrations: {
24
- greatStart: string;
25
- onTheWay: string;
26
- almostThere: string;
27
- };
28
22
  };
29
23
  "en-GB": {
30
24
  "teacherFeedback.noComments": string;
@@ -41,17 +35,11 @@ export declare const LOCALIZATION_CONFIGS: {
41
35
  "time.yearsAgo": string;
42
36
  chat: {
43
37
  anotherHint: string;
44
- giveHint: string;
45
38
  answerAgain: string;
46
39
  errorMessage: string;
47
40
  howCanIHelp: string;
48
41
  showError: string;
49
42
  };
50
- gifCelebrations: {
51
- greatStart: string;
52
- onTheWay: string;
53
- almostThere: string;
54
- };
55
43
  };
56
44
  "sv-SE": {
57
45
  "teacherFeedback.noComments": string;
@@ -68,17 +56,11 @@ export declare const LOCALIZATION_CONFIGS: {
68
56
  "time.yearsAgo": string;
69
57
  chat: {
70
58
  anotherHint: string;
71
- giveHint: string;
72
59
  answerAgain: string;
73
60
  errorMessage: string;
74
61
  howCanIHelp: string;
75
62
  showError: string;
76
63
  };
77
- gifCelebrations: {
78
- greatStart: string;
79
- onTheWay: string;
80
- almostThere: string;
81
- };
82
64
  };
83
65
  };
84
66
  //# sourceMappingURL=constants.d.ts.map
@@ -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,17 +15,11 @@ 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;
22
21
  showError: string;
23
22
  };
24
- gifCelebrations: {
25
- greatStart: string;
26
- onTheWay: string;
27
- almostThere: string;
28
- };
29
23
  } | ((config: typeof LOCALIZATION_CONFIGS) => Translations)>;
30
24
  export declare const $localization: import("effector").StoreWritable<{
31
25
  "teacherFeedback.noComments": string;
@@ -42,16 +36,10 @@ export declare const $localization: import("effector").StoreWritable<{
42
36
  "time.yearsAgo": string;
43
37
  chat: {
44
38
  anotherHint: string;
45
- giveHint: string;
46
39
  answerAgain: string;
47
40
  errorMessage: string;
48
41
  howCanIHelp: string;
49
42
  showError: string;
50
43
  };
51
- gifCelebrations: {
52
- greatStart: string;
53
- onTheWay: string;
54
- almostThere: string;
55
- };
56
44
  }>;
57
45
  //# sourceMappingURL=model.d.ts.map
@@ -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,u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C,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,10 +1,8 @@
1
1
  import React from 'react';
2
2
  import { GifCelebrationsModel } from './model/GifCelebrations.model';
3
- import { TextComponentType } from './types/model.types';
4
3
  type GifCelebrationsProps = {
5
4
  model: GifCelebrationsModel;
6
- TextComponent: TextComponentType;
7
5
  };
8
- export declare const GifCelebrations: ({ model, TextComponent }: GifCelebrationsProps) => React.JSX.Element | null;
6
+ export declare const GifCelebrations: ({ model }: GifCelebrationsProps) => React.JSX.Element | null;
9
7
  export {};
10
8
  //# sourceMappingURL=GifCelebrations.d.ts.map
@@ -1 +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;AACpE,OAAO,EAAiB,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAEtE,KAAK,oBAAoB,GAAG;IAC1B,KAAK,EAAE,oBAAoB,CAAA;IAC3B,aAAa,EAAE,iBAAiB,CAAA;CACjC,CAAA;AAED,eAAO,MAAM,eAAe,6BAA8B,oBAAoB,6BA4D7E,CAAA"}
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,6BAwD9D,CAAA"}
@@ -1,9 +1,8 @@
1
1
  import React from 'react';
2
2
  import { SharedValue } from 'react-native-reanimated';
3
- import { ProgressValue } from '../types/model.types';
4
3
  type BackdropProps = {
5
4
  children: React.ReactNode;
6
- progress: SharedValue<ProgressValue>;
5
+ progress: SharedValue<number>;
7
6
  };
8
7
  export declare const Backdrop: ({ children, progress }: BackdropProps) => React.JSX.Element;
9
8
  export {};
@@ -1 +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;AAEnG,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAEpD,KAAK,aAAa,GAAG;IACnB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,QAAQ,EAAE,WAAW,CAAC,aAAa,CAAC,CAAA;CACrC,CAAA;AAED,eAAO,MAAM,QAAQ,2BAA4B,aAAa,sBAmB7D,CAAA"}
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"}
@@ -1,9 +1,8 @@
1
1
  import React from 'react';
2
2
  import { SharedValue } from 'react-native-reanimated';
3
- import { ProgressValue } from '../types/model.types';
4
3
  type ContentContainerProps = {
5
4
  children: React.ReactNode;
6
- progress: SharedValue<ProgressValue>;
5
+ progress: SharedValue<number>;
7
6
  };
8
7
  export declare const ContentContainer: ({ children, progress }: ContentContainerProps) => React.JSX.Element;
9
8
  export {};
@@ -1 +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;AAE9F,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAEpD,KAAK,qBAAqB,GAAG;IAC3B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,QAAQ,EAAE,WAAW,CAAC,aAAa,CAAC,CAAA;CACrC,CAAA;AAED,eAAO,MAAM,gBAAgB,2BAA4B,qBAAqB,sBAsB7E,CAAA"}
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"}
@@ -1,10 +1,7 @@
1
1
  import React from 'react';
2
- import { CustomGetCachePathMethod, GifObject, TextComponentType } from '../types/model.types';
3
2
  type GifProps = {
4
- gifObject: GifObject;
5
- getCachePathMethod?: CustomGetCachePathMethod;
6
- TextComponent: TextComponentType;
3
+ uri: string;
7
4
  };
8
- export declare const Gif: ({ gifObject, getCachePathMethod, TextComponent }: GifProps) => React.JSX.Element;
5
+ export declare const Gif: ({ uri }: GifProps) => React.JSX.Element;
9
6
  export {};
10
7
  //# sourceMappingURL=Gif.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Gif.d.ts","sourceRoot":"","sources":["../../../../../../src/features/gifCelebrations/components/Gif.tsx"],"names":[],"mappings":"AACA,OAAO,KAAoC,MAAM,OAAO,CAAA;AAExD,OAAO,EAAE,wBAAwB,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AAK7F,KAAK,QAAQ,GAAG;IACd,SAAS,EAAE,SAAS,CAAA;IACpB,kBAAkB,CAAC,EAAE,wBAAwB,CAAA;IAC7C,aAAa,EAAE,iBAAiB,CAAA;CACjC,CAAA;AAOD,eAAO,MAAM,GAAG,qDAAsD,QAAQ,sBA6C7E,CAAA"}
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"}
@@ -1,8 +1,7 @@
1
1
  import React from 'react';
2
2
  import { SharedValue } from 'react-native-reanimated';
3
- import { ProgressValue } from '../types/model.types';
4
3
  type ProgressProps = {
5
- progress: SharedValue<ProgressValue>;
4
+ progress: SharedValue<number>;
6
5
  completedPercent: number;
7
6
  };
8
7
  export declare const Progress: ({ progress, completedPercent }: ProgressProps) => React.JSX.Element;
@@ -1 +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;AAE9F,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAMpD,KAAK,aAAa,GAAG;IACnB,QAAQ,EAAE,WAAW,CAAC,aAAa,CAAC,CAAA;IACpC,gBAAgB,EAAE,MAAM,CAAA;CACzB,CAAA;AAED,eAAO,MAAM,QAAQ,mCAAoC,aAAa,sBA6CrE,CAAA"}
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"}
@@ -9,14 +9,4 @@ export declare const CONTENT_CONTAINER: {
9
9
  };
10
10
  export declare const ANIMATION_DURATION = 1750;
11
11
  export declare const MIN_PROBLEMS_TO_SHOW_GIF = 6;
12
- export declare const MAX_GIF_SIZE: {
13
- WIDTH: number;
14
- HEIGHT: number;
15
- };
16
- export declare const MIN_GIF_SIZE = 300;
17
- export declare const GROUPS_PERCENTAGES: {
18
- group1: number[];
19
- group2: number[];
20
- group3: number[];
21
- };
22
12
  //# sourceMappingURL=constants.d.ts.map
@@ -1 +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;AAEzC,eAAO,MAAM,YAAY;;;CAGxB,CAAA;AACD,eAAO,MAAM,YAAY,MAAM,CAAA;AAE/B,eAAO,MAAM,kBAAkB;;;;CAI9B,CAAA"}
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"}