@moneylion/react-native-offer-carousel 1.8.0 → 1.8.8

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 (279) hide show
  1. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/currencyOrBasis.js.map +1 -1
  2. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/fromListStringWithAnd.js.map +1 -1
  3. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/index.js.map +1 -1
  4. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/monthlyOrAnnualCurrency.js.map +1 -1
  5. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/percentage.js.map +1 -1
  6. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrency.js.map +1 -1
  7. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/rangePercent.js.map +1 -1
  8. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/recommendedCredit.js.map +1 -1
  9. package/lib/commonjs/capabilities/ui/elements/src/components/MarkdownText/Abbreviation.js +1 -2
  10. package/lib/commonjs/capabilities/ui/elements/src/components/MarkdownText/Abbreviation.js.map +1 -1
  11. package/lib/commonjs/components/Button/index.js +1 -2
  12. package/lib/commonjs/components/Button/index.js.map +1 -1
  13. package/lib/commonjs/components/Common/DynamicOfferCard/SeeMore.js +1 -2
  14. package/lib/commonjs/components/Common/DynamicOfferCard/SeeMore.js.map +1 -1
  15. package/lib/commonjs/components/DynamicOffers/DynamicOffersContainer.js +1 -2
  16. package/lib/commonjs/components/DynamicOffers/DynamicOffersContainer.js.map +1 -1
  17. package/lib/commonjs/components/DynamicOffers/Render/DynamicOffersRender.js +1 -2
  18. package/lib/commonjs/components/DynamicOffers/Render/DynamicOffersRender.js.map +1 -1
  19. package/lib/commonjs/components/DynamicOffers/Render/Offer.js +1 -2
  20. package/lib/commonjs/components/DynamicOffers/Render/Offer.js.map +1 -1
  21. package/lib/commonjs/components/Modal/AllOffersModal.js +1 -2
  22. package/lib/commonjs/components/Modal/AllOffersModal.js.map +1 -1
  23. package/lib/commonjs/components/MoneyLionOfferCarousel.js +24 -4
  24. package/lib/commonjs/components/MoneyLionOfferCarousel.js.map +1 -1
  25. package/lib/commonjs/components/Skeleton/Skeleton.js +1 -2
  26. package/lib/commonjs/components/Skeleton/Skeleton.js.map +1 -1
  27. package/lib/commonjs/components/Touchable/index.js +1 -2
  28. package/lib/commonjs/components/Touchable/index.js.map +1 -1
  29. package/lib/commonjs/components/utils/errorUtils.js +18 -23
  30. package/lib/commonjs/components/utils/errorUtils.js.map +1 -1
  31. package/lib/commonjs/context/ConfigurationProvider.js +1 -2
  32. package/lib/commonjs/context/ConfigurationProvider.js.map +1 -1
  33. package/lib/commonjs/context/EventHandlerProvider.js +1 -2
  34. package/lib/commonjs/context/EventHandlerProvider.js.map +1 -1
  35. package/lib/commonjs/context/ThemeProvider.js +1 -2
  36. package/lib/commonjs/context/ThemeProvider.js.map +1 -1
  37. package/lib/commonjs/version.js +2 -3
  38. package/lib/commonjs/version.js.map +1 -1
  39. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/currencyOrBasis.js.map +1 -1
  40. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/fromListStringWithAnd.js.map +1 -1
  41. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/index.js +18 -19
  42. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/index.js.map +1 -1
  43. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/monthlyOrAnnualCurrency.js.map +1 -1
  44. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/percentage.js.map +1 -1
  45. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrency.js.map +1 -1
  46. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/rangePercent.js.map +1 -1
  47. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/recommendedCredit.js.map +1 -1
  48. package/lib/module/components/MoneyLionOfferCarousel.js +24 -3
  49. package/lib/module/components/MoneyLionOfferCarousel.js.map +1 -1
  50. package/lib/module/components/utils/errorUtils.js +18 -23
  51. package/lib/module/components/utils/errorUtils.js.map +1 -1
  52. package/lib/module/version.js +2 -2
  53. package/lib/module/version.js.map +1 -1
  54. package/lib/typescript/src/apiEnvironment.d.ts.map +1 -1
  55. package/lib/typescript/src/capabilities/configuration/src/brands/checkVisualEligibility.d.ts.map +1 -1
  56. package/lib/typescript/src/capabilities/configuration/src/brands/createDerivedBrands.d.ts.map +1 -1
  57. package/lib/typescript/src/capabilities/configuration/src/brands/types.d.ts.map +1 -1
  58. package/lib/typescript/src/capabilities/configuration/src/userData/types.d.ts +6 -0
  59. package/lib/typescript/src/capabilities/configuration/src/userData/types.d.ts.map +1 -1
  60. package/lib/typescript/src/capabilities/core/src/domain/third-party-search/orderProductTypesByRankUtils.d.ts.map +1 -1
  61. package/lib/typescript/src/capabilities/errors/types/index.d.ts.map +1 -1
  62. package/lib/typescript/src/capabilities/offer-catalog/src/api/offerCatalogApi.d.ts +2 -2
  63. package/lib/typescript/src/capabilities/offer-catalog/src/api/offerCatalogApi.d.ts.map +1 -1
  64. package/lib/typescript/src/capabilities/offer-catalog/src/utils/arrayToMarkdownList.d.ts.map +1 -1
  65. package/lib/typescript/src/capabilities/offer-catalog/src/utils/contextUtil.d.ts.map +1 -1
  66. package/lib/typescript/src/capabilities/offer-catalog/src/utils/formatUtils.d.ts.map +1 -1
  67. package/lib/typescript/src/capabilities/offer-catalog/src/utils/getEventCallbackContext.d.ts.map +1 -1
  68. package/lib/typescript/src/capabilities/offer-catalog/src/utils/getOfferUrl.d.ts.map +1 -1
  69. package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/annualFee.d.ts.map +1 -1
  70. package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/boolean.d.ts.map +1 -1
  71. package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/common.d.ts.map +1 -1
  72. package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/creditBureaus.d.ts.map +1 -1
  73. package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/currency.d.ts.map +1 -1
  74. package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/currencyOrBasis.d.ts.map +1 -1
  75. package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/freeTrialDays.d.ts.map +1 -1
  76. package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/fromListStringWithAnd.d.ts.map +1 -1
  77. package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/index.d.ts +18 -19
  78. package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/index.d.ts.map +1 -1
  79. package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/monthlyOrAnnualCurrency.d.ts.map +1 -1
  80. package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/percentage.d.ts.map +1 -1
  81. package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/purchaseApr.d.ts.map +1 -1
  82. package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrency.d.ts.map +1 -1
  83. package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyByTime.d.ts.map +1 -1
  84. package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyUnabbreviated.d.ts.map +1 -1
  85. package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/rangeMonths.d.ts.map +1 -1
  86. package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/rangePercent.d.ts.map +1 -1
  87. package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/recommendedCredit.d.ts.map +1 -1
  88. package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/rewardsDisplay.d.ts.map +1 -1
  89. package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/index.d.ts.map +1 -1
  90. package/lib/typescript/src/capabilities/offers/pipeline/src/sources/ratetables/offer-catalog/types/oas/offer-catalog.d.ts.map +1 -1
  91. package/lib/typescript/src/capabilities/offers/pipeline/src/sources/ratetables/withDeviceSignals.d.ts +11 -11
  92. package/lib/typescript/src/capabilities/offers/pipeline/src/sources/ratetables/withDeviceSignals.d.ts.map +1 -1
  93. package/lib/typescript/src/capabilities/ui/elements/src/components/MarkdownText/Abbreviation.d.ts +2 -2
  94. package/lib/typescript/src/capabilities/ui/elements/src/components/MarkdownText/Abbreviation.d.ts.map +1 -1
  95. package/lib/typescript/src/capabilities/ui/elements/src/components/MarkdownText/components.d.ts +4 -4
  96. package/lib/typescript/src/capabilities/ui/elements/src/components/MarkdownText/components.d.ts.map +1 -1
  97. package/lib/typescript/src/capabilities/ui/elements/src/components/MarkdownText/index.d.ts.map +1 -1
  98. package/lib/typescript/src/capabilities/ui/elements/src/components/MarkdownText/markdownPreprocessor.d.ts.map +1 -1
  99. package/lib/typescript/src/capabilities/ui/elements/src/components/thumbor/index.d.ts.map +1 -1
  100. package/lib/typescript/src/capabilities/ui/elements/src/offerCardAttributes.d.ts +1 -2
  101. package/lib/typescript/src/capabilities/ui/elements/src/offerCardAttributes.d.ts.map +1 -1
  102. package/lib/typescript/src/components/Common/BaseOfferCard/Stat/Stat.d.ts +3 -3
  103. package/lib/typescript/src/components/Common/BaseOfferCard/Stat/Stat.d.ts.map +1 -1
  104. package/lib/typescript/src/components/Common/BaseOfferCard/Stat/index.d.ts.map +1 -1
  105. package/lib/typescript/src/components/Common/BaseOfferCard/StatsContainer/StatsContainer.d.ts.map +1 -1
  106. package/lib/typescript/src/components/Common/BaseOfferCard/index.d.ts +7 -7
  107. package/lib/typescript/src/components/Common/BaseOfferCard/index.d.ts.map +1 -1
  108. package/lib/typescript/src/components/Common/DynamicOfferCard/CallToAction.d.ts.map +1 -1
  109. package/lib/typescript/src/components/Common/DynamicOfferCard/SeeMore.d.ts.map +1 -1
  110. package/lib/typescript/src/components/Divider/index.d.ts.map +1 -1
  111. package/lib/typescript/src/components/DynamicOffers/DynamicOffers.d.ts.map +1 -1
  112. package/lib/typescript/src/components/DynamicOffers/DynamicOffersContainer.d.ts.map +1 -1
  113. package/lib/typescript/src/components/DynamicOffers/Render/DynamicOffersRender.d.ts.map +1 -1
  114. package/lib/typescript/src/components/DynamicOffers/Render/Offer.d.ts.map +1 -1
  115. package/lib/typescript/src/components/DynamicOffers/SeeAllButton.d.ts.map +1 -1
  116. package/lib/typescript/src/components/Layouts/CreditCardOfferCard/index.d.ts.map +1 -1
  117. package/lib/typescript/src/components/Layouts/CreditCardOfferCard/statsBuilder.d.ts.map +1 -1
  118. package/lib/typescript/src/components/Layouts/DefaultOfferCard/index.d.ts.map +1 -1
  119. package/lib/typescript/src/components/Layouts/DefaultOfferCard/statsBuilder.d.ts.map +1 -1
  120. package/lib/typescript/src/components/Layouts/HeadlineWithDescriptionCard/index.d.ts.map +1 -1
  121. package/lib/typescript/src/components/Modal/AllOffersModal.d.ts.map +1 -1
  122. package/lib/typescript/src/components/Modal/OfferDetailsModal.d.ts.map +1 -1
  123. package/lib/typescript/src/components/MoneyLionOfferCarousel.d.ts.map +1 -1
  124. package/lib/typescript/src/components/Skeleton/Skeleton.d.ts.map +1 -1
  125. package/lib/typescript/src/components/Touchable/TouchableOpacity.d.ts +0 -1
  126. package/lib/typescript/src/components/Touchable/TouchableOpacity.d.ts.map +1 -1
  127. package/lib/typescript/src/components/utils/errorUtils.d.ts +3 -3
  128. package/lib/typescript/src/components/utils/errorUtils.d.ts.map +1 -1
  129. package/lib/typescript/src/context/ConfigurationProvider.d.ts.map +1 -1
  130. package/lib/typescript/src/index.d.ts +1 -0
  131. package/lib/typescript/src/index.d.ts.map +1 -1
  132. package/lib/typescript/src/services/getDynamicOffers.d.ts.map +1 -1
  133. package/lib/typescript/src/services/getProductTypes.d.ts.map +1 -1
  134. package/lib/typescript/src/services/getProductTypesByQuery.d.ts.map +1 -1
  135. package/lib/typescript/src/utils/addClientTagsToOfferLinks.d.ts.map +1 -1
  136. package/lib/typescript/src/utils/formatOfferUrl.d.ts +39 -44
  137. package/lib/typescript/src/utils/formatOfferUrl.d.ts.map +1 -1
  138. package/lib/typescript/src/utils/getDefaultProductType.d.ts.map +1 -1
  139. package/lib/typescript/src/utils/getEnableUseCachedOffers.d.ts.map +1 -1
  140. package/lib/typescript/src/utils/getOffersByProductTypes.d.ts +3 -3
  141. package/lib/typescript/src/utils/getOffersByProductTypes.d.ts.map +1 -1
  142. package/lib/typescript/src/utils/getProductTypesDefinition.d.ts.map +1 -1
  143. package/lib/typescript/src/utils/getThemeColors.d.ts.map +1 -1
  144. package/lib/typescript/src/utils/parseStringProductTypes.d.ts.map +1 -1
  145. package/lib/typescript/src/utils/resolveProductTypes.d.ts.map +1 -1
  146. package/lib/typescript/src/utils/selectDynamicOffers.d.ts.map +1 -1
  147. package/lib/typescript/src/utils/sortOffersByRecommendationScore.d.ts.map +1 -1
  148. package/lib/typescript/src/version.d.ts +1 -1
  149. package/lib/typescript/src/version.d.ts.map +1 -1
  150. package/package.json +81 -135
  151. package/src/capabilities/configuration/src/userData/types.ts +6 -0
  152. package/src/capabilities/errors/types/index.ts +4 -2
  153. package/src/capabilities/offer-catalog/src/utils/stats/formatters/currencyOrBasis.ts +0 -1
  154. package/src/capabilities/offer-catalog/src/utils/stats/formatters/fromListStringWithAnd.ts +0 -1
  155. package/src/capabilities/offer-catalog/src/utils/stats/formatters/index.ts +18 -19
  156. package/src/capabilities/offer-catalog/src/utils/stats/formatters/monthlyOrAnnualCurrency.ts +0 -1
  157. package/src/capabilities/offer-catalog/src/utils/stats/formatters/percentage.ts +0 -1
  158. package/src/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrency.ts +0 -1
  159. package/src/capabilities/offer-catalog/src/utils/stats/formatters/rangePercent.ts +0 -1
  160. package/src/capabilities/offer-catalog/src/utils/stats/formatters/recommendedCredit.ts +0 -1
  161. package/src/capabilities/offers/pipeline/src/sources/ratetables/offer-catalog/types/oas/offer-catalog.ts +1 -1
  162. package/src/capabilities/offers/pipeline/src/sources/ratetables/types/PublicApi.d.ts +1939 -1921
  163. package/src/components/Common/BaseOfferCard/Stat/index.tsx +1 -1
  164. package/src/components/MoneyLionOfferCarousel.tsx +42 -3
  165. package/src/components/utils/errorUtils.ts +17 -23
  166. package/src/index.tsx +4 -0
  167. package/src/version.ts +2 -2
  168. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/boolean.spec.js +0 -60
  169. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/boolean.spec.js.map +0 -1
  170. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/common.spec.js +0 -62
  171. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/common.spec.js.map +0 -1
  172. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/creditBureaus.spec.js +0 -31
  173. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/creditBureaus.spec.js.map +0 -1
  174. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/currencyOrBasis.spec.js +0 -208
  175. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/currencyOrBasis.spec.js.map +0 -1
  176. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/freeTrialDays.spec.js +0 -24
  177. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/freeTrialDays.spec.js.map +0 -1
  178. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/fromListStringWithAnd.spec.js +0 -40
  179. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/fromListStringWithAnd.spec.js.map +0 -1
  180. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/monthlyOrAnnualCurrency.spec.js +0 -43
  181. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/monthlyOrAnnualCurrency.spec.js.map +0 -1
  182. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/percentage.spec.js +0 -32
  183. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/percentage.spec.js.map +0 -1
  184. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/purchaseApr.spec.js +0 -69
  185. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/purchaseApr.spec.js.map +0 -1
  186. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyByTime.spec.js +0 -72
  187. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyByTime.spec.js.map +0 -1
  188. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyUnabbreviated.spec.js +0 -29
  189. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyUnabbreviated.spec.js.map +0 -1
  190. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/rangeMonths.spec.js +0 -46
  191. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/rangeMonths.spec.js.map +0 -1
  192. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/rangePercent.spec.js +0 -83
  193. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/rangePercent.spec.js.map +0 -1
  194. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/recommendedCredit.spec.js +0 -28
  195. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/recommendedCredit.spec.js.map +0 -1
  196. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/rewardsDisplay.spec.js +0 -30
  197. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/rewardsDisplay.spec.js.map +0 -1
  198. package/lib/commonjs/capabilities/ui/elements/src/components/thumbor/useSvgUriViewBox.test.js +0 -44
  199. package/lib/commonjs/capabilities/ui/elements/src/components/thumbor/useSvgUriViewBox.test.js.map +0 -1
  200. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/boolean.spec.js +0 -59
  201. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/boolean.spec.js.map +0 -1
  202. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/common.spec.js +0 -61
  203. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/common.spec.js.map +0 -1
  204. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/creditBureaus.spec.js +0 -30
  205. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/creditBureaus.spec.js.map +0 -1
  206. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/currencyOrBasis.spec.js +0 -207
  207. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/currencyOrBasis.spec.js.map +0 -1
  208. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/freeTrialDays.spec.js +0 -23
  209. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/freeTrialDays.spec.js.map +0 -1
  210. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/fromListStringWithAnd.spec.js +0 -39
  211. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/fromListStringWithAnd.spec.js.map +0 -1
  212. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/monthlyOrAnnualCurrency.spec.js +0 -42
  213. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/monthlyOrAnnualCurrency.spec.js.map +0 -1
  214. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/percentage.spec.js +0 -31
  215. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/percentage.spec.js.map +0 -1
  216. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/purchaseApr.spec.js +0 -68
  217. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/purchaseApr.spec.js.map +0 -1
  218. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyByTime.spec.js +0 -71
  219. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyByTime.spec.js.map +0 -1
  220. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyUnabbreviated.spec.js +0 -28
  221. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyUnabbreviated.spec.js.map +0 -1
  222. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/rangeMonths.spec.js +0 -45
  223. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/rangeMonths.spec.js.map +0 -1
  224. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/rangePercent.spec.js +0 -82
  225. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/rangePercent.spec.js.map +0 -1
  226. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/recommendedCredit.spec.js +0 -27
  227. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/recommendedCredit.spec.js.map +0 -1
  228. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/rewardsDisplay.spec.js +0 -29
  229. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/rewardsDisplay.spec.js.map +0 -1
  230. package/lib/module/capabilities/ui/elements/src/components/thumbor/useSvgUriViewBox.test.js +0 -43
  231. package/lib/module/capabilities/ui/elements/src/components/thumbor/useSvgUriViewBox.test.js.map +0 -1
  232. package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/boolean.spec.d.ts +0 -1
  233. package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/boolean.spec.d.ts.map +0 -1
  234. package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/common.spec.d.ts +0 -1
  235. package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/common.spec.d.ts.map +0 -1
  236. package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/creditBureaus.spec.d.ts +0 -1
  237. package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/creditBureaus.spec.d.ts.map +0 -1
  238. package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/currencyOrBasis.spec.d.ts +0 -1
  239. package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/currencyOrBasis.spec.d.ts.map +0 -1
  240. package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/freeTrialDays.spec.d.ts +0 -1
  241. package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/freeTrialDays.spec.d.ts.map +0 -1
  242. package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/fromListStringWithAnd.spec.d.ts +0 -1
  243. package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/fromListStringWithAnd.spec.d.ts.map +0 -1
  244. package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/monthlyOrAnnualCurrency.spec.d.ts +0 -1
  245. package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/monthlyOrAnnualCurrency.spec.d.ts.map +0 -1
  246. package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/percentage.spec.d.ts +0 -1
  247. package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/percentage.spec.d.ts.map +0 -1
  248. package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/purchaseApr.spec.d.ts +0 -1
  249. package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/purchaseApr.spec.d.ts.map +0 -1
  250. package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyByTime.spec.d.ts +0 -1
  251. package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyByTime.spec.d.ts.map +0 -1
  252. package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyUnabbreviated.spec.d.ts +0 -1
  253. package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyUnabbreviated.spec.d.ts.map +0 -1
  254. package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/rangeMonths.spec.d.ts +0 -1
  255. package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/rangeMonths.spec.d.ts.map +0 -1
  256. package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/rangePercent.spec.d.ts +0 -1
  257. package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/rangePercent.spec.d.ts.map +0 -1
  258. package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/recommendedCredit.spec.d.ts +0 -1
  259. package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/recommendedCredit.spec.d.ts.map +0 -1
  260. package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/rewardsDisplay.spec.d.ts +0 -1
  261. package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/rewardsDisplay.spec.d.ts.map +0 -1
  262. package/lib/typescript/src/capabilities/ui/elements/src/components/thumbor/useSvgUriViewBox.test.d.ts +0 -1
  263. package/lib/typescript/src/capabilities/ui/elements/src/components/thumbor/useSvgUriViewBox.test.d.ts.map +0 -1
  264. package/src/capabilities/offer-catalog/src/utils/stats/formatters/boolean.spec.ts +0 -58
  265. package/src/capabilities/offer-catalog/src/utils/stats/formatters/common.spec.ts +0 -60
  266. package/src/capabilities/offer-catalog/src/utils/stats/formatters/creditBureaus.spec.ts +0 -29
  267. package/src/capabilities/offer-catalog/src/utils/stats/formatters/currencyOrBasis.spec.ts +0 -206
  268. package/src/capabilities/offer-catalog/src/utils/stats/formatters/freeTrialDays.spec.ts +0 -22
  269. package/src/capabilities/offer-catalog/src/utils/stats/formatters/fromListStringWithAnd.spec.ts +0 -38
  270. package/src/capabilities/offer-catalog/src/utils/stats/formatters/monthlyOrAnnualCurrency.spec.ts +0 -41
  271. package/src/capabilities/offer-catalog/src/utils/stats/formatters/percentage.spec.ts +0 -30
  272. package/src/capabilities/offer-catalog/src/utils/stats/formatters/purchaseApr.spec.ts +0 -67
  273. package/src/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyByTime.spec.ts +0 -70
  274. package/src/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyUnabbreviated.spec.ts +0 -27
  275. package/src/capabilities/offer-catalog/src/utils/stats/formatters/rangeMonths.spec.ts +0 -44
  276. package/src/capabilities/offer-catalog/src/utils/stats/formatters/rangePercent.spec.ts +0 -81
  277. package/src/capabilities/offer-catalog/src/utils/stats/formatters/recommendedCredit.spec.ts +0 -26
  278. package/src/capabilities/offer-catalog/src/utils/stats/formatters/rewardsDisplay.spec.ts +0 -28
  279. package/src/capabilities/ui/elements/src/components/thumbor/useSvgUriViewBox.test.ts +0 -42
