@tyrads.com/tyrads-sdk 3.0.0-beta.0 → 3.2.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (289) hide show
  1. package/android/build.gradle +1 -1
  2. package/android/src/main/java/com/tyradssdk/TyradsSdkModule.kt +130 -29
  3. package/ios/Tyrads/AcmoAssets.swift +14 -0
  4. package/ios/Tyrads/ApiHeaders.swift +1 -0
  5. package/ios/Tyrads/InitModel.swift +3 -0
  6. package/ios/Tyrads/Tyrads.swift +255 -213
  7. package/ios/Tyrads/WebViewController.swift +195 -0
  8. package/ios/Tyrads/core/utils/AcmoKeyNames.swift +29 -0
  9. package/ios/Tyrads/core/utils/ColorExtension.swift +55 -0
  10. package/ios/Tyrads/core/utils/Services/LocalizationService.swift +175 -0
  11. package/ios/Tyrads/helpers/device_details.swift +160 -0
  12. package/ios/Tyrads/legal/AcmoPrivacyPage.swift +353 -0
  13. package/ios/Tyrads/legal/PrivacyPageController.swift +31 -0
  14. package/ios/Tyrads/user/AcmoUserUpdatePage.swift +302 -0
  15. package/ios/Tyrads/user/AcmoUsersUpdateController.swift +26 -0
  16. package/ios/Tyrads/user/Repository.swift +89 -0
  17. package/ios/TyradsSdk.mm +22 -4
  18. package/ios/TyradsSdk.swift +101 -31
  19. package/lib/commonjs/acmo/core/helpers/launcher.js +20 -0
  20. package/lib/commonjs/acmo/core/helpers/launcher.js.map +1 -0
  21. package/lib/commonjs/acmo/core/helpers/native_methods.js +37 -0
  22. package/lib/commonjs/acmo/core/helpers/native_methods.js.map +1 -0
  23. package/lib/commonjs/acmo/core/helpers/numeral.js +19 -0
  24. package/lib/commonjs/acmo/core/helpers/numeral.js.map +1 -0
  25. package/lib/commonjs/acmo/core/services/localization_service.js +164 -0
  26. package/lib/commonjs/acmo/core/services/localization_service.js.map +1 -0
  27. package/lib/commonjs/acmo/core/storage/storage.js +15 -1
  28. package/lib/commonjs/acmo/core/storage/storage.js.map +1 -1
  29. package/lib/commonjs/acmo/modules/dashboard/components/active_offers_button.js +79 -0
  30. package/lib/commonjs/acmo/modules/dashboard/components/active_offers_button.js.map +1 -0
  31. package/lib/commonjs/acmo/modules/dashboard/components/custom_card.js +7 -10
  32. package/lib/commonjs/acmo/modules/dashboard/components/custom_card.js.map +1 -1
  33. package/lib/commonjs/acmo/modules/dashboard/components/custom_scroller.js +141 -0
  34. package/lib/commonjs/acmo/modules/dashboard/components/custom_scroller.js.map +1 -0
  35. package/lib/commonjs/acmo/{core/marquee.js → modules/dashboard/components/custom_shimmer.js} +46 -34
  36. package/lib/commonjs/acmo/modules/dashboard/components/custom_shimmer.js.map +1 -0
  37. package/lib/commonjs/acmo/modules/dashboard/components/offer_card.js +263 -0
  38. package/lib/commonjs/acmo/modules/dashboard/components/offer_card.js.map +1 -0
  39. package/lib/commonjs/acmo/modules/dashboard/components/offer_list_item.js +203 -0
  40. package/lib/commonjs/acmo/modules/dashboard/components/offer_list_item.js.map +1 -0
  41. package/lib/commonjs/acmo/modules/dashboard/components/premium_empty_widget.js +87 -0
  42. package/lib/commonjs/acmo/modules/dashboard/components/premium_empty_widget.js.map +1 -0
  43. package/lib/commonjs/acmo/modules/dashboard/components/premium_header.js +16 -14
  44. package/lib/commonjs/acmo/modules/dashboard/components/premium_header.js.map +1 -1
  45. package/lib/commonjs/acmo/modules/dashboard/components/premium_loading.js +111 -0
  46. package/lib/commonjs/acmo/modules/dashboard/components/premium_loading.js.map +1 -0
  47. package/lib/commonjs/acmo/modules/dashboard/repository.js +108 -32
  48. package/lib/commonjs/acmo/modules/dashboard/repository.js.map +1 -1
  49. package/lib/commonjs/acmo/modules/dashboard/top_offers.js +85 -63
  50. package/lib/commonjs/acmo/modules/dashboard/top_offers.js.map +1 -1
  51. package/lib/commonjs/acmo/modules/localization/localization_context.js +56 -0
  52. package/lib/commonjs/acmo/modules/localization/localization_context.js.map +1 -0
  53. package/lib/commonjs/assets/images/angle_up.png +0 -0
  54. package/lib/commonjs/assets/images/diamond.png +0 -0
  55. package/lib/commonjs/assets/images/info.png +0 -0
  56. package/lib/commonjs/assets/images/info_icon.png +0 -0
  57. package/lib/commonjs/assets/images/premium-emptybg.jpeg +0 -0
  58. package/lib/commonjs/assets/images/rank_1.png +0 -0
  59. package/lib/commonjs/assets/images/rank_2.png +0 -0
  60. package/lib/commonjs/assets/images/rank_3.png +0 -0
  61. package/lib/commonjs/assets/images/rank_4.png +0 -0
  62. package/lib/commonjs/assets/images/rank_5.png +0 -0
  63. package/lib/commonjs/index.js +50 -16
  64. package/lib/commonjs/index.js.map +1 -1
  65. package/lib/module/acmo/core/helpers/launcher.js +15 -0
  66. package/lib/module/acmo/core/helpers/launcher.js.map +1 -0
  67. package/lib/module/acmo/core/helpers/native_methods.js +33 -0
  68. package/lib/module/acmo/core/helpers/native_methods.js.map +1 -0
  69. package/lib/module/acmo/core/helpers/numeral.js +14 -0
  70. package/lib/module/acmo/core/helpers/numeral.js.map +1 -0
  71. package/lib/module/acmo/core/services/localization_service.js +159 -0
  72. package/lib/module/acmo/core/services/localization_service.js.map +1 -0
  73. package/lib/module/acmo/core/storage/storage.js +13 -0
  74. package/lib/module/acmo/core/storage/storage.js.map +1 -1
  75. package/lib/module/acmo/modules/dashboard/components/active_offers_button.js +73 -0
  76. package/lib/module/acmo/modules/dashboard/components/active_offers_button.js.map +1 -0
  77. package/lib/module/acmo/modules/dashboard/components/custom_card.js +7 -10
  78. package/lib/module/acmo/modules/dashboard/components/custom_card.js.map +1 -1
  79. package/lib/module/acmo/modules/dashboard/components/custom_scroller.js +135 -0
  80. package/lib/module/acmo/modules/dashboard/components/custom_scroller.js.map +1 -0
  81. package/lib/module/acmo/modules/dashboard/components/custom_shimmer.js +66 -0
  82. package/lib/module/acmo/modules/dashboard/components/custom_shimmer.js.map +1 -0
  83. package/lib/module/acmo/modules/dashboard/components/offer_card.js +257 -0
  84. package/lib/module/acmo/modules/dashboard/components/offer_card.js.map +1 -0
  85. package/lib/module/acmo/modules/dashboard/components/offer_list_item.js +197 -0
  86. package/lib/module/acmo/modules/dashboard/components/offer_list_item.js.map +1 -0
  87. package/lib/module/acmo/modules/dashboard/components/premium_empty_widget.js +82 -0
  88. package/lib/module/acmo/modules/dashboard/components/premium_empty_widget.js.map +1 -0
  89. package/lib/module/acmo/modules/dashboard/components/premium_header.js +16 -14
  90. package/lib/module/acmo/modules/dashboard/components/premium_header.js.map +1 -1
  91. package/lib/module/acmo/modules/dashboard/components/premium_loading.js +106 -0
  92. package/lib/module/acmo/modules/dashboard/components/premium_loading.js.map +1 -0
  93. package/lib/module/acmo/modules/dashboard/repository.js +105 -30
  94. package/lib/module/acmo/modules/dashboard/repository.js.map +1 -1
  95. package/lib/module/acmo/modules/dashboard/top_offers.js +86 -64
  96. package/lib/module/acmo/modules/dashboard/top_offers.js.map +1 -1
  97. package/lib/module/acmo/modules/localization/localization_context.js +45 -0
  98. package/lib/module/acmo/modules/localization/localization_context.js.map +1 -0
  99. package/lib/module/assets/images/angle_up.png +0 -0
  100. package/lib/module/assets/images/diamond.png +0 -0
  101. package/lib/module/assets/images/info.png +0 -0
  102. package/lib/module/assets/images/info_icon.png +0 -0
  103. package/lib/module/assets/images/premium-emptybg.jpeg +0 -0
  104. package/lib/module/assets/images/rank_1.png +0 -0
  105. package/lib/module/assets/images/rank_2.png +0 -0
  106. package/lib/module/assets/images/rank_3.png +0 -0
  107. package/lib/module/assets/images/rank_4.png +0 -0
  108. package/lib/module/assets/images/rank_5.png +0 -0
  109. package/lib/module/index.js +49 -17
  110. package/lib/module/index.js.map +1 -1
  111. package/lib/typescript/commonjs/src/acmo/core/helpers/launcher.d.ts +3 -0
  112. package/lib/typescript/commonjs/src/acmo/core/helpers/launcher.d.ts.map +1 -0
  113. package/lib/typescript/commonjs/src/acmo/core/helpers/native_methods.d.ts +6 -0
  114. package/lib/typescript/commonjs/src/acmo/core/helpers/native_methods.d.ts.map +1 -0
  115. package/lib/typescript/commonjs/src/acmo/core/helpers/numeral.d.ts +2 -0
  116. package/lib/typescript/commonjs/src/acmo/core/helpers/numeral.d.ts.map +1 -0
  117. package/lib/typescript/commonjs/src/acmo/core/services/localization_service.d.ts +18 -0
  118. package/lib/typescript/commonjs/src/acmo/core/services/localization_service.d.ts.map +1 -0
  119. package/lib/typescript/commonjs/src/acmo/core/storage/storage.d.ts +1 -0
  120. package/lib/typescript/commonjs/src/acmo/core/storage/storage.d.ts.map +1 -1
  121. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/active_offers_button.d.ts +9 -0
  122. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/active_offers_button.d.ts.map +1 -0
  123. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/custom_card.d.ts.map +1 -1
  124. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/custom_scroller.d.ts +17 -0
  125. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/custom_scroller.d.ts.map +1 -0
  126. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/custom_shimmer.d.ts +11 -0
  127. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/custom_shimmer.d.ts.map +1 -0
  128. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/offer_card.d.ts +12 -0
  129. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/offer_card.d.ts.map +1 -0
  130. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/offer_list_item.d.ts +15 -0
  131. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/offer_list_item.d.ts.map +1 -0
  132. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/premium_empty_widget.d.ts +7 -0
  133. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/premium_empty_widget.d.ts.map +1 -0
  134. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/premium_header.d.ts.map +1 -1
  135. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/premium_loading.d.ts +8 -0
  136. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/premium_loading.d.ts.map +1 -0
  137. package/lib/typescript/commonjs/src/acmo/modules/dashboard/repository.d.ts +2 -1
  138. package/lib/typescript/commonjs/src/acmo/modules/dashboard/repository.d.ts.map +1 -1
  139. package/lib/typescript/commonjs/src/acmo/modules/dashboard/top_offers.d.ts +8 -7
  140. package/lib/typescript/commonjs/src/acmo/modules/dashboard/top_offers.d.ts.map +1 -1
  141. package/lib/typescript/commonjs/src/acmo/modules/localization/localization_context.d.ts +14 -0
  142. package/lib/typescript/commonjs/src/acmo/modules/localization/localization_context.d.ts.map +1 -0
  143. package/lib/typescript/commonjs/src/index.d.ts +8 -6
  144. package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
  145. package/lib/typescript/module/src/acmo/core/helpers/launcher.d.ts +3 -0
  146. package/lib/typescript/module/src/acmo/core/helpers/launcher.d.ts.map +1 -0
  147. package/lib/typescript/module/src/acmo/core/helpers/native_methods.d.ts +6 -0
  148. package/lib/typescript/module/src/acmo/core/helpers/native_methods.d.ts.map +1 -0
  149. package/lib/typescript/module/src/acmo/core/helpers/numeral.d.ts +2 -0
  150. package/lib/typescript/module/src/acmo/core/helpers/numeral.d.ts.map +1 -0
  151. package/lib/typescript/module/src/acmo/core/services/localization_service.d.ts +18 -0
  152. package/lib/typescript/module/src/acmo/core/services/localization_service.d.ts.map +1 -0
  153. package/lib/typescript/module/src/acmo/core/storage/storage.d.ts +1 -0
  154. package/lib/typescript/module/src/acmo/core/storage/storage.d.ts.map +1 -1
  155. package/lib/typescript/module/src/acmo/modules/dashboard/components/active_offers_button.d.ts +9 -0
  156. package/lib/typescript/module/src/acmo/modules/dashboard/components/active_offers_button.d.ts.map +1 -0
  157. package/lib/typescript/module/src/acmo/modules/dashboard/components/custom_card.d.ts.map +1 -1
  158. package/lib/typescript/module/src/acmo/modules/dashboard/components/custom_scroller.d.ts +17 -0
  159. package/lib/typescript/module/src/acmo/modules/dashboard/components/custom_scroller.d.ts.map +1 -0
  160. package/lib/typescript/module/src/acmo/modules/dashboard/components/custom_shimmer.d.ts +11 -0
  161. package/lib/typescript/module/src/acmo/modules/dashboard/components/custom_shimmer.d.ts.map +1 -0
  162. package/lib/typescript/module/src/acmo/modules/dashboard/components/offer_card.d.ts +12 -0
  163. package/lib/typescript/module/src/acmo/modules/dashboard/components/offer_card.d.ts.map +1 -0
  164. package/lib/typescript/module/src/acmo/modules/dashboard/components/offer_list_item.d.ts +15 -0
  165. package/lib/typescript/module/src/acmo/modules/dashboard/components/offer_list_item.d.ts.map +1 -0
  166. package/lib/typescript/module/src/acmo/modules/dashboard/components/premium_empty_widget.d.ts +7 -0
  167. package/lib/typescript/module/src/acmo/modules/dashboard/components/premium_empty_widget.d.ts.map +1 -0
  168. package/lib/typescript/module/src/acmo/modules/dashboard/components/premium_header.d.ts.map +1 -1
  169. package/lib/typescript/module/src/acmo/modules/dashboard/components/premium_loading.d.ts +8 -0
  170. package/lib/typescript/module/src/acmo/modules/dashboard/components/premium_loading.d.ts.map +1 -0
  171. package/lib/typescript/module/src/acmo/modules/dashboard/repository.d.ts +2 -1
  172. package/lib/typescript/module/src/acmo/modules/dashboard/repository.d.ts.map +1 -1
  173. package/lib/typescript/module/src/acmo/modules/dashboard/top_offers.d.ts +8 -7
  174. package/lib/typescript/module/src/acmo/modules/dashboard/top_offers.d.ts.map +1 -1
  175. package/lib/typescript/module/src/acmo/modules/localization/localization_context.d.ts +14 -0
  176. package/lib/typescript/module/src/acmo/modules/localization/localization_context.d.ts.map +1 -0
  177. package/lib/typescript/module/src/index.d.ts +8 -6
  178. package/lib/typescript/module/src/index.d.ts.map +1 -1
  179. package/package.json +3 -6
  180. package/readme.md +8 -8
  181. package/src/acmo/core/helpers/launcher.ts +14 -0
  182. package/src/acmo/core/helpers/native_methods.ts +43 -0
  183. package/src/acmo/core/helpers/numeral.ts +14 -0
  184. package/src/acmo/core/services/localization_service.ts +200 -0
  185. package/src/acmo/core/storage/storage.ts +14 -0
  186. package/src/acmo/core/types/types.d.ts +11 -13
  187. package/src/acmo/modules/dashboard/components/active_offers_button.tsx +62 -0
  188. package/src/acmo/modules/dashboard/components/custom_card.tsx +5 -8
  189. package/src/acmo/modules/dashboard/components/custom_scroller.tsx +164 -0
  190. package/src/acmo/modules/dashboard/components/custom_shimmer.tsx +75 -0
  191. package/src/acmo/modules/dashboard/components/offer_card.tsx +248 -0
  192. package/src/acmo/modules/dashboard/components/offer_list_item.tsx +228 -0
  193. package/src/acmo/modules/dashboard/components/premium_empty_widget.tsx +79 -0
  194. package/src/acmo/modules/dashboard/components/premium_header.tsx +14 -13
  195. package/src/acmo/modules/dashboard/components/premium_loading.tsx +72 -0
  196. package/src/acmo/modules/dashboard/repository.ts +121 -46
  197. package/src/acmo/modules/dashboard/top_offers.tsx +105 -53
  198. package/src/acmo/modules/localization/localization_context.tsx +52 -0
  199. package/src/assets/images/angle_up.png +0 -0
  200. package/src/assets/images/diamond.png +0 -0
  201. package/src/assets/images/info.png +0 -0
  202. package/src/assets/images/info_icon.png +0 -0
  203. package/src/assets/images/premium-emptybg.jpeg +0 -0
  204. package/src/assets/images/rank_1.png +0 -0
  205. package/src/assets/images/rank_2.png +0 -0
  206. package/src/assets/images/rank_3.png +0 -0
  207. package/src/assets/images/rank_4.png +0 -0
  208. package/src/assets/images/rank_5.png +0 -0
  209. package/src/index.tsx +76 -34
  210. package/lib/commonjs/acmo/core/marquee.js.map +0 -1
  211. package/lib/commonjs/acmo/modules/dashboard/components/auto_scroller.js +0 -87
  212. package/lib/commonjs/acmo/modules/dashboard/components/auto_scroller.js.map +0 -1
  213. package/lib/commonjs/acmo/modules/dashboard/components/my_games_button.js +0 -48
  214. package/lib/commonjs/acmo/modules/dashboard/components/my_games_button.js.map +0 -1
  215. package/lib/commonjs/acmo/modules/dashboard/components/offer_info_section.js +0 -158
  216. package/lib/commonjs/acmo/modules/dashboard/components/offer_info_section.js.map +0 -1
  217. package/lib/commonjs/acmo/modules/dashboard/components/premium_option_1.js +0 -180
  218. package/lib/commonjs/acmo/modules/dashboard/components/premium_option_1.js.map +0 -1
  219. package/lib/commonjs/acmo/modules/dashboard/components/premium_option_2.js +0 -102
  220. package/lib/commonjs/acmo/modules/dashboard/components/premium_option_2.js.map +0 -1
  221. package/lib/commonjs/acmo/modules/dashboard/components/premium_option_3.js +0 -41
  222. package/lib/commonjs/acmo/modules/dashboard/components/premium_option_3.js.map +0 -1
  223. package/lib/commonjs/acmo/modules/dashboard/components/premium_option_4.js +0 -214
  224. package/lib/commonjs/acmo/modules/dashboard/components/premium_option_4.js.map +0 -1
  225. package/lib/commonjs/i18n.js +0 -112
  226. package/lib/commonjs/i18n.js.map +0 -1
  227. package/lib/module/acmo/core/marquee.js +0 -54
  228. package/lib/module/acmo/core/marquee.js.map +0 -1
  229. package/lib/module/acmo/modules/dashboard/components/auto_scroller.js +0 -81
  230. package/lib/module/acmo/modules/dashboard/components/auto_scroller.js.map +0 -1
  231. package/lib/module/acmo/modules/dashboard/components/my_games_button.js +0 -43
  232. package/lib/module/acmo/modules/dashboard/components/my_games_button.js.map +0 -1
  233. package/lib/module/acmo/modules/dashboard/components/offer_info_section.js +0 -153
  234. package/lib/module/acmo/modules/dashboard/components/offer_info_section.js.map +0 -1
  235. package/lib/module/acmo/modules/dashboard/components/premium_option_1.js +0 -174
  236. package/lib/module/acmo/modules/dashboard/components/premium_option_1.js.map +0 -1
  237. package/lib/module/acmo/modules/dashboard/components/premium_option_2.js +0 -97
  238. package/lib/module/acmo/modules/dashboard/components/premium_option_2.js.map +0 -1
  239. package/lib/module/acmo/modules/dashboard/components/premium_option_3.js +0 -36
  240. package/lib/module/acmo/modules/dashboard/components/premium_option_3.js.map +0 -1
  241. package/lib/module/acmo/modules/dashboard/components/premium_option_4.js +0 -209
  242. package/lib/module/acmo/modules/dashboard/components/premium_option_4.js.map +0 -1
  243. package/lib/module/i18n.js +0 -107
  244. package/lib/module/i18n.js.map +0 -1
  245. package/lib/typescript/commonjs/src/acmo/core/marquee.d.ts +0 -11
  246. package/lib/typescript/commonjs/src/acmo/core/marquee.d.ts.map +0 -1
  247. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/auto_scroller.d.ts +0 -10
  248. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/auto_scroller.d.ts.map +0 -1
  249. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/my_games_button.d.ts +0 -8
  250. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/my_games_button.d.ts.map +0 -1
  251. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/offer_info_section.d.ts +0 -11
  252. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/offer_info_section.d.ts.map +0 -1
  253. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/premium_option_1.d.ts +0 -9
  254. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/premium_option_1.d.ts.map +0 -1
  255. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/premium_option_2.d.ts +0 -9
  256. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/premium_option_2.d.ts.map +0 -1
  257. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/premium_option_3.d.ts +0 -9
  258. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/premium_option_3.d.ts.map +0 -1
  259. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/premium_option_4.d.ts +0 -9
  260. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/premium_option_4.d.ts.map +0 -1
  261. package/lib/typescript/commonjs/src/i18n.d.ts +0 -3
  262. package/lib/typescript/commonjs/src/i18n.d.ts.map +0 -1
  263. package/lib/typescript/module/src/acmo/core/marquee.d.ts +0 -11
  264. package/lib/typescript/module/src/acmo/core/marquee.d.ts.map +0 -1
  265. package/lib/typescript/module/src/acmo/modules/dashboard/components/auto_scroller.d.ts +0 -10
  266. package/lib/typescript/module/src/acmo/modules/dashboard/components/auto_scroller.d.ts.map +0 -1
  267. package/lib/typescript/module/src/acmo/modules/dashboard/components/my_games_button.d.ts +0 -8
  268. package/lib/typescript/module/src/acmo/modules/dashboard/components/my_games_button.d.ts.map +0 -1
  269. package/lib/typescript/module/src/acmo/modules/dashboard/components/offer_info_section.d.ts +0 -11
  270. package/lib/typescript/module/src/acmo/modules/dashboard/components/offer_info_section.d.ts.map +0 -1
  271. package/lib/typescript/module/src/acmo/modules/dashboard/components/premium_option_1.d.ts +0 -9
  272. package/lib/typescript/module/src/acmo/modules/dashboard/components/premium_option_1.d.ts.map +0 -1
  273. package/lib/typescript/module/src/acmo/modules/dashboard/components/premium_option_2.d.ts +0 -9
  274. package/lib/typescript/module/src/acmo/modules/dashboard/components/premium_option_2.d.ts.map +0 -1
  275. package/lib/typescript/module/src/acmo/modules/dashboard/components/premium_option_3.d.ts +0 -9
  276. package/lib/typescript/module/src/acmo/modules/dashboard/components/premium_option_3.d.ts.map +0 -1
  277. package/lib/typescript/module/src/acmo/modules/dashboard/components/premium_option_4.d.ts +0 -9
  278. package/lib/typescript/module/src/acmo/modules/dashboard/components/premium_option_4.d.ts.map +0 -1
  279. package/lib/typescript/module/src/i18n.d.ts +0 -3
  280. package/lib/typescript/module/src/i18n.d.ts.map +0 -1
  281. package/src/acmo/core/marquee.tsx +0 -62
  282. package/src/acmo/modules/dashboard/components/auto_scroller.tsx +0 -85
  283. package/src/acmo/modules/dashboard/components/my_games_button.tsx +0 -40
  284. package/src/acmo/modules/dashboard/components/offer_info_section.tsx +0 -139
  285. package/src/acmo/modules/dashboard/components/premium_option_1.tsx +0 -163
  286. package/src/acmo/modules/dashboard/components/premium_option_2.tsx +0 -100
  287. package/src/acmo/modules/dashboard/components/premium_option_3.tsx +0 -42
  288. package/src/acmo/modules/dashboard/components/premium_option_4.tsx +0 -185
  289. package/src/i18n.ts +0 -115
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ type Props = {
3
+ offer: Campaign;
4
+ currencySales?: CurrencySales;
5
+ onButtonTap: () => Promise<void>;
6
+ onPress: () => Promise<void>;
7
+ index: number;
8
+ colorPremium?: string;
9
+ colorPremiumFg?: string;
10
+ loadingIndex: number | null;
11
+ setLoadingIndex: (index: number | null) => void;
12
+ };
13
+ export declare const AcmoOfferListItem: React.FC<Props>;
14
+ export {};
15
+ //# sourceMappingURL=offer_list_item.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"offer_list_item.d.ts","sourceRoot":"","sources":["../../../../../../../../src/acmo/modules/dashboard/components/offer_list_item.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAc1B,KAAK,KAAK,GAAG;IACX,KAAK,EAAE,QAAQ,CAAC;IAChB,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,WAAW,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IACjC,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,eAAe,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;CACjD,CAAC;AAUF,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CA6F7C,CAAC"}
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ declare const PremiumEmptyView: React.FC<{
3
+ onContinue?: () => void;
4
+ colorPremium?: string;
5
+ }>;
6
+ export default PremiumEmptyView;
7
+ //# sourceMappingURL=premium_empty_widget.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"premium_empty_widget.d.ts","sourceRoot":"","sources":["../../../../../../../../src/acmo/modules/dashboard/components/premium_empty_widget.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,QAAA,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IAAC,YAAY,CAAC,EAAE,MAAM,CAAA;CAAC,CAqCjF,CAAC;AAqCF,eAAe,gBAAgB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"premium_header.d.ts","sourceRoot":"","sources":["../../../../../../../../src/acmo/modules/dashboard/components/premium_header.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,UAAU,yBAAyB;IACjC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;CAC3B;AAED,QAAA,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,yBAAyB,CA4B7D,CAAC;AA0CF,eAAe,oBAAoB,CAAC"}
1
+ {"version":3,"file":"premium_header.d.ts","sourceRoot":"","sources":["../../../../../../../../src/acmo/modules/dashboard/components/premium_header.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,UAAU,yBAAyB;IACjC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;CAC3B;AAED,QAAA,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,yBAAyB,CA6B7D,CAAC;AA0CF,eAAe,oBAAoB,CAAC"}
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { PremiumWidgetStyles } from '../top_offers';
3
+ interface PremiumWidgetsLoadingProps {
4
+ widgetStyle: PremiumWidgetStyles;
5
+ }
6
+ declare const PremiumWidgetsLoading: React.FC<PremiumWidgetsLoadingProps>;
7
+ export default PremiumWidgetsLoading;
8
+ //# sourceMappingURL=premium_loading.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"premium_loading.d.ts","sourceRoot":"","sources":["../../../../../../../../src/acmo/modules/dashboard/components/premium_loading.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAGpD,UAAU,0BAA0B;IAClC,WAAW,EAAE,mBAAmB,CAAC;CAClC;AAED,QAAA,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,0BAA0B,CAqC/D,CAAC;AAwBF,eAAe,qBAAqB,CAAC"}
@@ -1,2 +1,3 @@
1
- export declare const fetchCampaignsData: (setPremiumColor: (color: string) => void, setCampaigns: (campaigns: TransformedCampaign[]) => void, setError: (error: string) => void, setIsLoading: (loading: boolean) => void) => Promise<void>;
1
+ export declare const fetchPremiumOfferDetails: (setPremiumColor: (color: string) => void, setCampaigns: (campaigns: Campaign[]) => void, setCurrencySale: (currencySale: CurrencySales) => void, setActiveCount: (activeCount: number) => void, setError: (error: string) => void, setIsLoading: (loading: boolean) => void) => Promise<void>;
2
+ export declare const openOffer: (campaign: Campaign) => Promise<void>;
2
3
  //# sourceMappingURL=repository.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"repository.d.ts","sourceRoot":"","sources":["../../../../../../../src/acmo/modules/dashboard/repository.ts"],"names":[],"mappings":"AAgCA,eAAO,MAAM,kBAAkB,GAE7B,iBAAiB,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,EACxC,cAAc,CAAC,SAAS,EAAE,mBAAmB,EAAE,KAAK,IAAI,EACxD,UAAU,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,EACjC,cAAc,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,KACvC,OAAO,CAAC,IAAI,CAwDd,CAAC"}
1
+ {"version":3,"file":"repository.d.ts","sourceRoot":"","sources":["../../../../../../../src/acmo/modules/dashboard/repository.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,wBAAwB,oBAClB,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,gBAC1B,CAAC,SAAS,EAAE,QAAQ,EAAE,KAAK,IAAI,mBAC5B,CAAC,YAAY,EAAE,aAAa,KAAK,IAAI,kBACtC,CAAC,WAAW,EAAE,MAAM,KAAK,IAAI,YACnC,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,gBACnB,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,KACvC,OAAO,CAAC,IAAI,CA+Dd,CAAC;AAkCF,eAAO,MAAM,SAAS,aAAoB,QAAQ,kBAiDjD,CAAA"}
@@ -1,11 +1,12 @@
1
1
  import React from 'react';
2
- interface TopOffersProps {
3
- showMore?: boolean;
4
- showMyOffers?: boolean;
5
- showMyOffersEmptyView?: boolean;
6
- style?: number;
2
+ export declare const enum PremiumWidgetStyles {
3
+ list = 0,
4
+ sliderCards = 1
5
+ }
6
+ interface PremiumWidgetProps {
7
+ widgetStyle?: PremiumWidgetStyles;
7
8
  onNavigate: (route?: string, campaignID?: number) => void;
8
9
  }
9
- declare const TopOffers: React.FC<TopOffersProps>;
10
- export default TopOffers;
10
+ declare const PremiumWidgets: React.FC<PremiumWidgetProps>;
11
+ export default PremiumWidgets;
11
12
  //# sourceMappingURL=top_offers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"top_offers.d.ts","sourceRoot":"","sources":["../../../../../../../src/acmo/modules/dashboard/top_offers.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAgBnD,UAAU,cAAc;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CAC3D;AAED,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CA8FvC,CAAC;AAyBF,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"top_offers.d.ts","sourceRoot":"","sources":["../../../../../../../src/acmo/modules/dashboard/top_offers.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAiBnD,0BAAkB,mBAAmB;IACnC,IAAI,IAAA;IACJ,WAAW,IAAA;CACZ;AAED,UAAU,kBAAkB;IAC1B,WAAW,CAAC,EAAE,mBAAmB,CAAC;IAClC,UAAU,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CAC3D;AAED,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAsIhD,CAAC;AAkCF,eAAe,cAAc,CAAC"}
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ interface LocalizationContextProps {
3
+ t: (key: string, args?: Record<string, string | number>) => string;
4
+ changeLanguage: (lang: string) => Promise<void>;
5
+ currentLanguage: string;
6
+ }
7
+ export declare const LocalizationProvider: React.FC<{
8
+ children: React.ReactNode;
9
+ }>;
10
+ export declare const useLocalization: () => LocalizationContextProps;
11
+ export declare const updateProviderLanguage: (lang: string) => Promise<void>;
12
+ export declare const changeProviderLanguage: (lang: string) => Promise<void>;
13
+ export {};
14
+ //# sourceMappingURL=localization_context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"localization_context.d.ts","sourceRoot":"","sources":["../../../../../../../src/acmo/modules/localization/localization_context.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyD,MAAM,OAAO,CAAC;AAG9E,UAAU,wBAAwB;IAChC,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,KAAK,MAAM,CAAC;IACnE,cAAc,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAChD,eAAe,EAAE,MAAM,CAAC;CACzB;AAUD,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,CAoBxE,CAAC;AAEF,eAAO,MAAM,eAAe,gCAAwC,CAAC;AAErE,eAAO,MAAM,sBAAsB,SAAgB,MAAM,kBAIxD,CAAC;AAEF,eAAO,MAAM,sBAAsB,SAAgB,MAAM,kBAIxD,CAAC"}
@@ -1,18 +1,20 @@
1
+ import { PremiumWidgetStyles } from './acmo/modules/dashboard/top_offers';
1
2
  declare const Tyrads: {
2
3
  init: (apiKey: string, apiSecret: string, encKey?: string) => Promise<any>;
3
4
  loginUser: (userId: string) => Promise<any>;
4
5
  showOffers: ({ launchMode, route, campaignID, }?: {
5
6
  launchMode?: number;
6
7
  route?: string;
7
- campaignID?: number;
8
+ campaignID?: number | null;
8
9
  }) => Promise<any>;
9
- topPremiumOffers: ({ showMore, showMyOffers, showMyOffersEmptyView, viewStyle, launchMode, }?: {
10
- showMore?: boolean;
11
- showMyOffers?: boolean;
12
- showMyOffersEmptyView?: boolean;
13
- viewStyle?: number;
10
+ topPremiumOffers: ({ widgetStyle, launchMode, }?: {
11
+ widgetStyle?: PremiumWidgetStyles;
14
12
  launchMode?: number;
15
13
  }) => import("react/jsx-runtime").JSX.Element;
14
+ topPremiumOffersLoading: ({ widgetStyle }: {
15
+ widgetStyle?: PremiumWidgetStyles;
16
+ }) => import("react/jsx-runtime").JSX.Element;
17
+ changeLanguage: (lang: string) => Promise<any>;
16
18
  };
17
19
  export default Tyrads;
18
20
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.tsx"],"names":[],"mappings":"AA2BA,QAAA,MAAM,MAAM;mBACW,MAAM,aAAa,MAAM,WAAW,MAAM;wBAIrC,MAAM;sDAsB7B;QAAE,UAAU,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAA;KAAE;mGAa5D;QACD,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,YAAY,CAAC,EAAE,OAAO,CAAC;QACvB,qBAAqB,CAAC,EAAE,OAAO,CAAC;QAChC,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB;CAkBF,CAAC;AAEF,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.tsx"],"names":[],"mappings":"AAEA,OAAkB,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AA8BrF,QAAA,MAAM,MAAM;mBACW,MAAM,aAAa,MAAM,WAAW,MAAM;wBAgCrC,MAAM;sDAoB7B;QAAE,UAAU,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE;sDAgBnE;QACD,WAAW,CAAC,EAAE,mBAAmB,CAAC;QAClC,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB;+CAgB6C;QAC1C,WAAW,CAAC,EAAE,mBAAmB,CAAC;KACnC;2BAQ0B,MAAM;CAGpC,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -0,0 +1,3 @@
1
+ export declare function acmoLaunchURLForce(url: string): Promise<void>;
2
+ export declare function acmoLaunchURL(url: string): Promise<void>;
3
+ //# sourceMappingURL=launcher.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"launcher.d.ts","sourceRoot":"","sources":["../../../../../../../src/acmo/core/helpers/launcher.ts"],"names":[],"mappings":"AAEA,wBAAsB,kBAAkB,CAAC,GAAG,EAAE,MAAM,iBAEnD;AAED,wBAAsB,aAAa,CAAC,GAAG,EAAE,MAAM,iBAO9C"}
@@ -0,0 +1,6 @@
1
+ declare const TyradsNativeMethods: {
2
+ isPrivacyAccepted: () => Promise<any>;
3
+ checkOnboardingProcess: () => Promise<boolean>;
4
+ };
5
+ export default TyradsNativeMethods;
6
+ //# sourceMappingURL=native_methods.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"native_methods.d.ts","sourceRoot":"","sources":["../../../../../../../src/acmo/core/helpers/native_methods.ts"],"names":[],"mappings":"AAoBA,QAAA,MAAM,mBAAmB;;;CAoBxB,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const numeral: (value: number, decimals?: number) => string;
2
+ //# sourceMappingURL=numeral.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"numeral.d.ts","sourceRoot":"","sources":["../../../../../../../src/acmo/core/helpers/numeral.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,UAAW,MAAM,aAAY,MAAM,KAAO,MAa7D,CAAC"}
@@ -0,0 +1,18 @@
1
+ declare class LocalizationService {
2
+ private static instance;
3
+ private axios;
4
+ private translations;
5
+ private supportedLocales;
6
+ private readonly fallbackLocale;
7
+ private constructor();
8
+ static getInstance(): LocalizationService;
9
+ private static getHeadersFromStorage;
10
+ init(locale: string): Promise<void>;
11
+ private loadTranslations;
12
+ private fetchTranslations;
13
+ private checkForUpdate;
14
+ translate(key: string, args?: Record<string, string | number>): string;
15
+ changeLanguage(locale: string, force?: boolean): Promise<void>;
16
+ }
17
+ export default LocalizationService;
18
+ //# sourceMappingURL=localization_service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"localization_service.d.ts","sourceRoot":"","sources":["../../../../../../../src/acmo/core/services/localization_service.ts"],"names":[],"mappings":"AAgBA,cAAM,mBAAmB;IACvB,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAsB;IAC7C,OAAO,CAAC,KAAK,CAA8B;IAC3C,OAAO,CAAC,YAAY,CAAoB;IACxC,OAAO,CAAC,gBAAgB,CAAgB;IACxC,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAgB;IAE/C,OAAO;WAGO,WAAW,IAAI,mBAAmB;mBAO3B,qBAAqB;IAW7B,IAAI,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;YA4ClC,gBAAgB;YAkBhB,iBAAiB;YAiCjB,cAAc;IA+BrB,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAM,GAAG,MAAM;IAwBpE,cAAc,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,UAAQ,GAAG,OAAO,CAAC,IAAI,CAAC;CAG1E;AAED,eAAe,mBAAmB,CAAC"}
@@ -1,3 +1,4 @@
1
1
  export declare const saveData: (key: string, object: any) => Promise<void>;
2
2
  export declare const getData: <T>(key: string) => Promise<T | null>;
3
+ export declare const clearData: <T>(key: string) => Promise<T | null>;
3
4
  //# sourceMappingURL=storage.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../../../../../../../src/acmo/core/storage/storage.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ,GAAU,KAAK,MAAM,EAAE,QAAQ,GAAG,KAAG,OAAO,CAAC,IAAI,CAWrE,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,CAAC,EAAE,KAAK,MAAM,KAAG,OAAO,CAAC,CAAC,GAAG,IAAI,CAY9D,CAAC"}
1
+ {"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../../../../../../../src/acmo/core/storage/storage.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ,QAAe,MAAM,UAAU,GAAG,KAAG,OAAO,CAAC,IAAI,CAWrE,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,CAAC,OAAO,MAAM,KAAG,OAAO,CAAC,CAAC,GAAG,IAAI,CAY9D,CAAC;AAEF,eAAO,MAAM,SAAS,GAAU,CAAC,OAAO,MAAM,KAAG,OAAO,CAAC,CAAC,GAAG,IAAI,CAYhE,CAAC"}
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ interface ActiveOffersBtnProps {
3
+ premiumColor?: string;
4
+ activeCount: number;
5
+ onPress: (route: string) => void;
6
+ }
7
+ declare const ActiveOffersButton: React.FC<ActiveOffersBtnProps>;
8
+ export default ActiveOffersButton;
9
+ //# sourceMappingURL=active_offers_button.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"active_offers_button.d.ts","sourceRoot":"","sources":["../../../../../../../../src/acmo/modules/dashboard/components/active_offers_button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,UAAU,oBAAoB;IAC5B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CAClC;AAED,QAAA,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAgBtD,CAAC;AAkCF,eAAe,kBAAkB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"custom_card.d.ts","sourceRoot":"","sources":["../../../../../../../../src/acmo/modules/dashboard/components/custom_card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAC9C,OAAO,EAAoB,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAEhE,UAAU,eAAe;IACvB,QAAQ,EAAE,SAAS,CAAC;IACpB,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB;AAED,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAEzC,CAAC;AAoBF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"custom_card.d.ts","sourceRoot":"","sources":["../../../../../../../../src/acmo/modules/dashboard/components/custom_card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAC9C,OAAO,EAAoB,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAEhE,UAAU,eAAe;IACvB,QAAQ,EAAE,SAAS,CAAC;IACpB,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB;AAED,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAEzC,CAAC;AAiBF,eAAe,UAAU,CAAC"}
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import { type ViewStyle, type StyleProp } from 'react-native';
3
+ interface PagerProps {
4
+ totalPages: number;
5
+ delayInMillis?: number;
6
+ premiumColor?: string;
7
+ content: (index: number) => React.ReactNode;
8
+ viewportFraction?: number;
9
+ scaleFactor?: number;
10
+ spacing?: number;
11
+ indicatorStyle?: StyleProp<ViewStyle>;
12
+ activeIndicatorColor?: string;
13
+ inactiveIndicatorColor?: string;
14
+ }
15
+ declare const AcmoScrollPager: React.FC<PagerProps>;
16
+ export default AcmoScrollPager;
17
+ //# sourceMappingURL=custom_scroller.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"custom_scroller.d.ts","sourceRoot":"","sources":["../../../../../../../../src/acmo/modules/dashboard/components/custom_scroller.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAC3D,OAAO,EAIL,KAAK,SAAS,EACd,KAAK,SAAS,EAEf,MAAM,cAAc,CAAC;AAEtB,UAAU,UAAU;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,KAAK,CAAC,SAAS,CAAC;IAC5C,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,cAAc,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACtC,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,sBAAsB,CAAC,EAAE,MAAM,CAAC;CACjC;AAED,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CA2HzC,CAAC;AAiBF,eAAe,eAAe,CAAC"}
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { type DimensionValue, type ViewStyle, type StyleProp } from 'react-native';
3
+ interface ShimmerProps {
4
+ width?: DimensionValue;
5
+ shimmerHeight?: number;
6
+ style?: StyleProp<ViewStyle>;
7
+ duration?: number;
8
+ }
9
+ declare const Shimmer: React.FC<ShimmerProps>;
10
+ export default Shimmer;
11
+ //# sourceMappingURL=custom_shimmer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"custom_shimmer.d.ts","sourceRoot":"","sources":["../../../../../../../../src/acmo/modules/dashboard/components/custom_shimmer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AACjD,OAAO,EAA0C,KAAK,cAAc,EAAE,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAE3H,UAAU,YAAY;IACpB,KAAK,CAAC,EAAE,cAAc,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAID,QAAA,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAwCnC,CAAC;AAsBF,eAAe,OAAO,CAAC"}
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ interface Props {
3
+ item: Campaign;
4
+ onButtonClick: () => Promise<void>;
5
+ currencySaleModel?: CurrencySales;
6
+ premiumColor?: string;
7
+ isLoading: boolean;
8
+ onTap?: () => Promise<void>;
9
+ }
10
+ declare const AcmoOfferCard: React.FC<Props>;
11
+ export default AcmoOfferCard;
12
+ //# sourceMappingURL=offer_card.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"offer_card.d.ts","sourceRoot":"","sources":["../../../../../../../../src/acmo/modules/dashboard/components/offer_card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAYxC,UAAU,KAAK;IACb,IAAI,EAAE,QAAQ,CAAC;IACf,aAAa,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IACnC,iBAAiB,CAAC,EAAE,aAAa,CAAC;IAClC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC7B;AAED,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CA8FlC,CAAC;AAoIF,eAAe,aAAa,CAAC"}
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ type Props = {
3
+ offer: Campaign;
4
+ currencySales?: CurrencySales;
5
+ onButtonTap: () => Promise<void>;
6
+ onPress: () => Promise<void>;
7
+ index: number;
8
+ colorPremium?: string;
9
+ colorPremiumFg?: string;
10
+ loadingIndex: number | null;
11
+ setLoadingIndex: (index: number | null) => void;
12
+ };
13
+ export declare const AcmoOfferListItem: React.FC<Props>;
14
+ export {};
15
+ //# sourceMappingURL=offer_list_item.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"offer_list_item.d.ts","sourceRoot":"","sources":["../../../../../../../../src/acmo/modules/dashboard/components/offer_list_item.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAc1B,KAAK,KAAK,GAAG;IACX,KAAK,EAAE,QAAQ,CAAC;IAChB,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,WAAW,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IACjC,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,eAAe,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;CACjD,CAAC;AAUF,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CA6F7C,CAAC"}
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ declare const PremiumEmptyView: React.FC<{
3
+ onContinue?: () => void;
4
+ colorPremium?: string;
5
+ }>;
6
+ export default PremiumEmptyView;
7
+ //# sourceMappingURL=premium_empty_widget.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"premium_empty_widget.d.ts","sourceRoot":"","sources":["../../../../../../../../src/acmo/modules/dashboard/components/premium_empty_widget.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,QAAA,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IAAC,YAAY,CAAC,EAAE,MAAM,CAAA;CAAC,CAqCjF,CAAC;AAqCF,eAAe,gBAAgB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"premium_header.d.ts","sourceRoot":"","sources":["../../../../../../../../src/acmo/modules/dashboard/components/premium_header.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,UAAU,yBAAyB;IACjC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;CAC3B;AAED,QAAA,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,yBAAyB,CA4B7D,CAAC;AA0CF,eAAe,oBAAoB,CAAC"}
1
+ {"version":3,"file":"premium_header.d.ts","sourceRoot":"","sources":["../../../../../../../../src/acmo/modules/dashboard/components/premium_header.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,UAAU,yBAAyB;IACjC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;CAC3B;AAED,QAAA,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,yBAAyB,CA6B7D,CAAC;AA0CF,eAAe,oBAAoB,CAAC"}
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { PremiumWidgetStyles } from '../top_offers';
3
+ interface PremiumWidgetsLoadingProps {
4
+ widgetStyle: PremiumWidgetStyles;
5
+ }
6
+ declare const PremiumWidgetsLoading: React.FC<PremiumWidgetsLoadingProps>;
7
+ export default PremiumWidgetsLoading;
8
+ //# sourceMappingURL=premium_loading.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"premium_loading.d.ts","sourceRoot":"","sources":["../../../../../../../../src/acmo/modules/dashboard/components/premium_loading.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAGpD,UAAU,0BAA0B;IAClC,WAAW,EAAE,mBAAmB,CAAC;CAClC;AAED,QAAA,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,0BAA0B,CAqC/D,CAAC;AAwBF,eAAe,qBAAqB,CAAC"}
@@ -1,2 +1,3 @@
1
- export declare const fetchCampaignsData: (setPremiumColor: (color: string) => void, setCampaigns: (campaigns: TransformedCampaign[]) => void, setError: (error: string) => void, setIsLoading: (loading: boolean) => void) => Promise<void>;
1
+ export declare const fetchPremiumOfferDetails: (setPremiumColor: (color: string) => void, setCampaigns: (campaigns: Campaign[]) => void, setCurrencySale: (currencySale: CurrencySales) => void, setActiveCount: (activeCount: number) => void, setError: (error: string) => void, setIsLoading: (loading: boolean) => void) => Promise<void>;
2
+ export declare const openOffer: (campaign: Campaign) => Promise<void>;
2
3
  //# sourceMappingURL=repository.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"repository.d.ts","sourceRoot":"","sources":["../../../../../../../src/acmo/modules/dashboard/repository.ts"],"names":[],"mappings":"AAgCA,eAAO,MAAM,kBAAkB,GAE7B,iBAAiB,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,EACxC,cAAc,CAAC,SAAS,EAAE,mBAAmB,EAAE,KAAK,IAAI,EACxD,UAAU,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,EACjC,cAAc,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,KACvC,OAAO,CAAC,IAAI,CAwDd,CAAC"}
1
+ {"version":3,"file":"repository.d.ts","sourceRoot":"","sources":["../../../../../../../src/acmo/modules/dashboard/repository.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,wBAAwB,oBAClB,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,gBAC1B,CAAC,SAAS,EAAE,QAAQ,EAAE,KAAK,IAAI,mBAC5B,CAAC,YAAY,EAAE,aAAa,KAAK,IAAI,kBACtC,CAAC,WAAW,EAAE,MAAM,KAAK,IAAI,YACnC,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,gBACnB,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,KACvC,OAAO,CAAC,IAAI,CA+Dd,CAAC;AAkCF,eAAO,MAAM,SAAS,aAAoB,QAAQ,kBAiDjD,CAAA"}
@@ -1,11 +1,12 @@
1
1
  import React from 'react';
2
- interface TopOffersProps {
3
- showMore?: boolean;
4
- showMyOffers?: boolean;
5
- showMyOffersEmptyView?: boolean;
6
- style?: number;
2
+ export declare const enum PremiumWidgetStyles {
3
+ list = 0,
4
+ sliderCards = 1
5
+ }
6
+ interface PremiumWidgetProps {
7
+ widgetStyle?: PremiumWidgetStyles;
7
8
  onNavigate: (route?: string, campaignID?: number) => void;
8
9
  }
9
- declare const TopOffers: React.FC<TopOffersProps>;
10
- export default TopOffers;
10
+ declare const PremiumWidgets: React.FC<PremiumWidgetProps>;
11
+ export default PremiumWidgets;
11
12
  //# sourceMappingURL=top_offers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"top_offers.d.ts","sourceRoot":"","sources":["../../../../../../../src/acmo/modules/dashboard/top_offers.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAgBnD,UAAU,cAAc;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CAC3D;AAED,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CA8FvC,CAAC;AAyBF,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"top_offers.d.ts","sourceRoot":"","sources":["../../../../../../../src/acmo/modules/dashboard/top_offers.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAiBnD,0BAAkB,mBAAmB;IACnC,IAAI,IAAA;IACJ,WAAW,IAAA;CACZ;AAED,UAAU,kBAAkB;IAC1B,WAAW,CAAC,EAAE,mBAAmB,CAAC;IAClC,UAAU,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CAC3D;AAED,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAsIhD,CAAC;AAkCF,eAAe,cAAc,CAAC"}
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ interface LocalizationContextProps {
3
+ t: (key: string, args?: Record<string, string | number>) => string;
4
+ changeLanguage: (lang: string) => Promise<void>;
5
+ currentLanguage: string;
6
+ }
7
+ export declare const LocalizationProvider: React.FC<{
8
+ children: React.ReactNode;
9
+ }>;
10
+ export declare const useLocalization: () => LocalizationContextProps;
11
+ export declare const updateProviderLanguage: (lang: string) => Promise<void>;
12
+ export declare const changeProviderLanguage: (lang: string) => Promise<void>;
13
+ export {};
14
+ //# sourceMappingURL=localization_context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"localization_context.d.ts","sourceRoot":"","sources":["../../../../../../../src/acmo/modules/localization/localization_context.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyD,MAAM,OAAO,CAAC;AAG9E,UAAU,wBAAwB;IAChC,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,KAAK,MAAM,CAAC;IACnE,cAAc,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAChD,eAAe,EAAE,MAAM,CAAC;CACzB;AAUD,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,CAoBxE,CAAC;AAEF,eAAO,MAAM,eAAe,gCAAwC,CAAC;AAErE,eAAO,MAAM,sBAAsB,SAAgB,MAAM,kBAIxD,CAAC;AAEF,eAAO,MAAM,sBAAsB,SAAgB,MAAM,kBAIxD,CAAC"}
@@ -1,18 +1,20 @@
1
+ import { PremiumWidgetStyles } from './acmo/modules/dashboard/top_offers';
1
2
  declare const Tyrads: {
2
3
  init: (apiKey: string, apiSecret: string, encKey?: string) => Promise<any>;
3
4
  loginUser: (userId: string) => Promise<any>;
4
5
  showOffers: ({ launchMode, route, campaignID, }?: {
5
6
  launchMode?: number;
6
7
  route?: string;
7
- campaignID?: number;
8
+ campaignID?: number | null;
8
9
  }) => Promise<any>;
9
- topPremiumOffers: ({ showMore, showMyOffers, showMyOffersEmptyView, viewStyle, launchMode, }?: {
10
- showMore?: boolean;
11
- showMyOffers?: boolean;
12
- showMyOffersEmptyView?: boolean;
13
- viewStyle?: number;
10
+ topPremiumOffers: ({ widgetStyle, launchMode, }?: {
11
+ widgetStyle?: PremiumWidgetStyles;
14
12
  launchMode?: number;
15
13
  }) => import("react/jsx-runtime").JSX.Element;
14
+ topPremiumOffersLoading: ({ widgetStyle }: {
15
+ widgetStyle?: PremiumWidgetStyles;
16
+ }) => import("react/jsx-runtime").JSX.Element;
17
+ changeLanguage: (lang: string) => Promise<any>;
16
18
  };
17
19
  export default Tyrads;
18
20
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.tsx"],"names":[],"mappings":"AA2BA,QAAA,MAAM,MAAM;mBACW,MAAM,aAAa,MAAM,WAAW,MAAM;wBAIrC,MAAM;sDAsB7B;QAAE,UAAU,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAA;KAAE;mGAa5D;QACD,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,YAAY,CAAC,EAAE,OAAO,CAAC;QACvB,qBAAqB,CAAC,EAAE,OAAO,CAAC;QAChC,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB;CAkBF,CAAC;AAEF,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.tsx"],"names":[],"mappings":"AAEA,OAAkB,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AA8BrF,QAAA,MAAM,MAAM;mBACW,MAAM,aAAa,MAAM,WAAW,MAAM;wBAgCrC,MAAM;sDAoB7B;QAAE,UAAU,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE;sDAgBnE;QACD,WAAW,CAAC,EAAE,mBAAmB,CAAC;QAClC,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB;+CAgB6C;QAC1C,WAAW,CAAC,EAAE,mBAAmB,CAAC;KACnC;2BAQ0B,MAAM;CAGpC,CAAC;AAEF,eAAe,MAAM,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tyrads.com/tyrads-sdk",
3
- "version": "3.0.0-beta.0",
3
+ "version": "3.2.0-beta.0",
4
4
  "description": "Tyrads SDK for React Native ",
5
5
  "source": "./src/index.tsx",
6
6
  "main": "./lib/commonjs/index.js",
@@ -71,6 +71,7 @@
71
71
  "@types/jest": "^29.5.5",
72
72
  "@types/numeral": "^2.0.5",
73
73
  "@types/react": "^18.2.44",
74
+ "@types/react-native-snap-carousel": "^3.8.11",
74
75
  "commitlint": "^17.0.2",
75
76
  "del-cli": "^5.1.0",
76
77
  "eslint": "^8.51.0",
@@ -188,10 +189,6 @@
188
189
  },
189
190
  "dependencies": {
190
191
  "@react-native-async-storage/async-storage": "^2.1.2",
191
- "axios": "^1.8.1",
192
- "i18next": "^24.2.2",
193
- "numeral": "^2.0.6",
194
- "react-i18next": "^15.4.1",
195
- "react-native-text-ticker": "^1.14.0"
192
+ "axios": "^1.8.1"
196
193
  }
197
194
  }
package/readme.md CHANGED
@@ -68,10 +68,10 @@ Tyrads.showOffers({ launchMode: 3 });// provide launchMode: 2 to open the Offerw
68
68
  The Tyrads SDK supports deeplinking to specific sections of the offerwall. When initializing or interacting with the SDK, you can specify a route to open a particular page. For campaign-specific routes, you'll need to provide the campaignID as well.
69
69
 
70
70
  Available routes and their usage:
71
- - `campaigns` - opens the Campaigns Page
72
- - `campaigns-activated` - opens the Activated Campaigns Page
73
- - `campaign-details` - opens the Campaign Details Page (requires campaignID)
74
- - `campaign-tickets` - opens the Campaign Tickets Page (requires campaignID)
71
+ - `offers` - opens the Campaigns Page
72
+ - `active-offers` - opens the Activated Campaigns Page
73
+ - `offer-details` - opens the Campaign Details Page (requires campaignID)
74
+ - `support` - opens the Campaign Tickets Page (requires campaignID)
75
75
 
76
76
  ```js
77
77
 
@@ -79,16 +79,16 @@ Available routes and their usage:
79
79
  Tyrads.showOffers();
80
80
 
81
81
  // Explicitly specifying the Campaigns Page
82
- Tyrads.showOffers({ route: "campaigns" });
82
+ Tyrads.showOffers({ route: "offers" });
83
83
 
84
84
  // Activated Campaigns Page
85
- Tyrads.showOffers({ route: "campaigns-activated" });
85
+ Tyrads.showOffers({ route: "active-offers" });
86
86
 
87
87
  // Campaign Details Page (requires campaignID)
88
- Tyrads.showOffers({ route: "campaign-details", campaignID: "your_campaign_id_here" });
88
+ Tyrads.showOffers({ route: "offer-details", campaignID: "your_campaign_id_here" });
89
89
 
90
90
  // Campaign Tickets Page (requires campaignID)
91
- Tyrads.showOffers({ route: "campaign-tickets", campaignID: "your_campaign_id_here" });
91
+ Tyrads.showOffers({ route: "support", campaignID: "your_campaign_id_here" });
92
92
 
93
93
  ```
94
94
  </details>
@@ -0,0 +1,14 @@
1
+ import { Linking } from "react-native";
2
+
3
+ export async function acmoLaunchURLForce(url: string) {
4
+ await Linking.openURL(url);
5
+ }
6
+
7
+ export async function acmoLaunchURL(url: string) {
8
+ const supported = await Linking.canOpenURL(url);
9
+ if (supported) {
10
+ await Linking.openURL(url);
11
+ } else {
12
+ console.warn("Don't know how to open URI: " + url);
13
+ }
14
+ }
@@ -0,0 +1,43 @@
1
+ import { NativeModules, Platform } from "react-native";
2
+
3
+ const LINKING_ERROR =
4
+ `The package 'tyrads-sdk' doesn't seem to be linked. Make sure: \n\n` +
5
+ Platform.select({ ios: "- You have run 'pod install'\n", default: '' }) +
6
+ '- You rebuilt the app after installing the package\n' +
7
+ '- You are not using Expo Go\n';
8
+
9
+ const TyradsSdk = NativeModules.TyradsSdk
10
+ ? NativeModules.TyradsSdk
11
+ : new Proxy(
12
+ {},
13
+ {
14
+ get() {
15
+ throw new Error(LINKING_ERROR);
16
+ },
17
+ }
18
+ );
19
+
20
+
21
+ const TyradsNativeMethods = {
22
+
23
+ isPrivacyAccepted: async () => {
24
+ try {
25
+ return await TyradsSdk.isPrivacyAccepted();
26
+ } catch (err) {
27
+ console.error("Error checking privacy acceptance:", err);
28
+ return false;
29
+ }
30
+ },
31
+
32
+ checkOnboardingProcess: async () => {
33
+ try {
34
+ const result = await TyradsSdk.checkOnboardingProcess();
35
+ return result === true;
36
+ } catch (err) {
37
+ console.error("Error showing privacy flow:", err);
38
+ return false;
39
+ }
40
+ }
41
+ };
42
+
43
+ export default TyradsNativeMethods;
@@ -0,0 +1,14 @@
1
+ export const numeral = (value: number, decimals: number = 2): string => {
2
+ const suffixes = ['', 'K', 'M', 'B', 'T'];
3
+ let suffixIndex = 0;
4
+ let dividedValue = value;
5
+
6
+ while (dividedValue >= 1000 && suffixIndex < suffixes.length - 1) {
7
+ dividedValue /= 1000;
8
+ suffixIndex++;
9
+ }
10
+
11
+ const roundedValue = Math.floor(dividedValue * Math.pow(10, decimals)) / Math.pow(10, decimals);
12
+
13
+ return `${roundedValue}${suffixes[suffixIndex]}`;
14
+ };