@moneylion/react-native-offer-carousel 1.0.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 (598) hide show
  1. package/README.md +1 -0
  2. package/lib/commonjs/apiEnvironment.js +24 -0
  3. package/lib/commonjs/apiEnvironment.js.map +1 -0
  4. package/lib/commonjs/components/Button/index.js +119 -0
  5. package/lib/commonjs/components/Button/index.js.map +1 -0
  6. package/lib/commonjs/components/Cards/VideosCard/VideoContent.js +40 -0
  7. package/lib/commonjs/components/Cards/VideosCard/VideoContent.js.map +1 -0
  8. package/lib/commonjs/components/Cards/VideosCard/VideosCard.js +56 -0
  9. package/lib/commonjs/components/Cards/VideosCard/VideosCard.js.map +1 -0
  10. package/lib/commonjs/components/Cards/index.js +3 -0
  11. package/lib/commonjs/components/Cards/index.js.map +1 -0
  12. package/lib/commonjs/components/Common/BaseOfferCard/Content/Content.js +20 -0
  13. package/lib/commonjs/components/Common/BaseOfferCard/Content/Content.js.map +1 -0
  14. package/lib/commonjs/components/Common/BaseOfferCard/Content/index.js +17 -0
  15. package/lib/commonjs/components/Common/BaseOfferCard/Content/index.js.map +1 -0
  16. package/lib/commonjs/components/Common/BaseOfferCard/Stat/Stat.js +83 -0
  17. package/lib/commonjs/components/Common/BaseOfferCard/Stat/Stat.js.map +1 -0
  18. package/lib/commonjs/components/Common/BaseOfferCard/Stat/index.js +17 -0
  19. package/lib/commonjs/components/Common/BaseOfferCard/Stat/index.js.map +1 -0
  20. package/lib/commonjs/components/Common/BaseOfferCard/StatsContainer/StatsContainer.js +18 -0
  21. package/lib/commonjs/components/Common/BaseOfferCard/StatsContainer/StatsContainer.js.map +1 -0
  22. package/lib/commonjs/components/Common/BaseOfferCard/StatsContainer/index.js +17 -0
  23. package/lib/commonjs/components/Common/BaseOfferCard/StatsContainer/index.js.map +1 -0
  24. package/lib/commonjs/components/Common/BaseOfferCard/ThumbsUpIcon.js +29 -0
  25. package/lib/commonjs/components/Common/BaseOfferCard/ThumbsUpIcon.js.map +1 -0
  26. package/lib/commonjs/components/Common/BaseOfferCard/index.js +254 -0
  27. package/lib/commonjs/components/Common/BaseOfferCard/index.js.map +1 -0
  28. package/lib/commonjs/components/Common/DynamicOfferCard/CallToAction.js +45 -0
  29. package/lib/commonjs/components/Common/DynamicOfferCard/CallToAction.js.map +1 -0
  30. package/lib/commonjs/components/Common/DynamicOfferCard/SeeMore.js +72 -0
  31. package/lib/commonjs/components/Common/DynamicOfferCard/SeeMore.js.map +1 -0
  32. package/lib/commonjs/components/Common/DynamicOfferCard/index.js +37 -0
  33. package/lib/commonjs/components/Common/DynamicOfferCard/index.js.map +1 -0
  34. package/lib/commonjs/components/Common/index.js +27 -0
  35. package/lib/commonjs/components/Common/index.js.map +1 -0
  36. package/lib/commonjs/components/Divider/index.js +39 -0
  37. package/lib/commonjs/components/Divider/index.js.map +1 -0
  38. package/lib/commonjs/components/DynamicOffers/DynamicOffers.js +32 -0
  39. package/lib/commonjs/components/DynamicOffers/DynamicOffers.js.map +1 -0
  40. package/lib/commonjs/components/DynamicOffers/DynamicOffersContainer.js +49 -0
  41. package/lib/commonjs/components/DynamicOffers/DynamicOffersContainer.js.map +1 -0
  42. package/lib/commonjs/components/DynamicOffers/Render/DynamicOffersRender.js +205 -0
  43. package/lib/commonjs/components/DynamicOffers/Render/DynamicOffersRender.js.map +1 -0
  44. package/lib/commonjs/components/DynamicOffers/Render/FallbackOfferTemplate.js +28 -0
  45. package/lib/commonjs/components/DynamicOffers/Render/FallbackOfferTemplate.js.map +1 -0
  46. package/lib/commonjs/components/DynamicOffers/Render/Offer.js +70 -0
  47. package/lib/commonjs/components/DynamicOffers/Render/Offer.js.map +1 -0
  48. package/lib/commonjs/components/DynamicOffers/Render/index.js +20 -0
  49. package/lib/commonjs/components/DynamicOffers/Render/index.js.map +1 -0
  50. package/lib/commonjs/components/Layouts/CreditCardOfferCard/index.js +65 -0
  51. package/lib/commonjs/components/Layouts/CreditCardOfferCard/index.js.map +1 -0
  52. package/lib/commonjs/components/Layouts/CreditCardOfferCard/statsBuilder.js +15 -0
  53. package/lib/commonjs/components/Layouts/CreditCardOfferCard/statsBuilder.js.map +1 -0
  54. package/lib/commonjs/components/Layouts/DefaultOfferCard/index.js +53 -0
  55. package/lib/commonjs/components/Layouts/DefaultOfferCard/index.js.map +1 -0
  56. package/lib/commonjs/components/Layouts/DefaultOfferCard/statsBuilder.js +17 -0
  57. package/lib/commonjs/components/Layouts/DefaultOfferCard/statsBuilder.js.map +1 -0
  58. package/lib/commonjs/components/Layouts/HeadlineWithDescriptionCard/index.js +47 -0
  59. package/lib/commonjs/components/Layouts/HeadlineWithDescriptionCard/index.js.map +1 -0
  60. package/lib/commonjs/components/Layouts/index.js +27 -0
  61. package/lib/commonjs/components/Layouts/index.js.map +1 -0
  62. package/lib/commonjs/components/Modal/DescriptionPoints.js +28 -0
  63. package/lib/commonjs/components/Modal/DescriptionPoints.js.map +1 -0
  64. package/lib/commonjs/components/Modal/Disclaimer.js +27 -0
  65. package/lib/commonjs/components/Modal/Disclaimer.js.map +1 -0
  66. package/lib/commonjs/components/Modal/OfferDetailsModal.js +95 -0
  67. package/lib/commonjs/components/Modal/OfferDetailsModal.js.map +1 -0
  68. package/lib/commonjs/components/MoneyLionOfferCarousel.js +174 -0
  69. package/lib/commonjs/components/MoneyLionOfferCarousel.js.map +1 -0
  70. package/lib/commonjs/components/Skeleton/Skeleton.js +65 -0
  71. package/lib/commonjs/components/Skeleton/Skeleton.js.map +1 -0
  72. package/lib/commonjs/components/Skeleton/index.js +10 -0
  73. package/lib/commonjs/components/Skeleton/index.js.map +1 -0
  74. package/lib/commonjs/components/Text/index.js +184 -0
  75. package/lib/commonjs/components/Text/index.js.map +1 -0
  76. package/lib/commonjs/components/View/index.js +162 -0
  77. package/lib/commonjs/components/View/index.js.map +1 -0
  78. package/lib/commonjs/context/CNFProvider.js +2 -0
  79. package/lib/commonjs/context/CNFProvider.js.map +1 -0
  80. package/lib/commonjs/context/EventHandlerProvider.js +25 -0
  81. package/lib/commonjs/context/EventHandlerProvider.js.map +1 -0
  82. package/lib/commonjs/context/ThemeProvider.js +59 -0
  83. package/lib/commonjs/context/ThemeProvider.js.map +1 -0
  84. package/lib/commonjs/deps/configuration.js +2 -0
  85. package/lib/commonjs/deps/configuration.js.map +1 -0
  86. package/lib/commonjs/index.js +17 -0
  87. package/lib/commonjs/index.js.map +1 -0
  88. package/lib/commonjs/pageData.js +93 -0
  89. package/lib/commonjs/pageData.js.map +1 -0
  90. package/lib/commonjs/services/getDynamicOffers.js +55 -0
  91. package/lib/commonjs/services/getDynamicOffers.js.map +1 -0
  92. package/lib/commonjs/services/getProductTypes.js +50 -0
  93. package/lib/commonjs/services/getProductTypes.js.map +1 -0
  94. package/lib/commonjs/services/getProductTypesByQuery.js +55 -0
  95. package/lib/commonjs/services/getProductTypesByQuery.js.map +1 -0
  96. package/lib/commonjs/utils/addClientTagsToOfferLinks.js +25 -0
  97. package/lib/commonjs/utils/addClientTagsToOfferLinks.js.map +1 -0
  98. package/lib/commonjs/utils/formatOfferUrl.js +31 -0
  99. package/lib/commonjs/utils/formatOfferUrl.js.map +1 -0
  100. package/lib/commonjs/utils/getDefaultPaletteColor.js +20 -0
  101. package/lib/commonjs/utils/getDefaultPaletteColor.js.map +1 -0
  102. package/lib/commonjs/utils/getDefaultProductType.js +9 -0
  103. package/lib/commonjs/utils/getDefaultProductType.js.map +1 -0
  104. package/lib/commonjs/utils/getEnableUseCachedOffers.js +21 -0
  105. package/lib/commonjs/utils/getEnableUseCachedOffers.js.map +1 -0
  106. package/lib/commonjs/utils/getOffersBasedOnLayout.js +48 -0
  107. package/lib/commonjs/utils/getOffersBasedOnLayout.js.map +1 -0
  108. package/lib/commonjs/utils/getOffersByProductTypes.js +31 -0
  109. package/lib/commonjs/utils/getOffersByProductTypes.js.map +1 -0
  110. package/lib/commonjs/utils/getProductTypesDefinition.js +17 -0
  111. package/lib/commonjs/utils/getProductTypesDefinition.js.map +1 -0
  112. package/lib/commonjs/utils/index.js +116 -0
  113. package/lib/commonjs/utils/index.js.map +1 -0
  114. package/lib/commonjs/utils/layouts.js +27 -0
  115. package/lib/commonjs/utils/layouts.js.map +1 -0
  116. package/lib/commonjs/utils/parseStringProductTypes.js +14 -0
  117. package/lib/commonjs/utils/parseStringProductTypes.js.map +1 -0
  118. package/lib/commonjs/utils/resolveProductTypes.js +12 -0
  119. package/lib/commonjs/utils/resolveProductTypes.js.map +1 -0
  120. package/lib/commonjs/utils/selectDynamicOffers.js +13 -0
  121. package/lib/commonjs/utils/selectDynamicOffers.js.map +1 -0
  122. package/lib/commonjs/utils/sortOffersByRecommendationScore.js +12 -0
  123. package/lib/commonjs/utils/sortOffersByRecommendationScore.js.map +1 -0
  124. package/lib/commonjs/version.js +10 -0
  125. package/lib/commonjs/version.js.map +1 -0
  126. package/lib/module/apiEnvironment.js +15 -0
  127. package/lib/module/apiEnvironment.js.map +1 -0
  128. package/lib/module/components/Button/index.js +111 -0
  129. package/lib/module/components/Button/index.js.map +1 -0
  130. package/lib/module/components/Cards/VideosCard/VideoContent.js +32 -0
  131. package/lib/module/components/Cards/VideosCard/VideoContent.js.map +1 -0
  132. package/lib/module/components/Cards/VideosCard/VideosCard.js +55 -0
  133. package/lib/module/components/Cards/VideosCard/VideosCard.js.map +1 -0
  134. package/lib/module/components/Cards/index.js +2 -0
  135. package/lib/module/components/Cards/index.js.map +1 -0
  136. package/lib/module/components/Common/BaseOfferCard/Content/Content.js +13 -0
  137. package/lib/module/components/Common/BaseOfferCard/Content/Content.js.map +1 -0
  138. package/lib/module/components/Common/BaseOfferCard/Content/index.js +2 -0
  139. package/lib/module/components/Common/BaseOfferCard/Content/index.js.map +1 -0
  140. package/lib/module/components/Common/BaseOfferCard/Stat/Stat.js +76 -0
  141. package/lib/module/components/Common/BaseOfferCard/Stat/Stat.js.map +1 -0
  142. package/lib/module/components/Common/BaseOfferCard/Stat/index.js +2 -0
  143. package/lib/module/components/Common/BaseOfferCard/Stat/index.js.map +1 -0
  144. package/lib/module/components/Common/BaseOfferCard/StatsContainer/StatsContainer.js +10 -0
  145. package/lib/module/components/Common/BaseOfferCard/StatsContainer/StatsContainer.js.map +1 -0
  146. package/lib/module/components/Common/BaseOfferCard/StatsContainer/index.js +2 -0
  147. package/lib/module/components/Common/BaseOfferCard/StatsContainer/index.js.map +1 -0
  148. package/lib/module/components/Common/BaseOfferCard/ThumbsUpIcon.js +21 -0
  149. package/lib/module/components/Common/BaseOfferCard/ThumbsUpIcon.js.map +1 -0
  150. package/lib/module/components/Common/BaseOfferCard/index.js +248 -0
  151. package/lib/module/components/Common/BaseOfferCard/index.js.map +1 -0
  152. package/lib/module/components/Common/DynamicOfferCard/CallToAction.js +37 -0
  153. package/lib/module/components/Common/DynamicOfferCard/CallToAction.js.map +1 -0
  154. package/lib/module/components/Common/DynamicOfferCard/SeeMore.js +62 -0
  155. package/lib/module/components/Common/DynamicOfferCard/SeeMore.js.map +1 -0
  156. package/lib/module/components/Common/DynamicOfferCard/index.js +31 -0
  157. package/lib/module/components/Common/DynamicOfferCard/index.js.map +1 -0
  158. package/lib/module/components/Common/index.js +4 -0
  159. package/lib/module/components/Common/index.js.map +1 -0
  160. package/lib/module/components/Divider/index.js +33 -0
  161. package/lib/module/components/Divider/index.js.map +1 -0
  162. package/lib/module/components/DynamicOffers/DynamicOffers.js +24 -0
  163. package/lib/module/components/DynamicOffers/DynamicOffers.js.map +1 -0
  164. package/lib/module/components/DynamicOffers/DynamicOffersContainer.js +40 -0
  165. package/lib/module/components/DynamicOffers/DynamicOffersContainer.js.map +1 -0
  166. package/lib/module/components/DynamicOffers/Render/DynamicOffersRender.js +196 -0
  167. package/lib/module/components/DynamicOffers/Render/DynamicOffersRender.js.map +1 -0
  168. package/lib/module/components/DynamicOffers/Render/FallbackOfferTemplate.js +21 -0
  169. package/lib/module/components/DynamicOffers/Render/FallbackOfferTemplate.js.map +1 -0
  170. package/lib/module/components/DynamicOffers/Render/Offer.js +61 -0
  171. package/lib/module/components/DynamicOffers/Render/Offer.js.map +1 -0
  172. package/lib/module/components/DynamicOffers/Render/index.js +3 -0
  173. package/lib/module/components/DynamicOffers/Render/index.js.map +1 -0
  174. package/lib/module/components/Layouts/CreditCardOfferCard/index.js +57 -0
  175. package/lib/module/components/Layouts/CreditCardOfferCard/index.js.map +1 -0
  176. package/lib/module/components/Layouts/CreditCardOfferCard/statsBuilder.js +8 -0
  177. package/lib/module/components/Layouts/CreditCardOfferCard/statsBuilder.js.map +1 -0
  178. package/lib/module/components/Layouts/DefaultOfferCard/index.js +45 -0
  179. package/lib/module/components/Layouts/DefaultOfferCard/index.js.map +1 -0
  180. package/lib/module/components/Layouts/DefaultOfferCard/statsBuilder.js +10 -0
  181. package/lib/module/components/Layouts/DefaultOfferCard/statsBuilder.js.map +1 -0
  182. package/lib/module/components/Layouts/HeadlineWithDescriptionCard/index.js +39 -0
  183. package/lib/module/components/Layouts/HeadlineWithDescriptionCard/index.js.map +1 -0
  184. package/lib/module/components/Layouts/index.js +4 -0
  185. package/lib/module/components/Layouts/index.js.map +1 -0
  186. package/lib/module/components/Modal/DescriptionPoints.js +21 -0
  187. package/lib/module/components/Modal/DescriptionPoints.js.map +1 -0
  188. package/lib/module/components/Modal/Disclaimer.js +20 -0
  189. package/lib/module/components/Modal/Disclaimer.js.map +1 -0
  190. package/lib/module/components/Modal/OfferDetailsModal.js +87 -0
  191. package/lib/module/components/Modal/OfferDetailsModal.js.map +1 -0
  192. package/lib/module/components/MoneyLionOfferCarousel.js +165 -0
  193. package/lib/module/components/MoneyLionOfferCarousel.js.map +1 -0
  194. package/lib/module/components/Skeleton/Skeleton.js +57 -0
  195. package/lib/module/components/Skeleton/Skeleton.js.map +1 -0
  196. package/lib/module/components/Skeleton/index.js +3 -0
  197. package/lib/module/components/Skeleton/index.js.map +1 -0
  198. package/lib/module/components/Text/index.js +179 -0
  199. package/lib/module/components/Text/index.js.map +1 -0
  200. package/lib/module/components/View/index.js +155 -0
  201. package/lib/module/components/View/index.js.map +1 -0
  202. package/lib/module/context/CNFProvider.js +2 -0
  203. package/lib/module/context/CNFProvider.js.map +1 -0
  204. package/lib/module/context/EventHandlerProvider.js +15 -0
  205. package/lib/module/context/EventHandlerProvider.js.map +1 -0
  206. package/lib/module/context/ThemeProvider.js +49 -0
  207. package/lib/module/context/ThemeProvider.js.map +1 -0
  208. package/lib/module/deps/configuration.js +2 -0
  209. package/lib/module/deps/configuration.js.map +1 -0
  210. package/lib/module/index.js +2 -0
  211. package/lib/module/index.js.map +1 -0
  212. package/lib/module/pageData.js +86 -0
  213. package/lib/module/pageData.js.map +1 -0
  214. package/lib/module/services/getDynamicOffers.js +48 -0
  215. package/lib/module/services/getDynamicOffers.js.map +1 -0
  216. package/lib/module/services/getProductTypes.js +43 -0
  217. package/lib/module/services/getProductTypes.js.map +1 -0
  218. package/lib/module/services/getProductTypesByQuery.js +48 -0
  219. package/lib/module/services/getProductTypesByQuery.js.map +1 -0
  220. package/lib/module/utils/addClientTagsToOfferLinks.js +18 -0
  221. package/lib/module/utils/addClientTagsToOfferLinks.js.map +1 -0
  222. package/lib/module/utils/formatOfferUrl.js +25 -0
  223. package/lib/module/utils/formatOfferUrl.js.map +1 -0
  224. package/lib/module/utils/getDefaultPaletteColor.js +13 -0
  225. package/lib/module/utils/getDefaultPaletteColor.js.map +1 -0
  226. package/lib/module/utils/getDefaultProductType.js +2 -0
  227. package/lib/module/utils/getDefaultProductType.js.map +1 -0
  228. package/lib/module/utils/getEnableUseCachedOffers.js +14 -0
  229. package/lib/module/utils/getEnableUseCachedOffers.js.map +1 -0
  230. package/lib/module/utils/getOffersBasedOnLayout.js +39 -0
  231. package/lib/module/utils/getOffersBasedOnLayout.js.map +1 -0
  232. package/lib/module/utils/getOffersByProductTypes.js +24 -0
  233. package/lib/module/utils/getOffersByProductTypes.js.map +1 -0
  234. package/lib/module/utils/getProductTypesDefinition.js +10 -0
  235. package/lib/module/utils/getProductTypesDefinition.js.map +1 -0
  236. package/lib/module/utils/index.js +11 -0
  237. package/lib/module/utils/index.js.map +1 -0
  238. package/lib/module/utils/layouts.js +20 -0
  239. package/lib/module/utils/layouts.js.map +1 -0
  240. package/lib/module/utils/parseStringProductTypes.js +7 -0
  241. package/lib/module/utils/parseStringProductTypes.js.map +1 -0
  242. package/lib/module/utils/resolveProductTypes.js +5 -0
  243. package/lib/module/utils/resolveProductTypes.js.map +1 -0
  244. package/lib/module/utils/selectDynamicOffers.js +6 -0
  245. package/lib/module/utils/selectDynamicOffers.js.map +1 -0
  246. package/lib/module/utils/sortOffersByRecommendationScore.js +5 -0
  247. package/lib/module/utils/sortOffersByRecommendationScore.js.map +1 -0
  248. package/lib/module/version.js +3 -0
  249. package/lib/module/version.js.map +1 -0
  250. package/lib/typescript/builder/builder.d.ts +24 -0
  251. package/lib/typescript/builder/builder.d.ts.map +1 -0
  252. package/lib/typescript/builder/config/types.d.ts +89 -0
  253. package/lib/typescript/builder/config/types.d.ts.map +1 -0
  254. package/lib/typescript/builder/index.d.ts +3 -0
  255. package/lib/typescript/builder/index.d.ts.map +1 -0
  256. package/lib/typescript/capabilities/configuration/src/brands/checkVisualEligibility.d.ts +12 -0
  257. package/lib/typescript/capabilities/configuration/src/brands/checkVisualEligibility.d.ts.map +1 -0
  258. package/lib/typescript/capabilities/configuration/src/brands/createDerivedBrands.d.ts +9 -0
  259. package/lib/typescript/capabilities/configuration/src/brands/createDerivedBrands.d.ts.map +1 -0
  260. package/lib/typescript/capabilities/configuration/src/brands/index.d.ts +3 -0
  261. package/lib/typescript/capabilities/configuration/src/brands/index.d.ts.map +1 -0
  262. package/lib/typescript/capabilities/configuration/src/brands/types.d.ts +4 -0
  263. package/lib/typescript/capabilities/configuration/src/brands/types.d.ts.map +1 -0
  264. package/lib/typescript/capabilities/core/src/domain/third-party-search/index.d.ts +2 -0
  265. package/lib/typescript/capabilities/core/src/domain/third-party-search/index.d.ts.map +1 -0
  266. package/lib/typescript/capabilities/core/src/domain/third-party-search/orderProductTypesByRankUtils.d.ts +19 -0
  267. package/lib/typescript/capabilities/core/src/domain/third-party-search/orderProductTypesByRankUtils.d.ts.map +1 -0
  268. package/lib/typescript/capabilities/core/src/index.d.ts +2 -0
  269. package/lib/typescript/capabilities/core/src/index.d.ts.map +1 -0
  270. package/lib/typescript/capabilities/core/src/system/cnfContext/CnfContext.d.ts +103 -0
  271. package/lib/typescript/capabilities/core/src/system/cnfContext/CnfContext.d.ts.map +1 -0
  272. package/lib/typescript/capabilities/core/src/system/cnfContext/schemas/App.d.ts +13 -0
  273. package/lib/typescript/capabilities/core/src/system/cnfContext/schemas/App.d.ts.map +1 -0
  274. package/lib/typescript/capabilities/core/src/system/cnfContext/schemas/Brand.d.ts +180 -0
  275. package/lib/typescript/capabilities/core/src/system/cnfContext/schemas/Brand.d.ts.map +1 -0
  276. package/lib/typescript/capabilities/core/src/system/cnfContext/schemas/Configuration.d.ts +59 -0
  277. package/lib/typescript/capabilities/core/src/system/cnfContext/schemas/Configuration.d.ts.map +1 -0
  278. package/lib/typescript/capabilities/core/src/system/cnfContext/schemas/Request.d.ts +16 -0
  279. package/lib/typescript/capabilities/core/src/system/cnfContext/schemas/Request.d.ts.map +1 -0
  280. package/lib/typescript/capabilities/core/src/system/cnfContext/schemas/Session.d.ts +8 -0
  281. package/lib/typescript/capabilities/core/src/system/cnfContext/schemas/Session.d.ts.map +1 -0
  282. package/lib/typescript/capabilities/core/src/system/cnfContext/schemas/Signals.d.ts +64 -0
  283. package/lib/typescript/capabilities/core/src/system/cnfContext/schemas/Signals.d.ts.map +1 -0
  284. package/lib/typescript/capabilities/core/src/system/cnfContext/schemas/Subaccount.d.ts +18 -0
  285. package/lib/typescript/capabilities/core/src/system/cnfContext/schemas/Subaccount.d.ts.map +1 -0
  286. package/lib/typescript/capabilities/core/src/system/cnfContext/schemas/index.d.ts +8 -0
  287. package/lib/typescript/capabilities/core/src/system/cnfContext/schemas/index.d.ts.map +1 -0
  288. package/lib/typescript/capabilities/offer-catalog/src/api/offerCatalogApi.d.ts +5 -0
  289. package/lib/typescript/capabilities/offer-catalog/src/api/offerCatalogApi.d.ts.map +1 -0
  290. package/lib/typescript/capabilities/offer-catalog/src/index.d.ts +6 -0
  291. package/lib/typescript/capabilities/offer-catalog/src/index.d.ts.map +1 -0
  292. package/lib/typescript/capabilities/offer-catalog/src/types/offerCatalogSchema.d.ts +91 -0
  293. package/lib/typescript/capabilities/offer-catalog/src/types/offerCatalogSchema.d.ts.map +1 -0
  294. package/lib/typescript/capabilities/offer-catalog/src/utils/arrayToMarkdownList.d.ts +2 -0
  295. package/lib/typescript/capabilities/offer-catalog/src/utils/arrayToMarkdownList.d.ts.map +1 -0
  296. package/lib/typescript/capabilities/offer-catalog/src/utils/contextUtil.d.ts +8 -0
  297. package/lib/typescript/capabilities/offer-catalog/src/utils/contextUtil.d.ts.map +1 -0
  298. package/lib/typescript/capabilities/offer-catalog/src/utils/errorUtil.d.ts +6 -0
  299. package/lib/typescript/capabilities/offer-catalog/src/utils/errorUtil.d.ts.map +1 -0
  300. package/lib/typescript/capabilities/offer-catalog/src/utils/formatUtils.d.ts +68 -0
  301. package/lib/typescript/capabilities/offer-catalog/src/utils/formatUtils.d.ts.map +1 -0
  302. package/lib/typescript/capabilities/offer-catalog/src/utils/getOfferUrl.d.ts +24 -0
  303. package/lib/typescript/capabilities/offer-catalog/src/utils/getOfferUrl.d.ts.map +1 -0
  304. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/annualFee.d.ts +13 -0
  305. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/annualFee.d.ts.map +1 -0
  306. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/boolean.d.ts +11 -0
  307. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/boolean.d.ts.map +1 -0
  308. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/boolean.spec.d.ts +1 -0
  309. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/boolean.spec.d.ts.map +1 -0
  310. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/common.d.ts +14 -0
  311. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/common.d.ts.map +1 -0
  312. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/common.spec.d.ts +1 -0
  313. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/common.spec.d.ts.map +1 -0
  314. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/creditBureaus.d.ts +9 -0
  315. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/creditBureaus.d.ts.map +1 -0
  316. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/creditBureaus.spec.d.ts +1 -0
  317. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/creditBureaus.spec.d.ts.map +1 -0
  318. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/currency.d.ts +10 -0
  319. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/currency.d.ts.map +1 -0
  320. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/currencyOrBasis.d.ts +12 -0
  321. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/currencyOrBasis.d.ts.map +1 -0
  322. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/currencyOrBasis.spec.d.ts +1 -0
  323. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/currencyOrBasis.spec.d.ts.map +1 -0
  324. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/freeTrialDays.d.ts +9 -0
  325. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/freeTrialDays.d.ts.map +1 -0
  326. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/freeTrialDays.spec.d.ts +1 -0
  327. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/freeTrialDays.spec.d.ts.map +1 -0
  328. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/fromListStringWithAnd.d.ts +9 -0
  329. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/fromListStringWithAnd.d.ts.map +1 -0
  330. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/fromListStringWithAnd.spec.d.ts +1 -0
  331. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/fromListStringWithAnd.spec.d.ts.map +1 -0
  332. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/index.d.ts +20 -0
  333. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/index.d.ts.map +1 -0
  334. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/monthlyOrAnnualCurrency.d.ts +11 -0
  335. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/monthlyOrAnnualCurrency.d.ts.map +1 -0
  336. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/monthlyOrAnnualCurrency.spec.d.ts +1 -0
  337. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/monthlyOrAnnualCurrency.spec.d.ts.map +1 -0
  338. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/percentage.d.ts +9 -0
  339. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/percentage.d.ts.map +1 -0
  340. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/percentage.spec.d.ts +1 -0
  341. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/percentage.spec.d.ts.map +1 -0
  342. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/purchaseApr.d.ts +12 -0
  343. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/purchaseApr.d.ts.map +1 -0
  344. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/purchaseApr.spec.d.ts +1 -0
  345. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/purchaseApr.spec.d.ts.map +1 -0
  346. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrency.d.ts +10 -0
  347. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrency.d.ts.map +1 -0
  348. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyByTime.d.ts +12 -0
  349. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyByTime.d.ts.map +1 -0
  350. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyByTime.spec.d.ts +1 -0
  351. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyByTime.spec.d.ts.map +1 -0
  352. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyUnabbreviated.d.ts +10 -0
  353. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyUnabbreviated.d.ts.map +1 -0
  354. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyUnabbreviated.spec.d.ts +1 -0
  355. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyUnabbreviated.spec.d.ts.map +1 -0
  356. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangeMonths.d.ts +10 -0
  357. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangeMonths.d.ts.map +1 -0
  358. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangeMonths.spec.d.ts +1 -0
  359. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangeMonths.spec.d.ts.map +1 -0
  360. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangePercent.d.ts +11 -0
  361. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangePercent.d.ts.map +1 -0
  362. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangePercent.spec.d.ts +1 -0
  363. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangePercent.spec.d.ts.map +1 -0
  364. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/recommendedCredit.d.ts +9 -0
  365. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/recommendedCredit.d.ts.map +1 -0
  366. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/recommendedCredit.spec.d.ts +1 -0
  367. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/recommendedCredit.spec.d.ts.map +1 -0
  368. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rewardsDisplay.d.ts +9 -0
  369. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rewardsDisplay.d.ts.map +1 -0
  370. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rewardsDisplay.spec.d.ts +1 -0
  371. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rewardsDisplay.spec.d.ts.map +1 -0
  372. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/index.d.ts +5 -0
  373. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/index.d.ts.map +1 -0
  374. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/types.d.ts +9 -0
  375. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/types.d.ts.map +1 -0
  376. package/lib/typescript/capabilities/offers/pipeline/src/sources/ratetables/offer-catalog/types/index.d.ts +4 -0
  377. package/lib/typescript/capabilities/offers/pipeline/src/sources/ratetables/offer-catalog/types/index.d.ts.map +1 -0
  378. package/lib/typescript/capabilities/offers/pipeline/src/sources/ratetables/offer-catalog/types/oas/offer-catalog.d.ts +1837 -0
  379. package/lib/typescript/capabilities/offers/pipeline/src/sources/ratetables/offer-catalog/types/oas/offer-catalog.d.ts.map +1 -0
  380. package/lib/typescript/capabilities/offers/pipeline/src/sources/ratetables/types/index.d.ts +5 -0
  381. package/lib/typescript/capabilities/offers/pipeline/src/sources/ratetables/types/index.d.ts.map +1 -0
  382. package/lib/typescript/capabilities/offers/pipeline/src/sources/ratetables/withDeviceSignals.d.ts +208 -0
  383. package/lib/typescript/capabilities/offers/pipeline/src/sources/ratetables/withDeviceSignals.d.ts.map +1 -0
  384. package/lib/typescript/capabilities/offers/ux/src/elements/Stat/HyphenIcon.d.ts +7 -0
  385. package/lib/typescript/capabilities/offers/ux/src/elements/Stat/HyphenIcon.d.ts.map +1 -0
  386. package/lib/typescript/capabilities/offers/ux/src/elements/Stat/Stat.d.ts +12 -0
  387. package/lib/typescript/capabilities/offers/ux/src/elements/Stat/Stat.d.ts.map +1 -0
  388. package/lib/typescript/capabilities/offers/ux/src/elements/Stat/index.d.ts +2 -0
  389. package/lib/typescript/capabilities/offers/ux/src/elements/Stat/index.d.ts.map +1 -0
  390. package/lib/typescript/capabilities/ui/elements/src/components/MarkdownText/Abbreviation.d.ts +5 -0
  391. package/lib/typescript/capabilities/ui/elements/src/components/MarkdownText/Abbreviation.d.ts.map +1 -0
  392. package/lib/typescript/capabilities/ui/elements/src/components/MarkdownText/components.d.ts +9 -0
  393. package/lib/typescript/capabilities/ui/elements/src/components/MarkdownText/components.d.ts.map +1 -0
  394. package/lib/typescript/capabilities/ui/elements/src/components/MarkdownText/index.d.ts +7 -0
  395. package/lib/typescript/capabilities/ui/elements/src/components/MarkdownText/index.d.ts.map +1 -0
  396. package/lib/typescript/capabilities/ui/elements/src/components/MarkdownText/markdownPreprocessor.d.ts +2 -0
  397. package/lib/typescript/capabilities/ui/elements/src/components/MarkdownText/markdownPreprocessor.d.ts.map +1 -0
  398. package/lib/typescript/capabilities/ui/elements/src/components/index.d.ts +2 -0
  399. package/lib/typescript/capabilities/ui/elements/src/components/index.d.ts.map +1 -0
  400. package/lib/typescript/capabilities/ui/elements/src/components/thumbor/index.d.ts +10 -0
  401. package/lib/typescript/capabilities/ui/elements/src/components/thumbor/index.d.ts.map +1 -0
  402. package/lib/typescript/capabilities/ui/elements/src/components/thumbor/useSvgUriViewBox.d.ts +14 -0
  403. package/lib/typescript/capabilities/ui/elements/src/components/thumbor/useSvgUriViewBox.d.ts.map +1 -0
  404. package/lib/typescript/capabilities/ui/elements/src/components/thumbor/useSvgUriViewBox.test.d.ts +1 -0
  405. package/lib/typescript/capabilities/ui/elements/src/components/thumbor/useSvgUriViewBox.test.d.ts.map +1 -0
  406. package/lib/typescript/capabilities/ui/elements/src/index.d.ts +3 -0
  407. package/lib/typescript/capabilities/ui/elements/src/index.d.ts.map +1 -0
  408. package/lib/typescript/capabilities/ui/elements/src/offerCardAttributes.d.ts +10 -0
  409. package/lib/typescript/capabilities/ui/elements/src/offerCardAttributes.d.ts.map +1 -0
  410. package/lib/typescript/config/mocks/cnfContext.d.ts +3 -0
  411. package/lib/typescript/config/mocks/cnfContext.d.ts.map +1 -0
  412. package/lib/typescript/src/apiEnvironment.d.ts +13 -0
  413. package/lib/typescript/src/apiEnvironment.d.ts.map +1 -0
  414. package/lib/typescript/src/components/Button/index.d.ts +15 -0
  415. package/lib/typescript/src/components/Button/index.d.ts.map +1 -0
  416. package/lib/typescript/src/components/Cards/VideosCard/VideoContent.d.ts +9 -0
  417. package/lib/typescript/src/components/Cards/VideosCard/VideoContent.d.ts.map +1 -0
  418. package/lib/typescript/src/components/Cards/VideosCard/VideosCard.d.ts +1 -0
  419. package/lib/typescript/src/components/Cards/VideosCard/VideosCard.d.ts.map +1 -0
  420. package/lib/typescript/src/components/Cards/index.d.ts +1 -0
  421. package/lib/typescript/src/components/Cards/index.d.ts.map +1 -0
  422. package/lib/typescript/src/components/Common/BaseOfferCard/Content/Content.d.ts +4 -0
  423. package/lib/typescript/src/components/Common/BaseOfferCard/Content/Content.d.ts.map +1 -0
  424. package/lib/typescript/src/components/Common/BaseOfferCard/Content/index.d.ts +2 -0
  425. package/lib/typescript/src/components/Common/BaseOfferCard/Content/index.d.ts.map +1 -0
  426. package/lib/typescript/src/components/Common/BaseOfferCard/Stat/Stat.d.ts +8 -0
  427. package/lib/typescript/src/components/Common/BaseOfferCard/Stat/Stat.d.ts.map +1 -0
  428. package/lib/typescript/src/components/Common/BaseOfferCard/Stat/index.d.ts +2 -0
  429. package/lib/typescript/src/components/Common/BaseOfferCard/Stat/index.d.ts.map +1 -0
  430. package/lib/typescript/src/components/Common/BaseOfferCard/StatsContainer/StatsContainer.d.ts +4 -0
  431. package/lib/typescript/src/components/Common/BaseOfferCard/StatsContainer/StatsContainer.d.ts.map +1 -0
  432. package/lib/typescript/src/components/Common/BaseOfferCard/StatsContainer/index.d.ts +2 -0
  433. package/lib/typescript/src/components/Common/BaseOfferCard/StatsContainer/index.d.ts.map +1 -0
  434. package/lib/typescript/src/components/Common/BaseOfferCard/ThumbsUpIcon.d.ts +3 -0
  435. package/lib/typescript/src/components/Common/BaseOfferCard/ThumbsUpIcon.d.ts.map +1 -0
  436. package/lib/typescript/src/components/Common/BaseOfferCard/index.d.ts +42 -0
  437. package/lib/typescript/src/components/Common/BaseOfferCard/index.d.ts.map +1 -0
  438. package/lib/typescript/src/components/Common/DynamicOfferCard/CallToAction.d.ts +13 -0
  439. package/lib/typescript/src/components/Common/DynamicOfferCard/CallToAction.d.ts.map +1 -0
  440. package/lib/typescript/src/components/Common/DynamicOfferCard/SeeMore.d.ts +8 -0
  441. package/lib/typescript/src/components/Common/DynamicOfferCard/SeeMore.d.ts.map +1 -0
  442. package/lib/typescript/src/components/Common/DynamicOfferCard/index.d.ts +12 -0
  443. package/lib/typescript/src/components/Common/DynamicOfferCard/index.d.ts.map +1 -0
  444. package/lib/typescript/src/components/Common/index.d.ts +4 -0
  445. package/lib/typescript/src/components/Common/index.d.ts.map +1 -0
  446. package/lib/typescript/src/components/Divider/index.d.ts +16 -0
  447. package/lib/typescript/src/components/Divider/index.d.ts.map +1 -0
  448. package/lib/typescript/src/components/DynamicOffers/DynamicOffers.d.ts +12 -0
  449. package/lib/typescript/src/components/DynamicOffers/DynamicOffers.d.ts.map +1 -0
  450. package/lib/typescript/src/components/DynamicOffers/DynamicOffersContainer.d.ts +10 -0
  451. package/lib/typescript/src/components/DynamicOffers/DynamicOffersContainer.d.ts.map +1 -0
  452. package/lib/typescript/src/components/DynamicOffers/Render/DynamicOffersRender.d.ts +19 -0
  453. package/lib/typescript/src/components/DynamicOffers/Render/DynamicOffersRender.d.ts.map +1 -0
  454. package/lib/typescript/src/components/DynamicOffers/Render/FallbackOfferTemplate.d.ts +9 -0
  455. package/lib/typescript/src/components/DynamicOffers/Render/FallbackOfferTemplate.d.ts.map +1 -0
  456. package/lib/typescript/src/components/DynamicOffers/Render/Offer.d.ts +17 -0
  457. package/lib/typescript/src/components/DynamicOffers/Render/Offer.d.ts.map +1 -0
  458. package/lib/typescript/src/components/DynamicOffers/Render/index.d.ts +3 -0
  459. package/lib/typescript/src/components/DynamicOffers/Render/index.d.ts.map +1 -0
  460. package/lib/typescript/src/components/Layouts/CreditCardOfferCard/index.d.ts +13 -0
  461. package/lib/typescript/src/components/Layouts/CreditCardOfferCard/index.d.ts.map +1 -0
  462. package/lib/typescript/src/components/Layouts/CreditCardOfferCard/statsBuilder.d.ts +6 -0
  463. package/lib/typescript/src/components/Layouts/CreditCardOfferCard/statsBuilder.d.ts.map +1 -0
  464. package/lib/typescript/src/components/Layouts/DefaultOfferCard/index.d.ts +13 -0
  465. package/lib/typescript/src/components/Layouts/DefaultOfferCard/index.d.ts.map +1 -0
  466. package/lib/typescript/src/components/Layouts/DefaultOfferCard/statsBuilder.d.ts +7 -0
  467. package/lib/typescript/src/components/Layouts/DefaultOfferCard/statsBuilder.d.ts.map +1 -0
  468. package/lib/typescript/src/components/Layouts/HeadlineWithDescriptionCard/index.d.ts +13 -0
  469. package/lib/typescript/src/components/Layouts/HeadlineWithDescriptionCard/index.d.ts.map +1 -0
  470. package/lib/typescript/src/components/Layouts/index.d.ts +4 -0
  471. package/lib/typescript/src/components/Layouts/index.d.ts.map +1 -0
  472. package/lib/typescript/src/components/Modal/DescriptionPoints.d.ts +5 -0
  473. package/lib/typescript/src/components/Modal/DescriptionPoints.d.ts.map +1 -0
  474. package/lib/typescript/src/components/Modal/Disclaimer.d.ts +5 -0
  475. package/lib/typescript/src/components/Modal/Disclaimer.d.ts.map +1 -0
  476. package/lib/typescript/src/components/Modal/OfferDetailsModal.d.ts +11 -0
  477. package/lib/typescript/src/components/Modal/OfferDetailsModal.d.ts.map +1 -0
  478. package/lib/typescript/src/components/MoneyLionOfferCarousel.d.ts +20 -0
  479. package/lib/typescript/src/components/MoneyLionOfferCarousel.d.ts.map +1 -0
  480. package/lib/typescript/src/components/Skeleton/Skeleton.d.ts +12 -0
  481. package/lib/typescript/src/components/Skeleton/Skeleton.d.ts.map +1 -0
  482. package/lib/typescript/src/components/Skeleton/index.d.ts +3 -0
  483. package/lib/typescript/src/components/Skeleton/index.d.ts.map +1 -0
  484. package/lib/typescript/src/components/Text/index.d.ts +17 -0
  485. package/lib/typescript/src/components/Text/index.d.ts.map +1 -0
  486. package/lib/typescript/src/components/View/index.d.ts +23 -0
  487. package/lib/typescript/src/components/View/index.d.ts.map +1 -0
  488. package/lib/typescript/src/context/CNFProvider.d.ts +1 -0
  489. package/lib/typescript/src/context/CNFProvider.d.ts.map +1 -0
  490. package/lib/typescript/src/context/EventHandlerProvider.d.ts +71 -0
  491. package/lib/typescript/src/context/EventHandlerProvider.d.ts.map +1 -0
  492. package/lib/typescript/src/context/ThemeProvider.d.ts +31 -0
  493. package/lib/typescript/src/context/ThemeProvider.d.ts.map +1 -0
  494. package/lib/typescript/src/deps/configuration.d.ts +1 -0
  495. package/lib/typescript/src/deps/configuration.d.ts.map +1 -0
  496. package/lib/typescript/src/index.d.ts +2 -0
  497. package/lib/typescript/src/index.d.ts.map +1 -0
  498. package/lib/typescript/src/pageData.d.ts +19 -0
  499. package/lib/typescript/src/pageData.d.ts.map +1 -0
  500. package/lib/typescript/src/services/getDynamicOffers.d.ts +27 -0
  501. package/lib/typescript/src/services/getDynamicOffers.d.ts.map +1 -0
  502. package/lib/typescript/src/services/getProductTypes.d.ts +19 -0
  503. package/lib/typescript/src/services/getProductTypes.d.ts.map +1 -0
  504. package/lib/typescript/src/services/getProductTypesByQuery.d.ts +28 -0
  505. package/lib/typescript/src/services/getProductTypesByQuery.d.ts.map +1 -0
  506. package/lib/typescript/src/utils/addClientTagsToOfferLinks.d.ts +9 -0
  507. package/lib/typescript/src/utils/addClientTagsToOfferLinks.d.ts.map +1 -0
  508. package/lib/typescript/src/utils/formatOfferUrl.d.ts +64 -0
  509. package/lib/typescript/src/utils/formatOfferUrl.d.ts.map +1 -0
  510. package/lib/typescript/src/utils/getDefaultPaletteColor.d.ts +3 -0
  511. package/lib/typescript/src/utils/getDefaultPaletteColor.d.ts.map +1 -0
  512. package/lib/typescript/src/utils/getDefaultProductType.d.ts +3 -0
  513. package/lib/typescript/src/utils/getDefaultProductType.d.ts.map +1 -0
  514. package/lib/typescript/src/utils/getEnableUseCachedOffers.d.ts +12 -0
  515. package/lib/typescript/src/utils/getEnableUseCachedOffers.d.ts.map +1 -0
  516. package/lib/typescript/src/utils/getOffersBasedOnLayout.d.ts +26 -0
  517. package/lib/typescript/src/utils/getOffersBasedOnLayout.d.ts.map +1 -0
  518. package/lib/typescript/src/utils/getOffersByProductTypes.d.ts +17 -0
  519. package/lib/typescript/src/utils/getOffersByProductTypes.d.ts.map +1 -0
  520. package/lib/typescript/src/utils/getProductTypesDefinition.d.ts +14 -0
  521. package/lib/typescript/src/utils/getProductTypesDefinition.d.ts.map +1 -0
  522. package/lib/typescript/src/utils/index.d.ts +11 -0
  523. package/lib/typescript/src/utils/index.d.ts.map +1 -0
  524. package/lib/typescript/src/utils/layouts.d.ts +19 -0
  525. package/lib/typescript/src/utils/layouts.d.ts.map +1 -0
  526. package/lib/typescript/src/utils/parseStringProductTypes.d.ts +2 -0
  527. package/lib/typescript/src/utils/parseStringProductTypes.d.ts.map +1 -0
  528. package/lib/typescript/src/utils/resolveProductTypes.d.ts +14 -0
  529. package/lib/typescript/src/utils/resolveProductTypes.d.ts.map +1 -0
  530. package/lib/typescript/src/utils/selectDynamicOffers.d.ts +3 -0
  531. package/lib/typescript/src/utils/selectDynamicOffers.d.ts.map +1 -0
  532. package/lib/typescript/src/utils/sortOffersByRecommendationScore.d.ts +3 -0
  533. package/lib/typescript/src/utils/sortOffersByRecommendationScore.d.ts.map +1 -0
  534. package/lib/typescript/src/version.d.ts +2 -0
  535. package/lib/typescript/src/version.d.ts.map +1 -0
  536. package/package.json +139 -0
  537. package/src/apiEnvironment.ts +17 -0
  538. package/src/components/Button/index.tsx +140 -0
  539. package/src/components/Cards/VideosCard/VideoContent.tsx +38 -0
  540. package/src/components/Cards/VideosCard/VideosCard.tsx +54 -0
  541. package/src/components/Cards/index.ts +1 -0
  542. package/src/components/Common/BaseOfferCard/Content/Content.tsx +10 -0
  543. package/src/components/Common/BaseOfferCard/Content/index.tsx +1 -0
  544. package/src/components/Common/BaseOfferCard/Stat/Stat.tsx +91 -0
  545. package/src/components/Common/BaseOfferCard/Stat/index.tsx +1 -0
  546. package/src/components/Common/BaseOfferCard/StatsContainer/StatsContainer.tsx +8 -0
  547. package/src/components/Common/BaseOfferCard/StatsContainer/index.tsx +1 -0
  548. package/src/components/Common/BaseOfferCard/ThumbsUpIcon.tsx +27 -0
  549. package/src/components/Common/BaseOfferCard/index.tsx +282 -0
  550. package/src/components/Common/DynamicOfferCard/CallToAction.tsx +47 -0
  551. package/src/components/Common/DynamicOfferCard/SeeMore.tsx +76 -0
  552. package/src/components/Common/DynamicOfferCard/index.tsx +64 -0
  553. package/src/components/Common/index.ts +3 -0
  554. package/src/components/Divider/index.tsx +35 -0
  555. package/src/components/DynamicOffers/DynamicOffers.tsx +46 -0
  556. package/src/components/DynamicOffers/DynamicOffersContainer.tsx +41 -0
  557. package/src/components/DynamicOffers/Render/DynamicOffersRender.tsx +261 -0
  558. package/src/components/DynamicOffers/Render/FallbackOfferTemplate.tsx +29 -0
  559. package/src/components/DynamicOffers/Render/Offer.tsx +100 -0
  560. package/src/components/DynamicOffers/Render/index.ts +2 -0
  561. package/src/components/Layouts/CreditCardOfferCard/index.tsx +96 -0
  562. package/src/components/Layouts/CreditCardOfferCard/statsBuilder.tsx +10 -0
  563. package/src/components/Layouts/DefaultOfferCard/index.tsx +72 -0
  564. package/src/components/Layouts/DefaultOfferCard/statsBuilder.tsx +14 -0
  565. package/src/components/Layouts/HeadlineWithDescriptionCard/index.tsx +59 -0
  566. package/src/components/Layouts/index.ts +3 -0
  567. package/src/components/Modal/DescriptionPoints.tsx +24 -0
  568. package/src/components/Modal/Disclaimer.tsx +15 -0
  569. package/src/components/Modal/OfferDetailsModal.tsx +111 -0
  570. package/src/components/MoneyLionOfferCarousel.tsx +202 -0
  571. package/src/components/Skeleton/Skeleton.tsx +86 -0
  572. package/src/components/Skeleton/index.ts +2 -0
  573. package/src/components/Text/index.tsx +209 -0
  574. package/src/components/View/index.tsx +144 -0
  575. package/src/context/CNFProvider.tsx +0 -0
  576. package/src/context/EventHandlerProvider.tsx +89 -0
  577. package/src/context/ThemeProvider.tsx +91 -0
  578. package/src/deps/configuration.ts +0 -0
  579. package/src/index.tsx +1 -0
  580. package/src/pageData.ts +98 -0
  581. package/src/services/getDynamicOffers.ts +93 -0
  582. package/src/services/getProductTypes.ts +53 -0
  583. package/src/services/getProductTypesByQuery.ts +53 -0
  584. package/src/utils/addClientTagsToOfferLinks.ts +22 -0
  585. package/src/utils/formatOfferUrl.ts +32 -0
  586. package/src/utils/getDefaultPaletteColor.ts +15 -0
  587. package/src/utils/getDefaultProductType.ts +4 -0
  588. package/src/utils/getEnableUseCachedOffers.ts +13 -0
  589. package/src/utils/getOffersBasedOnLayout.ts +51 -0
  590. package/src/utils/getOffersByProductTypes.ts +36 -0
  591. package/src/utils/getProductTypesDefinition.ts +13 -0
  592. package/src/utils/index.ts +10 -0
  593. package/src/utils/layouts.ts +22 -0
  594. package/src/utils/parseStringProductTypes.ts +7 -0
  595. package/src/utils/resolveProductTypes.ts +18 -0
  596. package/src/utils/selectDynamicOffers.ts +18 -0
  597. package/src/utils/sortOffersByRecommendationScore.ts +6 -0
  598. package/src/version.ts +2 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EventHandlerProvider.d.ts","sourceRoot":"","sources":["../../../../src/context/EventHandlerProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoC,MAAM,OAAO,CAAC;AACzD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAEtE,UAAU,iBAAiB;IAC1B,SAAS,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,sBAAsB;IACtC,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,UAAU,EAAE,UAAU,CAAC;IACvB,kBAAkB,EAAE,MAAM,CAAC;CAC3B;AAED,UAAU,wBAAwB;IACjC,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,SAAS,EAAE,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;CACjB;AAED,UAAU,6BAA6B;IACtC,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,SAAS,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;CACnB;AAED,UAAU,iBAAiB;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,SAAS,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,OAAO,GAAG,eAAe,CAAC;CACnC;AAED,UAAU,2BAA2B;IACpC,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,SAAS,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;CACnB;AAED,UAAU,4BAA4B;IACrC,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,SAAS,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,uBAAuB;IACvC,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,iBAAiB,KAAK,IAAI,CAAC;IAClD,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,sBAAsB,KAAK,IAAI,CAAC;IAC5D,mBAAmB,CAAC,EAAE,CAAC,KAAK,EAAE,wBAAwB,KAAK,IAAI,CAAC;IAChE,wBAAwB,CAAC,EAAE,CAAC,KAAK,EAAE,6BAA6B,KAAK,IAAI,CAAC;IAC1E,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,iBAAiB,KAAK,IAAI,CAAC;IAClD,sBAAsB,CAAC,EAAE,CAAC,KAAK,EAAE,2BAA2B,KAAK,IAAI,CAAC;IACtE,uBAAuB,CAAC,EAAE,CAAC,KAAK,EAAE,4BAA4B,KAAK,IAAI,CAAC;IACxE,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,mBAAmB,wCAG9B,CAAC;AAEH,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC;IAC3C,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,aAAa,EAAE,uBAAuB,CAAC;CACvC,CAMA,CAAC;AAEF,eAAO,MAAM,eAAe,+BAAwC,CAAC"}