@@ -1,43 +0,0 @@
1
- // import type { BaseOffer } from '@capabilities/offer-catalog'
2
- // import { describe, expect, it } from 'vitest'
3
- // import { fromMonthlyOrAnnualCurrencyStat } from './monthlyOrAnnualCurrency' // Update this to the correct file path
4
-
5
- // describe('fromMonthlyOrAnnualCurrencyStat', () => {
6
- // it.each([
7
- // [{}, 'Price', 'N/A'],
8
- // [{ monthlyPrice: 0, annualPrice: 0 }, 'Price', 'FREE'],
9
- // [{ monthlyPrice: 1500 }, 'Price', '$15 / Month'],
10
- // [{ annualPrice: 1200 }, 'Price', '$12 / Year'],
11
- // [{ monthlyPrice: 200, annualPrice: 200 }, 'Price', '$2 / Month'],
12
- // ])('should return the correct content for offer %j', (offer, label, content) => {
13
- // const result = fromMonthlyOrAnnualCurrencyStat(offer as BaseOffer)({
14
- // format: 'monthlyOrAnnualCurrency',
15
- // label: 'Price',
16
- // monthlyFieldName: 'monthlyPrice',
17
- // annualFieldName: 'annualPrice',
18
- // })
19
- // expect(result).toEqual({
20
- // label,
21
- // content,
22
- // })
23
- // })
24
-
25
- // it.each([
26
- // [{}, 'Price', 'No value'],
27
- // [{ monthlyPrice: 0, annualPrice: 0 }, 'Price', 'FREE'],
28
- // ])('should return the correct content for offer %j', (offer, label, content) => {
29
- // const result = fromMonthlyOrAnnualCurrencyStat(offer as BaseOffer)({
30
- // format: 'monthlyOrAnnualCurrency',
31
- // label: 'Price',
32
- // emptyValueContent: 'No value',
33
- // monthlyFieldName: 'monthlyPrice',
34
- // annualFieldName: 'annualPrice',
35
- // })
36
- // expect(result).toEqual({
37
- // label,
38
- // content,
39
- // })
40
- // })
41
- // })
42
- "use strict";
43
- //# sourceMappingURL=monthlyOrAnnualCurrency.spec.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sourceRoot":"../../../../../../../../src","sources":["capabilities/offer-catalog/src/utils/stats/formatters/monthlyOrAnnualCurrency.spec.ts"],"mappings":"AAAA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA","ignoreList":[]}
@@ -1,32 +0,0 @@
1
- // import type { BaseOffer } from '@capabilities/offer-catalog'
2
- // import { describe, expect, it } from 'vitest'
3
- // import { fromPercentageStat } from './percentage'
4
-
5
- // describe('fromPercentageStat function', () => {
6
- // it.each([
7
- // [{}, 'Interest Rate', 'N/A'],
8
- // [{ interestRate: undefined }, 'Interest Rate', 'N/A'],
9
- // [{ interestRate: null }, 'Interest Rate', 'N/A'],
10
- // [{ interestRate: 0 }, 'Interest Rate', '0%'],
11
- // [{ interestRate: 50 }, 'Interest Rate', '0.5%'],
12
- // [{ interestRate: 100 }, 'Interest Rate', '1%'],
13
- // [{ interestRate: 123 }, 'Interest Rate', '1.23%'],
14
- // [{ interestRate: 500 }, 'Interest Rate', '5%'],
15
- // [{ interestRate: 750 }, 'Interest Rate', '7.5%'],
16
- // [{ interestRate: 1000 }, 'Interest Rate', '10%'],
17
- // [{ interestRate: 1234 }, 'Interest Rate', '12.34%'],
18
- // [{ interestRate: 10000 }, 'Interest Rate', '100%'],
19
- // ])('should return correct content for offer %j', (offer, label, expectedContent) => {
20
- // const result = fromPercentageStat(offer as BaseOffer)({
21
- // format: 'percentage',
22
- // label,
23
- // fieldName: 'interestRate',
24
- // })
25
- // expect(result).toEqual({
26
- // label,
27
- // content: expectedContent,
28
- // })
29
- // })
30
- // })
31
- "use strict";
32
- //# sourceMappingURL=percentage.spec.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sourceRoot":"../../../../../../../../src","sources":["capabilities/offer-catalog/src/utils/stats/formatters/percentage.spec.ts"],"mappings":"AAAA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA","ignoreList":[]}
@@ -1,69 +0,0 @@
1
- // import type { BaseOffer } from '@capabilities/offer-catalog'
2
- // import { describe, expect, it } from 'vitest'
3
- // import { purchaseApr } from './purchaseApr'
4
-
5
- // describe('purchaseApr', () => {
6
- // it.each([
7
- // [
8
- // {
9
- // purchaseApr: '10%',
10
- // minPurchaseApr: null,
11
- // maxPurchaseApr: null,
12
- // aprType: 'fixed',
13
- // },
14
- // 'Fixed APR:',
15
- // '10%',
16
- // ],
17
- // [
18
- // {
19
- // purchaseApr: '10%',
20
- // minPurchaseApr: null,
21
- // maxPurchaseApr: null,
22
- // aprType: 'variable',
23
- // },
24
- // 'Variable APR:',
25
- // '10%',
26
- // ],
27
- // [
28
- // {
29
- // purchaseApr: null,
30
- // minPurchaseApr: 500,
31
- // maxPurchaseApr: 1000,
32
- // aprType: 'fixed',
33
- // },
34
- // 'Fixed APR:',
35
- // '5% - 10%',
36
- // ],
37
- // [
38
- // {
39
- // purchaseApr: null,
40
- // minPurchaseApr: null,
41
- // maxPurchaseApr: null,
42
- // aprType: 'variable',
43
- // },
44
- // 'Variable APR:',
45
- // 'See Terms',
46
- // ],
47
- // ])('returns %s when purchaseApr is %s', (offer, expected, content) => {
48
- // const result = purchaseApr({
49
- // ...offer,
50
- // purchaseApr: offer.purchaseApr ?? undefined,
51
- // minPurchaseApr: offer.minPurchaseApr ?? undefined,
52
- // maxPurchaseApr: offer.maxPurchaseApr ?? undefined,
53
- // } as unknown as BaseOffer)({
54
- // format: 'purchaseApr',
55
- // label: 'Purchase APR',
56
- // purchaseAprTextField: 'purchaseApr',
57
- // minPurchaseAprField: 'minPurchaseApr',
58
- // maxPurchaseAprField: 'maxPurchaseApr',
59
- // aprTypeField: 'aprType',
60
- // })
61
-
62
- // expect(result).toEqual({
63
- // label: expected,
64
- // content: content,
65
- // })
66
- // })
67
- // })
68
- "use strict";
69
- //# sourceMappingURL=purchaseApr.spec.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sourceRoot":"../../../../../../../../src","sources":["capabilities/offer-catalog/src/utils/stats/formatters/purchaseApr.spec.ts"],"mappings":"AAAA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AAAA","ignoreList":[]}
@@ -1,72 +0,0 @@
1
- // import type { BaseOffer } from '@capabilities/offer-catalog'
2
- // import { fromRangeCurrencyByTimeStat } from './rangeCurrencyByTime'
3
-
4
- // describe('fromRangeCurrencyByTimeStat', () => {
5
- // it.each([
6
- // // Test case: All values undefined
7
- // [{}, 'Price Range', 'N/A'],
8
- // // Test case: All values zero
9
- // [
10
- // {
11
- // initialPriceByMonth: 0,
12
- // endPriceByMonth: 0,
13
- // initialPriceByYear: 0,
14
- // endPriceByYear: 0,
15
- // },
16
- // 'Price Range',
17
- // 'FREE',
18
- // ],
19
- // [
20
- // {
21
- // initialPriceByYear: 0,
22
- // endPriceByYear: 0,
23
- // },
24
- // 'Price Range',
25
- // 'FREE',
26
- // ],
27
- // [{ initialPriceByMonth: 1000 }, 'Price Range', 'N/A'],
28
- // [{ endPriceByMonth: 2000 }, 'Price Range', 'N/A'],
29
- // [
30
- // { initialPriceByMonth: 1000, endPriceByMonth: 2000 },
31
- // 'Price Range',
32
- // '$10 - $20 / Month',
33
- // ],
34
- // [{ initialPriceByYear: 500 }, 'Discount Range', 'N/A'],
35
- // [{ endPriceByYear: 1500 }, 'Discount Range', 'N/A'],
36
- // [
37
- // { initialPriceByYear: 500, endPriceByYear: 1500 },
38
- // 'Discount Range',
39
- // '5% - 15% / Year',
40
- // ],
41
- // [
42
- // {
43
- // initialPriceByMonth: 1000,
44
- // endPriceByMonth: 2000,
45
- // initialPriceByYear: 500,
46
- // endPriceByYear: 1500,
47
- // },
48
- // 'Price Range',
49
- // '$10 - $20 / Month',
50
- // ],
51
- // [{ initialPriceByMonth: 0 }, 'Price Range', 'N/A'],
52
- // [{ initialPriceByYear: 0 }, 'Price Range', 'N/A'],
53
- // ])(
54
- // 'should return the correct content for offer %j',
55
- // (offer, label, expectedContent) => {
56
- // const result = fromRangeCurrencyByTimeStat(offer as BaseOffer)({
57
- // format: 'rangeCurrencyByTime',
58
- // label,
59
- // initialFieldNameByMonths: 'initialPriceByMonth',
60
- // endFieldNameByMonths: 'endPriceByMonth',
61
- // initialFieldNameByYears: 'initialPriceByYear',
62
- // endFieldNameByYears: 'endPriceByYear',
63
- // })
64
- // expect(result).toEqual({
65
- // label,
66
- // content: expectedContent,
67
- // })
68
- // },
69
- // )
70
- // })
71
- "use strict";
72
- //# sourceMappingURL=rangeCurrencyByTime.spec.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sourceRoot":"../../../../../../../../src","sources":["capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyByTime.spec.ts"],"mappings":"AAAA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA","ignoreList":[]}
@@ -1,29 +0,0 @@
1
- // import type { BaseOffer } from '@capabilities/offer-catalog'
2
- // import { describe, expect, it } from 'vitest'
3
- // import { fromRangeCurrencyUnabbreviatedStat } from './rangeCurrencyUnabbreviated'
4
-
5
- // describe('fromRangeCurrencyUnabbreviatedStat', () => {
6
- // it.each([
7
- // [{ amountCentsMin: 500, amountCentsMax: 500000 }, 'Amount', '$5 - $5,000'],
8
- // [{ amountCentsMin: 0, amountCentsMax: 500000 }, 'Amount', 'Up to $5,000'],
9
- // [{ amountCentsMin: 1, amountCentsMax: 500000 }, 'Amount', 'Up to $5,000'],
10
- // [{ amountCentsMax: 500000 }, 'Amount', 'N/A'],
11
- // [{ amountCentsMin: 5000 }, 'Amount', 'N/A'],
12
- // ])(
13
- // 'should return correct label and content for offer %j',
14
- // (offer: unknown, label: string, expectedContent: string) => {
15
- // const result = fromRangeCurrencyUnabbreviatedStat(offer as BaseOffer)({
16
- // format: 'rangeCurrencyUnabbreviated',
17
- // label,
18
- // initialFieldName: 'amountCentsMin',
19
- // endFieldName: 'amountCentsMax',
20
- // })
21
- // expect(result).toEqual({
22
- // label: 'Amount',
23
- // content: expectedContent,
24
- // })
25
- // },
26
- // )
27
- // })
28
- "use strict";
29
- //# sourceMappingURL=rangeCurrencyUnabbreviated.spec.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sourceRoot":"../../../../../../../../src","sources":["capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyUnabbreviated.spec.ts"],"mappings":"AAAA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA","ignoreList":[]}
@@ -1,46 +0,0 @@
1
- // import type { BaseOffer } from '@capabilities/offer-catalog'
2
- // import { describe, expect, it } from 'vitest'
3
- // import { fromRangeMonthsStat } from './rangeMonths'
4
-
5
- // describe('fromRangeMonthsStat util', () => {
6
- // it.each([
7
- // [{ initialTerm: 0, endTerm: 0 }, 'Term Length', 'OPEN'],
8
- // [{ initialTerm: 12, endTerm: 12 }, 'Term Length', '1 year'],
9
- // [{ initialTerm: 18, endTerm: 18 }, 'Term Length', '18 months'],
10
- // [{ initialTerm: 1, endTerm: 12 }, 'Term Length', '1 - 12 months'],
11
- // [{ initialTerm: 24, endTerm: 36 }, 'Term Length', '2 - 3 years'],
12
- // [{ initialTerm: 0, endTerm: 12 }, 'Term Length', '0 - 12 months'],
13
- // [{ initialTerm: 24, endTerm: 12 }, 'Term Length', 'Invalid case'],
14
- // ])(
15
- // 'when initialFieldName is %p and endFieldName is %p, should return %s',
16
- // (offer: unknown, label: string, expectedContent: string) => {
17
- // const result = fromRangeMonthsStat(offer as BaseOffer)({
18
- // label,
19
- // initialFieldName: 'initialTerm',
20
- // endFieldName: 'endTerm',
21
- // format: 'rangeMonths',
22
- // })
23
-
24
- // expect(result).toEqual({ label, content: expectedContent })
25
- // },
26
- // )
27
-
28
- // it.each([
29
- // [{ initialTerm: undefined, endTerm: undefined }, 'Test Label', 'OPEN'],
30
- // [{ initialTerm: 0, endTerm: undefined }, 'Test Label', 'OPEN'],
31
- // [{ initialTerm: undefined, endTerm: 12 }, 'Test Label', 'OPEN'],
32
- // ])(
33
- // 'should return "-" when initialFieldName or endFieldName is undefined',
34
- // (offer, label, expectedContent) => {
35
- // const result = fromRangeMonthsStat(offer as unknown as BaseOffer)({
36
- // label,
37
- // initialFieldName: 'initialTerm',
38
- // endFieldName: 'endTerm',
39
- // format: 'rangeMonths',
40
- // })
41
- // expect(result).toEqual({ label, content: expectedContent })
42
- // },
43
- // )
44
- // })
45
- "use strict";
46
- //# sourceMappingURL=rangeMonths.spec.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sourceRoot":"../../../../../../../../src","sources":["capabilities/offer-catalog/src/utils/stats/formatters/rangeMonths.spec.ts"],"mappings":"AAAA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA","ignoreList":[]}
@@ -1,83 +0,0 @@
1
- // import type { BaseOffer } from '@capabilities/offer-catalog'
2
- // import { describe, expect, it } from 'vitest'
3
- // import { fromRangePercentStat } from './rangePercent'
4
-
5
- // describe('fromRangePercentStat function', () => {
6
- // it.each([
7
- // [{}, 'Interest Rate', 'Interest Rate', 'N/A', undefined],
8
- // [
9
- // { minRate: 100, maxRate: 500 },
10
- // 'Interest Rate',
11
- // 'Interest Rate',
12
- // '1% - 5%',
13
- // undefined,
14
- // ],
15
- // [{ minRate: 0, maxRate: 0 }, 'Interest Rate', 'Interest Rate', '0%', undefined],
16
- // [{ minRate: 150 }, 'Interest Rate', 'Interest Rate', 'N/A', undefined],
17
- // [{ maxRate: 450 }, 'Interest Rate', 'Interest Rate', 'N/A', undefined],
18
- // // Test case with dynamic label value
19
- // [
20
- // { minRate: 100, maxRate: 500, duration: '12 months' },
21
- // 'Interest over ${duration}',
22
- // 'Interest over 12 months',
23
- // '1% - 5%',
24
- // 'duration',
25
- // ],
26
- // [
27
- // { minRate: 200, maxRate: 800, term: '6 months' },
28
- // 'Interest over ${term}',
29
- // 'Interest over 6 months',
30
- // '2% - 8%',
31
- // 'term',
32
- // ],
33
- // // Edge case: dynamicValue is not provided in offer
34
- // [
35
- // { minRate: 100, maxRate: 500 },
36
- // 'Interest over ${duration}',
37
- // 'Interest over Undefined',
38
- // '1% - 5%',
39
- // 'duration',
40
- // ],
41
- // // Edge case: dynamicValue is a number
42
- // [
43
- // { minRate: 100, maxRate: 500, months: 12 },
44
- // 'Interest over ${months} months',
45
- // 'Interest over 12 months',
46
- // '1% - 5%',
47
- // 'months',
48
- // ],
49
- // // Edge case: Both initial and end values undefined
50
- // [{}, 'Interest Rate', 'Interest Rate', 'N/A', undefined],
51
- // // Edge case: Both initial and end values null
52
- // [
53
- // { minRate: null, maxRate: null },
54
- // 'Interest Rate',
55
- // 'Interest Rate',
56
- // 'N/A',
57
- // undefined,
58
- // ],
59
- // ])(
60
- // 'should return correct label and content for offer %j',
61
- // (
62
- // offer: unknown,
63
- // label: string,
64
- // expectedLabel: string,
65
- // expectedContent: string,
66
- // dynamicLabelValue?: string,
67
- // ) => {
68
- // const result = fromRangePercentStat(offer as BaseOffer)({
69
- // format: 'rangePercent',
70
- // label,
71
- // initialFieldName: 'minRate',
72
- // endFieldName: 'maxRate',
73
- // dynamicLabelValue,
74
- // })
75
- // expect(result).toEqual({
76
- // label: expectedLabel,
77
- // content: expectedContent,
78
- // })
79
- // },
80
- // )
81
- // })
82
- "use strict";
83
- //# sourceMappingURL=rangePercent.spec.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sourceRoot":"../../../../../../../../src","sources":["capabilities/offer-catalog/src/utils/stats/formatters/rangePercent.spec.ts"],"mappings":"AAAA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA","ignoreList":[]}
@@ -1,28 +0,0 @@
1
- // import type { BaseOffer } from '@capabilities/offer-catalog'
2
- // import { describe, expect, it } from 'vitest'
3
- // import { recommendedCredit } from './recommendedCredit'
4
-
5
- // describe('recommendedCredit', () => {
6
- // it.each([
7
- // [
8
- // { recommendedCreditRatings: ['limited', 'poor', 'fair', 'good', 'excellent'] },
9
- // 'Any',
10
- // ],
11
- // [{ recommendedCreditRatings: ['limited', 'poor', 'fair'] }, 'limited, poor & fair'],
12
- // [{ recommendedCreditRatings: ['good', 'excellent'] }, 'good & excellent'],
13
- // ])('returns %s when recommendedCreditRatings is %s', (offer, expected) => {
14
- // const result = recommendedCredit(offer as unknown as BaseOffer)({
15
- // format: 'recommendedCredit',
16
- // label: 'Recommended Credit',
17
- // fieldName: 'recommendedCreditRatings',
18
- // })
19
-
20
- // expect(result).toEqual({
21
- // label: 'Recommended Credit',
22
- // content: expected,
23
- // isHighlighted: true,
24
- // })
25
- // })
26
- // })
27
- "use strict";
28
- //# sourceMappingURL=recommendedCredit.spec.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sourceRoot":"../../../../../../../../src","sources":["capabilities/offer-catalog/src/utils/stats/formatters/recommendedCredit.spec.ts"],"mappings":"AAAA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA","ignoreList":[]}
@@ -1,30 +0,0 @@
1
- // import type { BaseOffer } from '@capabilities/offer-catalog'
2
- // import { describe, expect, it } from 'vitest'
3
- // import { rewardsDisplay } from './rewardsDisplay'
4
-
5
- // describe('rewardsDisplay', () => {
6
- // it.each([
7
- // [
8
- // { rewardsDescription: 'Cash Back & Travel Rewards' },
9
- // 'Cash Back & Travel Rewards',
10
- // false,
11
- // ],
12
- // [{ rewardsDescription: 'Cash Back' }, 'Cash Back', false],
13
- // [{ rewardsDescription: 'Travel Rewards' }, 'Travel Rewards', false],
14
- // [{ rewardsDescription: null }, 'None', true],
15
- // ])('returns %s when rewards is %s', (offer, expected, isNull) => {
16
- // const result = rewardsDisplay(offer as unknown as BaseOffer)({
17
- // format: 'rewardsDisplay',
18
- // label: 'Bonus',
19
- // fieldName: 'rewardsDescription',
20
- // })
21
-
22
- // expect(result).toEqual({
23
- // label: 'Bonus',
24
- // content: expected,
25
- // isNull,
26
- // })
27
- // })
28
- // })
29
- "use strict";
30
- //# sourceMappingURL=rewardsDisplay.spec.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sourceRoot":"../../../../../../../../src","sources":["capabilities/offer-catalog/src/utils/stats/formatters/rewardsDisplay.spec.ts"],"mappings":"AAAA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA","ignoreList":[]}
@@ -1,44 +0,0 @@
1
- // import { renderHook, waitFor } from "@testing-library/react-native";
2
- // import useSvgUriViewBox from "./useSvgUriViewBox";
3
-
4
- // describe("useSvgUriViewBox()", () => {
5
- // const MOCK_SVG_WITH_VIEWBOX = `<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 60 60" fill="none"></svg>`;
6
- // const MOCK_SVG_WITHOUT_VIEWBOX = `<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" fill="none"></svg>`;
7
-
8
- // function arrangeMocks() {
9
- // const mockResponseTextFn = jest
10
- // .fn()
11
- // .mockResolvedValue(MOCK_SVG_WITHOUT_VIEWBOX);
12
- // jest
13
- // .spyOn(global, "fetch")
14
- // .mockResolvedValue({ text: mockResponseTextFn } as unknown as Response);
15
-
16
- // return { mockText: mockResponseTextFn };
17
- // }
18
-
19
- // it("should return view-box if svg if missing a view-box", async () => {
20
- // const { mockText } = arrangeMocks();
21
- // mockText.mockResolvedValueOnce(MOCK_SVG_WITHOUT_VIEWBOX);
22
-
23
- // const hook = renderHook(() => useSvgUriViewBox("URI", true));
24
- // await waitFor(() => expect(hook.result.current).toBeDefined());
25
- // });
26
-
27
- // it("should return view-box if svg already has view-box", async () => {
28
- // const { mockText } = arrangeMocks();
29
- // mockText.mockResolvedValueOnce(MOCK_SVG_WITH_VIEWBOX);
30
-
31
- // const hook = renderHook(() => useSvgUriViewBox("URI", true));
32
- // await waitFor(() => expect(hook.result.current).toBeDefined());
33
- // });
34
-
35
- // it("should not make async calls if image is not an svg", async () => {
36
- // const mocks = arrangeMocks();
37
- // const hook = renderHook(() => useSvgUriViewBox("URI", false));
38
-
39
- // await waitFor(() => expect(hook.result.current).toBeUndefined());
40
- // expect(mocks.mockText).not.toHaveBeenCalled();
41
- // });
42
- // });
43
- "use strict";
44
- //# sourceMappingURL=useSvgUriViewBox.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sourceRoot":"../../../../../../../../src","sources":["capabilities/ui/elements/src/components/thumbor/useSvgUriViewBox.test.ts"],"mappings":"AAAA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AAAA","ignoreList":[]}
@@ -1,59 +0,0 @@
1
- // import { describe, expect, it } from "vitest";
2
- // import { type BooleanStat, fromBooleanStat } from "./boolean";
3
-
4
- // describe("fromBooleanStat", () => {
5
- // it.each([
6
- // [
7
- // { isAvailable: true },
8
- // { format: "boolean", label: "Availability", fieldName: "isAvailable" },
9
- // { label: "Availability", content: "True" },
10
- // ],
11
- // [
12
- // { isAvailable: false },
13
- // { format: "boolean", label: "Availability", fieldName: "isAvailable" },
14
- // { label: "Availability", content: "False" },
15
- // ],
16
- // [
17
- // { isAvailable: true },
18
- // {
19
- // format: "boolean",
20
- // label: "Availability",
21
- // fieldName: "isAvailable",
22
- // trueValue: "In Stock",
23
- // },
24
- // { label: "Availability", content: "In Stock" },
25
- // ],
26
- // [
27
- // { isAvailable: false },
28
- // {
29
- // format: "boolean",
30
- // label: "Availability",
31
- // fieldName: "isAvailable",
32
- // falseValue: "Out of Stock",
33
- // },
34
- // { label: "Availability", content: "Out of Stock" },
35
- // ],
36
- // [
37
- // {},
38
- // { format: "boolean", label: "Availability", fieldName: "isAvailable" },
39
- // { label: "Availability", content: "False" },
40
- // ],
41
- // [
42
- // {},
43
- // {
44
- // format: "boolean",
45
- // label: "Availability",
46
- // fieldName: "isAvailable",
47
- // falseValue: "Unavailable",
48
- // },
49
- // { label: "Availability", content: "Unavailable" },
50
- // ],
51
- // ])(
52
- // "should return the correct content for offer %j and stat %j",
53
- // (offer, stats, expected) => {
54
- // const result = fromBooleanStat(offer as BaseOffer)(stats as BooleanStat);
55
- // expect(result).toEqual(expected);
56
- // }
57
- // );
58
- // });
59
- //# sourceMappingURL=boolean.spec.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sourceRoot":"../../../../../../../../src","sources":["capabilities/offer-catalog/src/utils/stats/formatters/boolean.spec.ts"],"mappings":"AAAA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}
@@ -1,61 +0,0 @@
1
- // import type { BaseOffer } from '@capabilities/offer-catalog'
2
- // import { describe, expect, it } from 'vitest'
3
- // import { fromCommonStat } from './common'
4
-
5
- // describe('fromCommonStat', () => {
6
- // it.each([
7
- // [{ title: 'special offer' }, 'Offer Title', 'special offer'],
8
- // [{}, 'Missing Field', ''],
9
- // ])('should return the correct content for offer %j', (offer, label, content) => {
10
- // const result = fromCommonStat(offer as unknown as BaseOffer)({
11
- // label,
12
- // fieldName: 'title',
13
- // format: 'common',
14
- // })
15
- // expect(result).toEqual({
16
- // label,
17
- // content,
18
- // })
19
- // })
20
-
21
- // it.each([
22
- // [{ title: 'special offer' }, 'Static Value', 'Special offer'],
23
- // [{ title: 'limited time only' }, 'Description', 'Limited time only'],
24
- // ])(
25
- // 'should return the correct content for offer %j and capitalized',
26
- // (offer, label, content) => {
27
- // const result = fromCommonStat(offer as unknown as BaseOffer)({
28
- // label,
29
- // fieldName: 'title',
30
- // format: 'common',
31
- // capitalized: true,
32
- // })
33
- // expect(result).toEqual({
34
- // label,
35
- // content,
36
- // })
37
- // },
38
- // )
39
-
40
- // it.each([
41
- // [{ score: 600 }, '600'],
42
- // [{ score: undefined }, 'No minimum'],
43
- // ])(
44
- // 'should return the correct content for offer %j with the default value and fieldName',
45
- // (offer, content) => {
46
- // const result = fromCommonStat(offer as unknown as BaseOffer)({
47
- // label: 'Minimum Credit Score',
48
- // fieldName: 'score',
49
- // format: 'common',
50
- // defaultValue: 'No minimum',
51
- // capitalized: true,
52
- // })
53
-
54
- // expect(result).toEqual({
55
- // label: 'Minimum Credit Score',
56
- // content,
57
- // })
58
- // },
59
- // )
60
- // })
61
- //# sourceMappingURL=common.spec.js.map