@@ -0,0 +1,31 @@
1
+ import React, { type FC, type ReactNode } from "react";
2
+ export interface ThemePalette {
3
+ promotional?: string;
4
+ generation?: ("generate" | "provided") | null;
5
+ colorScheme?: ("balanced" | "light" | "dark") | null;
6
+ positive: string;
7
+ critical?: string;
8
+ highlight?: string;
9
+ neutral?: string;
10
+ }
11
+ export interface FontFamily {
12
+ regular?: string;
13
+ medium?: string;
14
+ bold?: string;
15
+ }
16
+ interface ThemeContextType {
17
+ theme: ThemePalette;
18
+ fontFamily: FontFamily;
19
+ updateTheme: (newTheme: Partial<ThemePalette>) => void;
20
+ updateFontFamily: (newFontFamily: Partial<FontFamily>) => void;
21
+ }
22
+ export declare const ThemeContext: React.Context<ThemeContextType | null>;
23
+ export declare const useTheme: () => ThemeContextType;
24
+ interface ThemeProviderProps {
25
+ palette?: ThemePalette;
26
+ fontFamily?: Partial<FontFamily>;
27
+ children: ReactNode;
28
+ }
29
+ export declare const ThemeProvider: FC<ThemeProviderProps>;
30
+ export {};
31
+ //# sourceMappingURL=ThemeProvider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ThemeProvider.d.ts","sourceRoot":"","sources":["../../../../src/context/ThemeProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAEb,KAAK,EAAE,EACP,KAAK,SAAS,EAGd,MAAM,OAAO,CAAC;AAGf,MAAM,WAAW,YAAY;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,CAAC,UAAU,GAAG,UAAU,CAAC,GAAG,IAAI,CAAC;IAC9C,WAAW,CAAC,EAAE,CAAC,UAAU,GAAG,OAAO,GAAG,MAAM,CAAC,GAAG,IAAI,CAAC;IACrD,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;CACjB;AACD,MAAM,WAAW,UAAU;IAC1B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;CACd;AAQD,UAAU,gBAAgB;IACzB,KAAK,EAAE,YAAY,CAAC;IACpB,UAAU,EAAE,UAAU,CAAC;IACvB,WAAW,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAC,YAAY,CAAC,KAAK,IAAI,CAAC;IACvD,gBAAgB,EAAE,CAAC,aAAa,EAAE,OAAO,CAAC,UAAU,CAAC,KAAK,IAAI,CAAC;CAC/D;AAED,eAAO,MAAM,YAAY,wCAA+C,CAAC;AAEzE,eAAO,MAAM,QAAQ,wBAMpB,CAAC;AAEF,UAAU,kBAAkB;IAC3B,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,UAAU,CAAC,EAAE,OAAO,CAAC,UAAU,CAAC,CAAC;IACjC,QAAQ,EAAE,SAAS,CAAC;CACpB;AAED,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,kBAAkB,CAqChD,CAAC"}
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=configuration.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"configuration.d.ts","sourceRoot":"","sources":["../../../../src/deps/configuration.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export * from "./components/MoneyLionOfferCarousel";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAAA,cAAc,qCAAqC,CAAC"}
@@ -0,0 +1,19 @@
1
+ import type { CnfContext } from "../capabilities/core/src/system/cnfContext/CnfContext";
2
+ import type { MoneyLionOfferCarouselProps } from "./components/MoneyLionOfferCarousel";
3
+ import type { onRateTableSubmitProps } from "./context/EventHandlerProvider";
4
+ type GetPageDataProps = {
5
+ context: CnfContext;
6
+ params: MoneyLionOfferCarouselProps;
7
+ onRateTableSubmit?: (props: onRateTableSubmitProps) => void;
8
+ };
9
+ export declare function getPageData({ context, params, onRateTableSubmit, }: GetPageDataProps): Promise<{
10
+ isError: boolean | undefined;
11
+ leadUuid: string;
12
+ rateTableUuid: string;
13
+ offers: import("../capabilities/offer-catalog/src").BaseOffer[];
14
+ currentCountry: string | undefined;
15
+ showProductTypeLabel: boolean | undefined;
16
+ displayLayout: "fixed" | "carousel";
17
+ }>;
18
+ export {};
19
+ //# sourceMappingURL=pageData.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pageData.d.ts","sourceRoot":"","sources":["../../../src/pageData.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uDAAuD,CAAC;AAExF,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,qCAAqC,CAAC;AACvF,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAW7E,KAAK,gBAAgB,GAAG;IACvB,OAAO,EAAE,UAAU,CAAC;IACpB,MAAM,EAAE,2BAA2B,CAAC;IACpC,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,sBAAsB,KAAK,IAAI,CAAC;CAC5D,CAAC;AAEF,wBAAsB,WAAW,CAAC,EACjC,OAAO,EACP,MAAM,EACN,iBAAiB,GACjB,EAAE,gBAAgB;;;;;;;;GAyElB"}
@@ -0,0 +1,27 @@
1
+ import type { CnfContext } from "../../capabilities/core/src/system/cnfContext/CnfContext";
2
+ import type { PartnerOverride, ProductTypeDefinition } from "../../capabilities/offer-catalog/src";
3
+ import { type Layout } from "../utils";
4
+ import type { GetProductTypesProps, ProductTypesResult } from "./getProductTypes";
5
+ export type GetDynamicOffersProps = {
6
+ tags: string;
7
+ displayLayout: Layout;
8
+ productTypes: string[];
9
+ resultType: ProductTypesResult["resultType"];
10
+ enableUseCachedOffers: boolean;
11
+ productTypesDefinition: ProductTypeDefinition[];
12
+ partnersOverrideDefinition: PartnerOverride[];
13
+ context: CnfContext;
14
+ } & Omit<GetProductTypesProps, "context" | "productTypeOrUrl" | "query" | "isDevMode" | "referrer" | "searchAPIToken">;
15
+ /**
16
+ * Retrieves dynamic offers based on the provided parameters.
17
+ *
18
+ * @param {GetDynamicOffersProps} params - The parameters for retrieving dynamic offers.
19
+ * @returns {Promise<{ productTypeDisplayName: string; offers: typeof offers }>} An object containing the product type display name and the offers.
20
+ */
21
+ export declare const getDynamicOffers: ({ tags, displayLayout, defaultProductType, productTypes, resultType, enableUseCachedOffers, productTypesDefinition, partnersOverrideDefinition, context, }: Omit<GetDynamicOffersProps, "isDev">) => Promise<{
22
+ offers: import("../../capabilities/offer-catalog/src").BaseOffer[];
23
+ isError: boolean | undefined;
24
+ leadUuid: string;
25
+ rateTableUuid: string;
26
+ }>;
27
+ //# sourceMappingURL=getDynamicOffers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getDynamicOffers.d.ts","sourceRoot":"","sources":["../../../../src/services/getDynamicOffers.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0DAA0D,CAAC;AAC3F,OAAO,KAAK,EACX,eAAe,EACf,qBAAqB,EACrB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAIN,KAAK,MAAM,EACX,MAAM,UAAU,CAAC;AAClB,OAAO,KAAK,EACX,oBAAoB,EACpB,kBAAkB,EAClB,MAAM,mBAAmB,CAAC;AAM3B,MAAM,MAAM,qBAAqB,GAAG;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,UAAU,EAAE,kBAAkB,CAAC,YAAY,CAAC,CAAC;IAC7C,qBAAqB,EAAE,OAAO,CAAC;IAC/B,sBAAsB,EAAE,qBAAqB,EAAE,CAAC;IAChD,0BAA0B,EAAE,eAAe,EAAE,CAAC;IAC9C,OAAO,EAAE,UAAU,CAAC;CACpB,GAAG,IAAI,CACP,oBAAoB,EAClB,SAAS,GACT,kBAAkB,GAClB,OAAO,GACP,WAAW,GACX,UAAU,GACV,gBAAgB,CAClB,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,+JAU1B,KAAK,qBAAqB,EAAE,OAAO,CAAC;;;;;EAoCtC,CAAC"}
@@ -0,0 +1,19 @@
1
+ export type GetProductTypesProps = {
2
+ productType?: string;
3
+ query?: string;
4
+ defaultProductType: string;
5
+ searchAPIToken: string;
6
+ isDev: boolean;
7
+ };
8
+ export type ResultType = "STATIC" | "QUERY" | "PRODUCT_TYPE" | "DEFAULT";
9
+ export type ProductTypesResult = {
10
+ productTypes: string[];
11
+ resultType: ResultType;
12
+ };
13
+ /**
14
+ * Get the product types
15
+ * @param props - The properties to get the product types
16
+ * @returns The product types
17
+ */
18
+ export declare const getProductTypes: ({ productType, defaultProductType, query, searchAPIToken, isDev, }: GetProductTypesProps) => Promise<ProductTypesResult>;
19
+ //# sourceMappingURL=getProductTypes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getProductTypes.d.ts","sourceRoot":"","sources":["../../../../src/services/getProductTypes.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,oBAAoB,GAAG;IAClC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kBAAkB,EAAE,MAAM,CAAC;IAC3B,cAAc,EAAE,MAAM,CAAC;IACvB,KAAK,EAAE,OAAO,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,OAAO,GAAG,cAAc,GAAG,SAAS,CAAC;AAEzE,MAAM,MAAM,kBAAkB,GAAG;IAChC,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,UAAU,EAAE,UAAU,CAAC;CACvB,CAAC;AAQF;;;;GAIG;AACH,eAAO,MAAM,eAAe,uEAMzB,oBAAoB,KAAG,QAAQ,kBAAkB,CAkBnD,CAAC"}
@@ -0,0 +1,28 @@
1
+ type GetProductTypesByQueryProps = {
2
+ query: string;
3
+ searchAPIToken: string;
4
+ isDev: boolean;
5
+ };
6
+ /**
7
+ * Get product types by query
8
+ * @param query {string} - The query to get the product types for
9
+ * @param context The context to get the product types from
10
+ * @returns {Promise<string[]>} The product types
11
+ *
12
+ * @example
13
+ * ```ts
14
+ * const productTypes = await getProductTypesByQuery('best credit cards', {
15
+ * cnfEnv: {
16
+ * THIRD_PARTY_SEARCH_API_URL: 'https://api.third-party-search.com',
17
+ * THIRD_PARTY_SEARCH_API_TOKEN: 'your-token',
18
+ * },
19
+ * thirdPartySearchApiClient: makeThirdPartySearchApiClient,
20
+ * })
21
+ * // productTypes = ['credit-card', 'loan', 'insurance']
22
+ * or
23
+ * // productTypes = []
24
+ * ```
25
+ */
26
+ export declare const getProductTypesByQuery: ({ query, searchAPIToken, isDev, }: GetProductTypesByQueryProps) => Promise<string[]>;
27
+ export {};
28
+ //# sourceMappingURL=getProductTypesByQuery.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getProductTypesByQuery.d.ts","sourceRoot":"","sources":["../../../../src/services/getProductTypesByQuery.ts"],"names":[],"mappings":"AAIA,KAAK,2BAA2B,GAAG;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,MAAM,CAAC;IACvB,KAAK,EAAE,OAAO,CAAC;CACf,CAAC;AAEF;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,eAAO,MAAM,sBAAsB,sCAIhC,2BAA2B,sBAiB7B,CAAC"}
@@ -0,0 +1,9 @@
1
+ import type { BaseOffer } from "../../capabilities/offer-catalog/src";
2
+ /**
3
+ * Add client tags to offer links
4
+ * @param enableUseCachedOffers - Whether to use cached offers
5
+ * @param clientTags - The client tags
6
+ * @returns The offers with the client tags added to the links
7
+ */
8
+ export declare const addClientTagsToOfferLinks: (enableUseCachedOffers: boolean, clientTags: string) => (offers: BaseOffer[]) => BaseOffer[];
9
+ //# sourceMappingURL=addClientTagsToOfferLinks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"addClientTagsToOfferLinks.d.ts","sourceRoot":"","sources":["../../../../src/utils/addClientTagsToOfferLinks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAEtE;;;;;GAKG;AACH,eAAO,MAAM,yBAAyB,0BACb,OAAO,cAAc,MAAM,cAC1C,SAAS,EAAE,KAAG,SAAS,EAW/B,CAAC"}
@@ -0,0 +1,64 @@
1
+ import { type BaseOffer, type PartnerOverride, type ProductTypeDefinition } from "../../capabilities/offer-catalog/src";
2
+ /**
3
+ * Format the offer URL
4
+ * @param offers - The offers to format if needed
5
+ * @returns The offers with the formatted URL
6
+ */
7
+ export declare const formatOfferUrl: (productTypesDefinition: ProductTypeDefinition[], partnersOverrideDefinition: PartnerOverride[]) => (offers: BaseOffer[]) => {
8
+ url: string;
9
+ overrideUrl: string | undefined;
10
+ productVersions: number[];
11
+ uuid: string;
12
+ version: number;
13
+ financialInstitutionUuid: string;
14
+ createdAt: string;
15
+ internalName: string;
16
+ legalLanguage?: string | undefined;
17
+ unmonetizedUrl: string;
18
+ recommendationScore: number;
19
+ productDisplayName: string;
20
+ productType: string;
21
+ financialInstitutionImageUrl: string;
22
+ status: "active" | "inactive" | "pending";
23
+ updatedAt: string;
24
+ financialInstitutionDisplayName: string;
25
+ keywords?: string[] | undefined;
26
+ acceptanceRequirements?: string | undefined;
27
+ headline?: string | undefined;
28
+ monetizedUrl?: string | undefined;
29
+ disclaimer?: string | undefined;
30
+ firmness?: string | undefined;
31
+ annualPercentageRateType?: "fixed" | "variable" | undefined;
32
+ annualPercentageRateBasisPointsMax?: number | undefined;
33
+ annualPercentageRateBasisPointsMin?: number | undefined;
34
+ amountCentsMax?: number | undefined;
35
+ amountCentsMin?: number | undefined;
36
+ description?: string | undefined;
37
+ descriptionPoints?: string[] | undefined;
38
+ monthlyPaymentCentsMin?: number | undefined;
39
+ monthlyPaymentCentsMax?: number | undefined;
40
+ creditBureauReporting?: string[] | undefined;
41
+ stateExclusions?: string[] | undefined;
42
+ enrollmentFeeBasisPointsMax?: number | undefined;
43
+ enrollmentFeeBasisPointsMin?: number | undefined;
44
+ debtAmountCentsMin?: number | undefined;
45
+ debtAmountCentsMax?: number | undefined;
46
+ monthlyFeeCentsMin?: number | undefined;
47
+ monthlyFeeCentsMax?: number | undefined;
48
+ fastTransferFeeCentsMin?: number | undefined;
49
+ fastTransferFeeCentsMax?: number | undefined;
50
+ fastTransferFeeBasisPointsMin?: number | undefined;
51
+ fastTransferFeeBasisPointsMax?: number | undefined;
52
+ annualAdvisoryFeeBasisPointsMin?: number | undefined;
53
+ annualAdvisoryFeeBasisPointsMax?: number | undefined;
54
+ accountCentsMin?: number | undefined;
55
+ termLengthMonthsMin?: number | undefined;
56
+ termLengthMonthsMax?: number | undefined;
57
+ demandSubAccountUuid?: string | undefined;
58
+ demandSubAccountImageUrl?: string | undefined;
59
+ demandSubAccountDisplayName?: string | undefined;
60
+ outOfNetworkAtmUsageFeeCents?: number | undefined;
61
+ annualPercentageYieldBasisPoints?: number | undefined;
62
+ isMonetized?: boolean | undefined;
63
+ }[];
64
+ //# sourceMappingURL=formatOfferUrl.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"formatOfferUrl.d.ts","sourceRoot":"","sources":["../../../../src/utils/formatOfferUrl.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,KAAK,SAAS,EACd,KAAK,eAAe,EACpB,KAAK,qBAAqB,EAC1B,MAAM,sCAAsC,CAAC;AAE9C;;;;GAIG;AACH,eAAO,MAAM,cAAc,2BAED,qBAAqB,EAAE,8BACnB,eAAe,EAAE,cAErC,SAAS,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAcnB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { Colors } from "../components/Button";
2
+ export declare const getDefaultPaletteColor: (colorKey: Colors) => string;
3
+ //# sourceMappingURL=getDefaultPaletteColor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getDefaultPaletteColor.d.ts","sourceRoot":"","sources":["../../../../src/utils/getDefaultPaletteColor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAEnD,eAAO,MAAM,sBAAsB,aAAc,MAAM,KAAG,MAYzD,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { CnfContext } from "../../capabilities/core/src/system/cnfContext/CnfContext";
2
+ export declare const getDefaultProductType: (context: CnfContext) => string;
3
+ //# sourceMappingURL=getDefaultProductType.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getDefaultProductType.d.ts","sourceRoot":"","sources":["../../../../src/utils/getDefaultProductType.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0DAA0D,CAAC;AAE3F,eAAO,MAAM,qBAAqB,YAAa,UAAU,WACE,CAAC"}
@@ -0,0 +1,12 @@
1
+ import type { CnfContext } from "../../capabilities/core/src/system/cnfContext/CnfContext";
2
+ /**
3
+ * Get enabled cache offers request
4
+ *
5
+ * @param {DynamicOffersContext} cnfContext - The context object
6
+ * @returns {boolean} - The enabled cache offers request
7
+ *
8
+ * @description
9
+ * This function is used to get the enabled cache offers request from payload cms configuration
10
+ */
11
+ export declare const getEnableUseCachedOffers: (context: CnfContext) => boolean;
12
+ //# sourceMappingURL=getEnableUseCachedOffers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getEnableUseCachedOffers.d.ts","sourceRoot":"","sources":["../../../../src/utils/getEnableUseCachedOffers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0DAA0D,CAAC;AAE3F;;;;;;;;GAQG;AACH,eAAO,MAAM,wBAAwB,YAAa,UAAU,YACD,CAAC"}
@@ -0,0 +1,26 @@
1
+ import type { Layout } from "./layouts";
2
+ import type { BaseOffer } from "../../capabilities/offer-catalog/src";
3
+ /**
4
+ * Sorts the offers based on the layout.
5
+ *
6
+ * @param offers - The offers to sort.
7
+ * @returns The sorted offers.
8
+ */
9
+ export declare const sortFixedOffers: (offers: BaseOffer[]) => BaseOffer[];
10
+ /**
11
+ * Gets the offers based on the layout.
12
+ *
13
+ * @param layout - The layout to get the offers for.
14
+ * @param offers - The offers to get.
15
+ * @returns The offers.
16
+ */
17
+ export declare const getOffersByLayout: (layout: Layout) => (offers: BaseOffer[]) => BaseOffer[];
18
+ /**
19
+ * Gets the offers based on the layout.
20
+ *
21
+ * @param layout - The layout to get the offers for.
22
+ * @param offers - The offers to get.
23
+ * @returns The offers.
24
+ */
25
+ export declare const getOffersBasedOnLayout: (layout: Layout) => (offers: BaseOffer[]) => BaseOffer[];
26
+ //# sourceMappingURL=getOffersBasedOnLayout.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getOffersBasedOnLayout.d.ts","sourceRoot":"","sources":["../../../../src/utils/getOffersBasedOnLayout.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAExC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAItE;;;;;GAKG;AACH,eAAO,MAAM,eAAe,WAAY,SAAS,EAAE,KAAG,SAAS,EAY9D,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,WAAY,MAAM,cAAc,SAAS,EAAE,gBAIxE,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,sBAAsB,WACzB,MAAM,cAAc,SAAS,EAAE,gBAEvC,CAAC"}
@@ -0,0 +1,17 @@
1
+ import type { CnfContext } from "../../capabilities/core/src/system/cnfContext/CnfContext";
2
+ /**
3
+ * Retrieves offers by product types.
4
+ *
5
+ * @param {Object} params - The parameters for retrieving offers by product types.
6
+ * @param {boolean} params.enableUseCachedOffers - Indicates if the offers should be retrieved from the cache.
7
+ * @param {string[]} params.productTypes - The product types to retrieve offers for.
8
+ * @param {string} params.tags - The tags to use for retrieving offers.
9
+ * @returns {Promise<OffersData>} A promise that resolves to an array of offers or undefined if no offers are found.
10
+ */
11
+ export declare const getOffersByProductTypes: ({ enableUseCachedOffers, productTypes, tags, context, }: {
12
+ enableUseCachedOffers: boolean;
13
+ productTypes: string[];
14
+ tags: string;
15
+ context: CnfContext;
16
+ }) => Promise<import("../../capabilities/offer-catalog/src").OffersData>;
17
+ //# sourceMappingURL=getOffersByProductTypes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getOffersByProductTypes.d.ts","sourceRoot":"","sources":["../../../../src/utils/getOffersByProductTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0DAA0D,CAAC;AAM3F;;;;;;;;GAQG;AACH,eAAO,MAAM,uBAAuB;2BAMZ,OAAO;kBAChB,MAAM,EAAE;UAChB,MAAM;aACH,UAAU;wEAWnB,CAAC"}
@@ -0,0 +1,14 @@
1
+ import type { CnfContext } from "../../capabilities/core/src/system/cnfContext/CnfContext";
2
+ export declare const getProductTypesDefinition: (context: CnfContext) => {
3
+ productTypesDefinition: readonly {
4
+ readonly id: string;
5
+ readonly partnerPageUrl: string;
6
+ readonly productTypeSlug: string;
7
+ }[];
8
+ partnersOverrideDefinition: readonly {
9
+ readonly id: string;
10
+ readonly overrideUrl: string;
11
+ readonly financialInstitutionUuid: string;
12
+ }[];
13
+ };
14
+ //# sourceMappingURL=getProductTypesDefinition.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getProductTypesDefinition.d.ts","sourceRoot":"","sources":["../../../../src/utils/getProductTypesDefinition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0DAA0D,CAAC;AAE3F,eAAO,MAAM,yBAAyB,YAAa,UAAU;;;;;;;;;;;CAU5D,CAAC"}
@@ -0,0 +1,11 @@
1
+ export * from "./addClientTagsToOfferLinks";
2
+ export * from "./getDefaultProductType";
3
+ export * from "./getOffersByProductTypes";
4
+ export * from "./getProductTypesDefinition";
5
+ export * from "./layouts";
6
+ export * from "./resolveProductTypes";
7
+ export * from "./selectDynamicOffers";
8
+ export * from "./sortOffersByRecommendationScore";
9
+ export * from "./parseStringProductTypes";
10
+ export * from "./getEnableUseCachedOffers";
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,WAAW,CAAC;AAC1B,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mCAAmC,CAAC;AAClD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC"}
@@ -0,0 +1,19 @@
1
+ export declare const layouts: {
2
+ readonly carousel: "carousel";
3
+ readonly fixed: "fixed";
4
+ };
5
+ export type Layout = keyof typeof layouts;
6
+ /**
7
+ * Get layout based on the provided layout
8
+ * @param layout {string | null} layout
9
+ * @returns {Layout} layout or default layout
10
+ *
11
+ * @example
12
+ * getLayout('fixed') // 'fixed'
13
+ * getLayout('invalidLayout') // 'carousel'
14
+ * getLayout(null) // 'carousel'
15
+ * getLayout('') // 'carousel'
16
+ * getLayout('carousel') // 'carousel'
17
+ */
18
+ export declare const getLayout: (layout?: string) => Layout;
19
+ //# sourceMappingURL=layouts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"layouts.d.ts","sourceRoot":"","sources":["../../../../src/utils/layouts.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO;;;CAGV,CAAC;AAEX,MAAM,MAAM,MAAM,GAAG,MAAM,OAAO,OAAO,CAAC;AAE1C;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,SAAS,YAAa,MAAM,KAAG,MAE3C,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const parseStringProductTypes: (productTypes?: string) => string[];
2
+ //# sourceMappingURL=parseStringProductTypes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parseStringProductTypes.d.ts","sourceRoot":"","sources":["../../../../src/utils/parseStringProductTypes.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,kBAAmB,MAAM,aAM5D,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { type ResultType } from "../services/getProductTypes";
2
+ type ResolveProductTypesProps = {
3
+ productType?: string;
4
+ query?: string;
5
+ defaultProductType: string;
6
+ searchAPIToken: string;
7
+ isDev: boolean;
8
+ };
9
+ export declare const resolveProductTypes: (props: ResolveProductTypesProps) => Promise<{
10
+ productTypes: string[];
11
+ resultType: ResultType;
12
+ }>;
13
+ export {};
14
+ //# sourceMappingURL=resolveProductTypes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolveProductTypes.d.ts","sourceRoot":"","sources":["../../../../src/utils/resolveProductTypes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,KAAK,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAE/E,KAAK,wBAAwB,GAAG;IAC/B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kBAAkB,EAAE,MAAM,CAAC;IAC3B,cAAc,EAAE,MAAM,CAAC;IACvB,KAAK,EAAE,OAAO,CAAC;CACf,CAAC;AAEF,eAAO,MAAM,mBAAmB,UACxB,wBAAwB,KAC7B,QAAQ;IACV,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,UAAU,EAAE,UAAU,CAAC;CACvB,CAEA,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { BaseOffer } from "../../capabilities/offer-catalog/src";
2
+ export declare const selectDynamicOffers: (offers: BaseOffer[], productTypes: string[]) => BaseOffer[];
3
+ //# sourceMappingURL=selectDynamicOffers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"selectDynamicOffers.d.ts","sourceRoot":"","sources":["../../../../src/utils/selectDynamicOffers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAItE,eAAO,MAAM,mBAAmB,WACvB,SAAS,EAAE,gBACL,MAAM,EAAE,gBAWtB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { BaseOffer } from "../../capabilities/offer-catalog/src";
2
+ export declare const sortOffersByRecommendationScore: (offers: BaseOffer[]) => BaseOffer[];
3
+ //# sourceMappingURL=sortOffersByRecommendationScore.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sortOffersByRecommendationScore.d.ts","sourceRoot":"","sources":["../../../../src/utils/sortOffersByRecommendationScore.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAEtE,eAAO,MAAM,+BAA+B,WAAY,SAAS,EAAE,gBAElE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const VERSION: string;
2
+ //# sourceMappingURL=version.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../../src/version.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,OAAO,QAAsB,CAAC"}
package/package.json ADDED
@@ -0,0 +1,139 @@
1
+ {
2
+ "name": "@moneylion/react-native-offer-carousel",
3
+ "version": "1.0.0",
4
+ "description": "React Native components for the Engine by MoneyLion Mobile SDK",
5
+ "main": "lib/commonjs/index",
6
+ "module": "lib/module/index",
7
+ "types": "lib/typescript/src/index.d.ts",
8
+ "react-native": "src/index",
9
+ "source": "src/index",
10
+ "files": [
11
+ "src",
12
+ "lib",
13
+ "android",
14
+ "ios",
15
+ "cpp",
16
+ "*.podspec",
17
+ "!ios/build",
18
+ "!android/build",
19
+ "!android/gradle",
20
+ "!android/gradlew",
21
+ "!android/gradlew.bat",
22
+ "!android/local.properties",
23
+ "!**/__tests__",
24
+ "!**/__fixtures__",
25
+ "!**/__mocks__",
26
+ "!**/.*"
27
+ ],
28
+ "scripts": {
29
+ "example": "yarn workspace react-native-offer-carousel-sdk-example",
30
+ "test": "jest --silent",
31
+ "typecheck": "tsc --noEmit",
32
+ "lint": "eslint \"**/*.{js,ts,tsx}\" && prettier . --check",
33
+ "lint:fix": "prettier . --write && eslint --fix \"**/*.{js,ts,tsx}\"",
34
+ "clean": "del-cli lib",
35
+ "prepare": "bob build"
36
+ },
37
+ "author": "",
38
+ "license": "ISC",
39
+ "devDependencies": {
40
+ "@commitlint/config-conventional": "^17.0.2",
41
+ "@evilmartians/lefthook": "^1.5.0",
42
+ "@react-native/eslint-config": "^0.73.1",
43
+ "@release-it/conventional-changelog": "^5.0.0",
44
+ "@types/jest": "^29.5.5",
45
+ "@types/react": "~18.2.79",
46
+ "commitlint": "^17.0.2",
47
+ "del-cli": "^5.1.0",
48
+ "eslint": "^8.51.0",
49
+ "eslint-config-prettier": "^9.0.0",
50
+ "eslint-plugin-prettier": "^5.0.1",
51
+ "jest": "^29.7.0",
52
+ "prettier": "^3.0.3",
53
+ "react": "18.2.0",
54
+ "react-native": "0.74.5",
55
+ "react-native-builder-bob": "^0.20.0",
56
+ "release-it": "^15.0.0",
57
+ "type-fest": "4.26.1",
58
+ "typescript": "~5.3.3"
59
+ },
60
+ "peerDependencies": {
61
+ "react": "*",
62
+ "react-native": "*"
63
+ },
64
+ "workspaces": [
65
+ "example"
66
+ ],
67
+ "packageManager": "yarn@3.6.1",
68
+ "jest": {
69
+ "preset": "react-native",
70
+ "modulePathIgnorePatterns": [
71
+ "<rootDir>/example/node_modules",
72
+ "<rootDir>/lib/"
73
+ ]
74
+ },
75
+ "commitlint": {
76
+ "extends": [
77
+ "@commitlint/config-conventional"
78
+ ]
79
+ },
80
+ "eslintConfig": {
81
+ "root": true,
82
+ "extends": [
83
+ "@react-native",
84
+ "prettier"
85
+ ],
86
+ "rules": {
87
+ "prettier/prettier": [
88
+ "error",
89
+ {
90
+ "quoteProps": "consistent",
91
+ "singleQuote": false,
92
+ "tabWidth": 2,
93
+ "trailingComma": "es5",
94
+ "useTabs": true
95
+ }
96
+ ]
97
+ }
98
+ },
99
+ "eslintIgnore": [
100
+ "node_modules/",
101
+ "lib/"
102
+ ],
103
+ "prettier": {
104
+ "quoteProps": "consistent",
105
+ "singleQuote": false,
106
+ "tabWidth": 2,
107
+ "trailingComma": "es5",
108
+ "useTabs": true
109
+ },
110
+ "react-native-builder-bob": {
111
+ "source": "src",
112
+ "output": "lib",
113
+ "targets": [
114
+ "commonjs",
115
+ "module",
116
+ [
117
+ "typescript",
118
+ {
119
+ "project": "tsconfig.build.json"
120
+ }
121
+ ]
122
+ ]
123
+ },
124
+ "dependencies": {
125
+ "@miblanchard/react-native-slider": "^2.6.0",
126
+ "@react-native-async-storage/async-storage": "1.23.1",
127
+ "@react-native-picker/picker": "2.7.5",
128
+ "defu": "6.1.4",
129
+ "effect": "3.12.0",
130
+ "numbro": "^2.5.0",
131
+ "radash": "11.0.0",
132
+ "react-native-markdown-display": "^7.0.2",
133
+ "react-native-mask-text": "^0.14.2",
134
+ "react-native-picker-select": "^9.1.3",
135
+ "react-native-svg": "15.2.0",
136
+ "reshaped": "3.2.7",
137
+ "ts-pattern": "5.1.1"
138
+ }
139
+ }
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Gets the base URL for the Config API.
3
+ */
4
+ export const getConfigApiBaseUrl = (isDev: boolean): string =>
5
+ isDev ? "https://www.moneylion.dev" : "https://www.moneylion.com";
6
+
7
+ /**
8
+ * Gets the base URL for the Offer Catalog API.
9
+ */
10
+ export const getOfferCatalogApiBaseUrl = (isDev: boolean): string =>
11
+ isDev ? "https://dev-api.engine.tech" : "https://api.engine.tech";
12
+
13
+ /**
14
+ * Gets the base URL for the EWS Search API.
15
+ */
16
+ export const getEwsSearchApiBaseUrl = (isDev: boolean): string =>
17
+ isDev ? "https://api.dev-ews.engine.tech" : "https://api.ews.engine.tech";