@moneylion/react-native-offer-carousel 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +44 -0
- package/lib/commonjs/capabilities/configuration/src/brands/checkVisualEligibility.js +30 -0
- package/lib/commonjs/capabilities/configuration/src/brands/checkVisualEligibility.js.map +1 -0
- package/lib/commonjs/capabilities/configuration/src/brands/createDerivedBrands.js +40 -0
- package/lib/commonjs/capabilities/configuration/src/brands/createDerivedBrands.js.map +1 -0
- package/lib/commonjs/capabilities/configuration/src/brands/index.js +20 -0
- package/lib/commonjs/capabilities/configuration/src/brands/index.js.map +1 -0
- package/lib/commonjs/capabilities/configuration/src/brands/types.js +13 -0
- package/lib/commonjs/capabilities/configuration/src/brands/types.js.map +1 -0
- package/lib/commonjs/capabilities/core/src/domain/third-party-search/index.js +17 -0
- package/lib/commonjs/capabilities/core/src/domain/third-party-search/index.js.map +1 -0
- package/lib/commonjs/capabilities/core/src/domain/third-party-search/orderProductTypesByRankUtils.js +33 -0
- package/lib/commonjs/capabilities/core/src/domain/third-party-search/orderProductTypesByRankUtils.js.map +1 -0
- package/lib/commonjs/capabilities/core/src/index.js +17 -0
- package/lib/commonjs/capabilities/core/src/index.js.map +1 -0
- package/lib/commonjs/capabilities/core/src/system/cnfContext/CnfContext.js +18 -0
- package/lib/commonjs/capabilities/core/src/system/cnfContext/CnfContext.js.map +1 -0
- package/lib/commonjs/capabilities/core/src/system/cnfContext/schemas/App.js +18 -0
- package/lib/commonjs/capabilities/core/src/system/cnfContext/schemas/App.js.map +1 -0
- package/lib/commonjs/capabilities/core/src/system/cnfContext/schemas/Brand.js +87 -0
- package/lib/commonjs/capabilities/core/src/system/cnfContext/schemas/Brand.js.map +1 -0
- package/lib/commonjs/capabilities/core/src/system/cnfContext/schemas/Configuration.js +41 -0
- package/lib/commonjs/capabilities/core/src/system/cnfContext/schemas/Configuration.js.map +1 -0
- package/lib/commonjs/capabilities/core/src/system/cnfContext/schemas/Request.js +21 -0
- package/lib/commonjs/capabilities/core/src/system/cnfContext/schemas/Request.js.map +1 -0
- package/lib/commonjs/capabilities/core/src/system/cnfContext/schemas/Session.js +12 -0
- package/lib/commonjs/capabilities/core/src/system/cnfContext/schemas/Session.js.map +1 -0
- package/lib/commonjs/capabilities/core/src/system/cnfContext/schemas/Signals.js +41 -0
- package/lib/commonjs/capabilities/core/src/system/cnfContext/schemas/Signals.js.map +1 -0
- package/lib/commonjs/capabilities/core/src/system/cnfContext/schemas/Subaccount.js +26 -0
- package/lib/commonjs/capabilities/core/src/system/cnfContext/schemas/Subaccount.js.map +1 -0
- package/lib/commonjs/capabilities/core/src/system/cnfContext/schemas/index.js +83 -0
- package/lib/commonjs/capabilities/core/src/system/cnfContext/schemas/index.js.map +1 -0
- package/lib/commonjs/capabilities/offer-catalog/src/api/offerCatalogApi.js +131 -0
- package/lib/commonjs/capabilities/offer-catalog/src/api/offerCatalogApi.js.map +1 -0
- package/lib/commonjs/capabilities/offer-catalog/src/index.js +65 -0
- package/lib/commonjs/capabilities/offer-catalog/src/index.js.map +1 -0
- package/lib/commonjs/capabilities/offer-catalog/src/types/offerCatalogSchema.js +2 -0
- package/lib/commonjs/capabilities/offer-catalog/src/types/offerCatalogSchema.js.map +1 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/arrayToMarkdownList.js +11 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/arrayToMarkdownList.js.map +1 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/contextUtil.js +70 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/contextUtil.js.map +1 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/errorUtil.js +21 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/errorUtil.js.map +1 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/formatUtils.js +161 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/formatUtils.js.map +1 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/getOfferUrl.js +44 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/getOfferUrl.js.map +1 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/annualFee.js +78 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/annualFee.js.map +1 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/boolean.js +22 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/boolean.js.map +1 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/boolean.spec.js +60 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/boolean.spec.js.map +1 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/common.js +20 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/common.js.map +1 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/common.spec.js +62 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/common.spec.js.map +1 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/creditBureaus.js +32 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/creditBureaus.js.map +1 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/creditBureaus.spec.js +31 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/creditBureaus.spec.js.map +1 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/currency.js +22 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/currency.js.map +1 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/currencyOrBasis.js +46 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/currencyOrBasis.js.map +1 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/currencyOrBasis.spec.js +208 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/currencyOrBasis.spec.js.map +1 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/freeTrialDays.js +20 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/freeTrialDays.js.map +1 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/freeTrialDays.spec.js +24 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/freeTrialDays.spec.js.map +1 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/fromListStringWithAnd.js +21 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/fromListStringWithAnd.js.map +1 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/fromListStringWithAnd.spec.js +40 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/fromListStringWithAnd.spec.js.map +1 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/index.js +204 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/index.js.map +1 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/monthlyOrAnnualCurrency.js +35 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/monthlyOrAnnualCurrency.js.map +1 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/monthlyOrAnnualCurrency.spec.js +43 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/monthlyOrAnnualCurrency.spec.js.map +1 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/percentage.js +21 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/percentage.js.map +1 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/percentage.spec.js +32 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/percentage.spec.js.map +1 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/purchaseApr.js +76 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/purchaseApr.js.map +1 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/purchaseApr.spec.js +69 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/purchaseApr.spec.js.map +1 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrency.js +23 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrency.js.map +1 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyByTime.js +47 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyByTime.js.map +1 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyByTime.spec.js +72 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyByTime.spec.js.map +1 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyUnabbreviated.js +23 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyUnabbreviated.js.map +1 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyUnabbreviated.spec.js +29 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyUnabbreviated.spec.js.map +1 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/rangeMonths.js +53 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/rangeMonths.js.map +1 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/rangeMonths.spec.js +46 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/rangeMonths.spec.js.map +1 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/rangePercent.js +26 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/rangePercent.js.map +1 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/rangePercent.spec.js +83 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/rangePercent.spec.js.map +1 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/recommendedCredit.js +28 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/recommendedCredit.js.map +1 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/recommendedCredit.spec.js +28 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/recommendedCredit.spec.js.map +1 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/rewardsDisplay.js +21 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/rewardsDisplay.js.map +1 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/rewardsDisplay.spec.js +30 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/rewardsDisplay.spec.js.map +1 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/index.js +48 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/index.js.map +1 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/types.js +6 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/types.js.map +1 -0
- package/lib/commonjs/capabilities/offers/pipeline/src/sources/ratetables/offer-catalog/types/index.js +6 -0
- package/lib/commonjs/capabilities/offers/pipeline/src/sources/ratetables/offer-catalog/types/index.js.map +1 -0
- package/lib/commonjs/capabilities/offers/pipeline/src/sources/ratetables/offer-catalog/types/oas/offer-catalog.js +2 -0
- package/lib/commonjs/capabilities/offers/pipeline/src/sources/ratetables/offer-catalog/types/oas/offer-catalog.js.map +1 -0
- package/lib/commonjs/capabilities/offers/pipeline/src/sources/ratetables/types/PublicApi.d.js +2 -0
- package/lib/commonjs/capabilities/offers/pipeline/src/sources/ratetables/types/PublicApi.d.js.map +1 -0
- package/lib/commonjs/capabilities/offers/pipeline/src/sources/ratetables/types/index.js +6 -0
- package/lib/commonjs/capabilities/offers/pipeline/src/sources/ratetables/types/index.js.map +1 -0
- package/lib/commonjs/capabilities/offers/pipeline/src/sources/ratetables/withDeviceSignals.js +74 -0
- package/lib/commonjs/capabilities/offers/pipeline/src/sources/ratetables/withDeviceSignals.js.map +1 -0
- package/lib/commonjs/capabilities/ui/elements/src/components/MarkdownText/Abbreviation.js +61 -0
- package/lib/commonjs/capabilities/ui/elements/src/components/MarkdownText/Abbreviation.js.map +1 -0
- package/lib/commonjs/capabilities/ui/elements/src/components/MarkdownText/components.js +143 -0
- package/lib/commonjs/capabilities/ui/elements/src/components/MarkdownText/components.js.map +1 -0
- package/lib/commonjs/capabilities/ui/elements/src/components/MarkdownText/index.js +54 -0
- package/lib/commonjs/capabilities/ui/elements/src/components/MarkdownText/index.js.map +1 -0
- package/lib/commonjs/capabilities/ui/elements/src/components/MarkdownText/markdownPreprocessor.js +122 -0
- package/lib/commonjs/capabilities/ui/elements/src/components/MarkdownText/markdownPreprocessor.js.map +1 -0
- package/lib/commonjs/capabilities/ui/elements/src/components/index.js +13 -0
- package/lib/commonjs/capabilities/ui/elements/src/components/index.js.map +1 -0
- package/lib/commonjs/capabilities/ui/elements/src/components/thumbor/index.js +110 -0
- package/lib/commonjs/capabilities/ui/elements/src/components/thumbor/index.js.map +1 -0
- package/lib/commonjs/capabilities/ui/elements/src/components/thumbor/useSvgUriViewBox.js +91 -0
- package/lib/commonjs/capabilities/ui/elements/src/components/thumbor/useSvgUriViewBox.js.map +1 -0
- package/lib/commonjs/capabilities/ui/elements/src/components/thumbor/useSvgUriViewBox.test.js +44 -0
- package/lib/commonjs/capabilities/ui/elements/src/components/thumbor/useSvgUriViewBox.test.js.map +1 -0
- package/lib/commonjs/capabilities/ui/elements/src/index.js +28 -0
- package/lib/commonjs/capabilities/ui/elements/src/index.js.map +1 -0
- package/lib/commonjs/capabilities/ui/elements/src/offerCardAttributes.js +23 -0
- package/lib/commonjs/capabilities/ui/elements/src/offerCardAttributes.js.map +1 -0
- package/lib/commonjs/components/Cards/VideosCard/VideosCard.js +1 -1
- package/lib/commonjs/components/Common/BaseOfferCard/Stat/Stat.js +1 -1
- package/lib/commonjs/components/Common/BaseOfferCard/Stat/Stat.js.map +1 -1
- package/lib/commonjs/components/Common/BaseOfferCard/index.js +4 -4
- package/lib/commonjs/components/Common/BaseOfferCard/index.js.map +1 -1
- package/lib/commonjs/components/Layouts/CreditCardOfferCard/statsBuilder.js +1 -1
- package/lib/commonjs/components/Layouts/DefaultOfferCard/statsBuilder.js +1 -1
- package/lib/commonjs/components/Modal/DescriptionPoints.js +3 -3
- package/lib/commonjs/components/Modal/DescriptionPoints.js.map +1 -1
- package/lib/commonjs/components/Modal/Disclaimer.js +1 -1
- package/lib/commonjs/components/Modal/Disclaimer.js.map +1 -1
- package/lib/commonjs/components/MoneyLionOfferCarousel.js +1 -1
- package/lib/commonjs/config/mocks/cnfContext.js +143 -0
- package/lib/commonjs/config/mocks/cnfContext.js.map +1 -0
- package/lib/commonjs/pageData.js +1 -1
- package/lib/commonjs/services/getProductTypesByQuery.js +1 -1
- package/lib/commonjs/utils/formatOfferUrl.js +1 -1
- package/lib/commonjs/utils/getOffersByProductTypes.js +2 -2
- package/lib/module/capabilities/configuration/src/brands/checkVisualEligibility.js +24 -0
- package/lib/module/capabilities/configuration/src/brands/checkVisualEligibility.js.map +1 -0
- package/lib/module/capabilities/configuration/src/brands/createDerivedBrands.js +34 -0
- package/lib/module/capabilities/configuration/src/brands/createDerivedBrands.js.map +1 -0
- package/lib/module/capabilities/configuration/src/brands/index.js +3 -0
- package/lib/module/capabilities/configuration/src/brands/index.js.map +1 -0
- package/lib/module/capabilities/configuration/src/brands/types.js +6 -0
- package/lib/module/capabilities/configuration/src/brands/types.js.map +1 -0
- package/lib/module/capabilities/core/src/domain/third-party-search/index.js +2 -0
- package/lib/module/capabilities/core/src/domain/third-party-search/index.js.map +1 -0
- package/lib/module/capabilities/core/src/domain/third-party-search/orderProductTypesByRankUtils.js +26 -0
- package/lib/module/capabilities/core/src/domain/third-party-search/orderProductTypesByRankUtils.js.map +1 -0
- package/lib/module/capabilities/core/src/index.js +2 -0
- package/lib/module/capabilities/core/src/index.js.map +1 -0
- package/lib/module/capabilities/core/src/system/cnfContext/CnfContext.js +12 -0
- package/lib/module/capabilities/core/src/system/cnfContext/CnfContext.js.map +1 -0
- package/lib/module/capabilities/core/src/system/cnfContext/schemas/App.js +12 -0
- package/lib/module/capabilities/core/src/system/cnfContext/schemas/App.js.map +1 -0
- package/lib/module/capabilities/core/src/system/cnfContext/schemas/Brand.js +81 -0
- package/lib/module/capabilities/core/src/system/cnfContext/schemas/Brand.js.map +1 -0
- package/lib/module/capabilities/core/src/system/cnfContext/schemas/Configuration.js +35 -0
- package/lib/module/capabilities/core/src/system/cnfContext/schemas/Configuration.js.map +1 -0
- package/lib/module/capabilities/core/src/system/cnfContext/schemas/Request.js +15 -0
- package/lib/module/capabilities/core/src/system/cnfContext/schemas/Request.js.map +1 -0
- package/lib/module/capabilities/core/src/system/cnfContext/schemas/Session.js +6 -0
- package/lib/module/capabilities/core/src/system/cnfContext/schemas/Session.js.map +1 -0
- package/lib/module/capabilities/core/src/system/cnfContext/schemas/Signals.js +35 -0
- package/lib/module/capabilities/core/src/system/cnfContext/schemas/Signals.js.map +1 -0
- package/lib/module/capabilities/core/src/system/cnfContext/schemas/Subaccount.js +20 -0
- package/lib/module/capabilities/core/src/system/cnfContext/schemas/Subaccount.js.map +1 -0
- package/lib/module/capabilities/core/src/system/cnfContext/schemas/index.js +8 -0
- package/lib/module/capabilities/core/src/system/cnfContext/schemas/index.js.map +1 -0
- package/lib/module/capabilities/offer-catalog/src/api/offerCatalogApi.js +122 -0
- package/lib/module/capabilities/offer-catalog/src/api/offerCatalogApi.js.map +1 -0
- package/lib/module/capabilities/offer-catalog/src/index.js +5 -0
- package/lib/module/capabilities/offer-catalog/src/index.js.map +1 -0
- package/lib/module/capabilities/offer-catalog/src/types/offerCatalogSchema.js +2 -0
- package/lib/module/capabilities/offer-catalog/src/types/offerCatalogSchema.js.map +1 -0
- package/lib/module/capabilities/offer-catalog/src/utils/arrayToMarkdownList.js +4 -0
- package/lib/module/capabilities/offer-catalog/src/utils/arrayToMarkdownList.js.map +1 -0
- package/lib/module/capabilities/offer-catalog/src/utils/contextUtil.js +58 -0
- package/lib/module/capabilities/offer-catalog/src/utils/contextUtil.js.map +1 -0
- package/lib/module/capabilities/offer-catalog/src/utils/errorUtil.js +15 -0
- package/lib/module/capabilities/offer-catalog/src/utils/errorUtil.js.map +1 -0
- package/lib/module/capabilities/offer-catalog/src/utils/formatUtils.js +151 -0
- package/lib/module/capabilities/offer-catalog/src/utils/formatUtils.js.map +1 -0
- package/lib/module/capabilities/offer-catalog/src/utils/getOfferUrl.js +37 -0
- package/lib/module/capabilities/offer-catalog/src/utils/getOfferUrl.js.map +1 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/annualFee.js +71 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/annualFee.js.map +1 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/boolean.js +15 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/boolean.js.map +1 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/boolean.spec.js +59 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/boolean.spec.js.map +1 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/common.js +13 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/common.js.map +1 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/common.spec.js +61 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/common.spec.js.map +1 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/creditBureaus.js +25 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/creditBureaus.js.map +1 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/creditBureaus.spec.js +30 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/creditBureaus.spec.js.map +1 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/currency.js +15 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/currency.js.map +1 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/currencyOrBasis.js +39 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/currencyOrBasis.js.map +1 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/currencyOrBasis.spec.js +207 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/currencyOrBasis.spec.js.map +1 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/freeTrialDays.js +13 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/freeTrialDays.js.map +1 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/freeTrialDays.spec.js +23 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/freeTrialDays.spec.js.map +1 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/fromListStringWithAnd.js +14 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/fromListStringWithAnd.js.map +1 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/fromListStringWithAnd.spec.js +39 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/fromListStringWithAnd.spec.js.map +1 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/index.js +20 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/index.js.map +1 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/monthlyOrAnnualCurrency.js +28 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/monthlyOrAnnualCurrency.js.map +1 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/monthlyOrAnnualCurrency.spec.js +42 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/monthlyOrAnnualCurrency.spec.js.map +1 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/percentage.js +14 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/percentage.js.map +1 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/percentage.spec.js +31 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/percentage.spec.js.map +1 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/purchaseApr.js +69 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/purchaseApr.js.map +1 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/purchaseApr.spec.js +68 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/purchaseApr.spec.js.map +1 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrency.js +16 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrency.js.map +1 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyByTime.js +40 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyByTime.js.map +1 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyByTime.spec.js +71 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyByTime.spec.js.map +1 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyUnabbreviated.js +16 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyUnabbreviated.js.map +1 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyUnabbreviated.spec.js +28 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyUnabbreviated.spec.js.map +1 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/rangeMonths.js +46 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/rangeMonths.js.map +1 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/rangeMonths.spec.js +45 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/rangeMonths.spec.js.map +1 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/rangePercent.js +19 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/rangePercent.js.map +1 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/rangePercent.spec.js +82 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/rangePercent.spec.js.map +1 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/recommendedCredit.js +21 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/recommendedCredit.js.map +1 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/recommendedCredit.spec.js +27 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/recommendedCredit.spec.js.map +1 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/rewardsDisplay.js +14 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/rewardsDisplay.js.map +1 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/rewardsDisplay.spec.js +29 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/rewardsDisplay.spec.js.map +1 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/index.js +41 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/index.js.map +1 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/types.js +2 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/types.js.map +1 -0
- package/lib/module/capabilities/offers/pipeline/src/sources/ratetables/offer-catalog/types/index.js +2 -0
- package/lib/module/capabilities/offers/pipeline/src/sources/ratetables/offer-catalog/types/index.js.map +1 -0
- package/lib/module/capabilities/offers/pipeline/src/sources/ratetables/offer-catalog/types/oas/offer-catalog.js +2 -0
- package/lib/module/capabilities/offers/pipeline/src/sources/ratetables/offer-catalog/types/oas/offer-catalog.js.map +1 -0
- package/lib/module/capabilities/offers/pipeline/src/sources/ratetables/types/PublicApi.d.js +2 -0
- package/lib/module/capabilities/offers/pipeline/src/sources/ratetables/types/PublicApi.d.js.map +1 -0
- package/lib/module/capabilities/offers/pipeline/src/sources/ratetables/types/index.js +2 -0
- package/lib/module/capabilities/offers/pipeline/src/sources/ratetables/types/index.js.map +1 -0
- package/lib/module/capabilities/offers/pipeline/src/sources/ratetables/withDeviceSignals.js +65 -0
- package/lib/module/capabilities/offers/pipeline/src/sources/ratetables/withDeviceSignals.js.map +1 -0
- package/lib/module/capabilities/ui/elements/src/components/MarkdownText/Abbreviation.js +50 -0
- package/lib/module/capabilities/ui/elements/src/components/MarkdownText/Abbreviation.js.map +1 -0
- package/lib/module/capabilities/ui/elements/src/components/MarkdownText/components.js +134 -0
- package/lib/module/capabilities/ui/elements/src/components/MarkdownText/components.js.map +1 -0
- package/lib/module/capabilities/ui/elements/src/components/MarkdownText/index.js +46 -0
- package/lib/module/capabilities/ui/elements/src/components/MarkdownText/index.js.map +1 -0
- package/lib/module/capabilities/ui/elements/src/components/MarkdownText/markdownPreprocessor.js +115 -0
- package/lib/module/capabilities/ui/elements/src/components/MarkdownText/markdownPreprocessor.js.map +1 -0
- package/lib/module/capabilities/ui/elements/src/components/index.js +2 -0
- package/lib/module/capabilities/ui/elements/src/components/index.js.map +1 -0
- package/lib/module/capabilities/ui/elements/src/components/thumbor/index.js +103 -0
- package/lib/module/capabilities/ui/elements/src/components/thumbor/index.js.map +1 -0
- package/lib/module/capabilities/ui/elements/src/components/thumbor/useSvgUriViewBox.js +86 -0
- package/lib/module/capabilities/ui/elements/src/components/thumbor/useSvgUriViewBox.js.map +1 -0
- package/lib/module/capabilities/ui/elements/src/components/thumbor/useSvgUriViewBox.test.js +43 -0
- package/lib/module/capabilities/ui/elements/src/components/thumbor/useSvgUriViewBox.test.js.map +1 -0
- package/lib/module/capabilities/ui/elements/src/index.js +3 -0
- package/lib/module/capabilities/ui/elements/src/index.js.map +1 -0
- package/lib/module/capabilities/ui/elements/src/offerCardAttributes.js +16 -0
- package/lib/module/capabilities/ui/elements/src/offerCardAttributes.js.map +1 -0
- package/lib/module/components/Cards/VideosCard/VideosCard.js +1 -1
- package/lib/module/components/Common/BaseOfferCard/Stat/Stat.js +1 -2
- package/lib/module/components/Common/BaseOfferCard/Stat/Stat.js.map +1 -1
- package/lib/module/components/Common/BaseOfferCard/index.js +3 -4
- package/lib/module/components/Common/BaseOfferCard/index.js.map +1 -1
- package/lib/module/components/Layouts/CreditCardOfferCard/statsBuilder.js +1 -1
- package/lib/module/components/Layouts/CreditCardOfferCard/statsBuilder.js.map +1 -1
- package/lib/module/components/Layouts/DefaultOfferCard/statsBuilder.js +1 -1
- package/lib/module/components/Layouts/DefaultOfferCard/statsBuilder.js.map +1 -1
- package/lib/module/components/Modal/DescriptionPoints.js +2 -2
- package/lib/module/components/Modal/DescriptionPoints.js.map +1 -1
- package/lib/module/components/Modal/Disclaimer.js +1 -1
- package/lib/module/components/Modal/Disclaimer.js.map +1 -1
- package/lib/module/components/MoneyLionOfferCarousel.js +1 -1
- package/lib/module/components/MoneyLionOfferCarousel.js.map +1 -1
- package/lib/module/config/mocks/cnfContext.js +137 -0
- package/lib/module/config/mocks/cnfContext.js.map +1 -0
- package/lib/module/pageData.js +1 -1
- package/lib/module/pageData.js.map +1 -1
- package/lib/module/services/getProductTypesByQuery.js +1 -1
- package/lib/module/services/getProductTypesByQuery.js.map +1 -1
- package/lib/module/utils/formatOfferUrl.js +1 -1
- package/lib/module/utils/formatOfferUrl.js.map +1 -1
- package/lib/module/utils/getOffersByProductTypes.js +2 -2
- package/lib/module/utils/getOffersByProductTypes.js.map +1 -1
- package/lib/typescript/builder/builder.d.ts +2 -2
- package/lib/typescript/builder/builder.d.ts.map +1 -1
- package/lib/typescript/src/capabilities/configuration/src/brands/checkVisualEligibility.d.ts.map +1 -0
- package/lib/typescript/{capabilities → src/capabilities}/configuration/src/brands/createDerivedBrands.d.ts +1 -1
- package/lib/typescript/src/capabilities/configuration/src/brands/createDerivedBrands.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/configuration/src/brands/index.d.ts.map +1 -0
- package/lib/typescript/{capabilities → src/capabilities}/configuration/src/brands/types.d.ts +1 -1
- package/lib/typescript/src/capabilities/configuration/src/brands/types.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/core/src/domain/third-party-search/index.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/core/src/domain/third-party-search/orderProductTypesByRankUtils.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/core/src/index.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/core/src/system/cnfContext/CnfContext.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/core/src/system/cnfContext/schemas/App.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/core/src/system/cnfContext/schemas/Brand.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/core/src/system/cnfContext/schemas/Configuration.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/core/src/system/cnfContext/schemas/Request.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/core/src/system/cnfContext/schemas/Session.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/core/src/system/cnfContext/schemas/Signals.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/core/src/system/cnfContext/schemas/Subaccount.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/core/src/system/cnfContext/schemas/index.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/offer-catalog/src/api/offerCatalogApi.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/offer-catalog/src/index.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/offer-catalog/src/types/offerCatalogSchema.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/offer-catalog/src/utils/arrayToMarkdownList.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/offer-catalog/src/utils/contextUtil.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/offer-catalog/src/utils/errorUtil.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/offer-catalog/src/utils/formatUtils.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/offer-catalog/src/utils/getOfferUrl.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/annualFee.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/boolean.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/boolean.spec.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/common.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/common.spec.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/creditBureaus.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/creditBureaus.spec.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/currency.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/currencyOrBasis.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/currencyOrBasis.spec.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/freeTrialDays.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/freeTrialDays.spec.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/fromListStringWithAnd.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/fromListStringWithAnd.spec.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/index.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/monthlyOrAnnualCurrency.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/monthlyOrAnnualCurrency.spec.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/percentage.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/percentage.spec.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/purchaseApr.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/purchaseApr.spec.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrency.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyByTime.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyByTime.spec.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyUnabbreviated.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyUnabbreviated.spec.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/rangeMonths.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/rangeMonths.spec.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/rangePercent.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/rangePercent.spec.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/recommendedCredit.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/recommendedCredit.spec.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/rewardsDisplay.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/rewardsDisplay.spec.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/index.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/types.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/offers/pipeline/src/sources/ratetables/offer-catalog/types/index.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/offers/pipeline/src/sources/ratetables/offer-catalog/types/oas/offer-catalog.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/offers/pipeline/src/sources/ratetables/types/index.d.ts.map +1 -0
- package/lib/typescript/{capabilities → src/capabilities}/offers/pipeline/src/sources/ratetables/withDeviceSignals.d.ts +9 -9
- package/lib/typescript/src/capabilities/offers/pipeline/src/sources/ratetables/withDeviceSignals.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/ui/elements/src/components/MarkdownText/Abbreviation.d.ts.map +1 -0
- package/lib/typescript/{capabilities → src/capabilities}/ui/elements/src/components/MarkdownText/components.d.ts +1 -1
- package/lib/typescript/src/capabilities/ui/elements/src/components/MarkdownText/components.d.ts.map +1 -0
- package/lib/typescript/{capabilities → src/capabilities}/ui/elements/src/components/MarkdownText/index.d.ts +1 -1
- package/lib/typescript/src/capabilities/ui/elements/src/components/MarkdownText/index.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/ui/elements/src/components/MarkdownText/markdownPreprocessor.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/ui/elements/src/components/index.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/ui/elements/src/components/thumbor/index.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/ui/elements/src/components/thumbor/useSvgUriViewBox.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/ui/elements/src/components/thumbor/useSvgUriViewBox.test.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/ui/elements/src/index.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/ui/elements/src/offerCardAttributes.d.ts.map +1 -0
- package/lib/typescript/src/components/Common/BaseOfferCard/Stat/Stat.d.ts +5 -1
- package/lib/typescript/src/components/Common/BaseOfferCard/Stat/Stat.d.ts.map +1 -1
- package/lib/typescript/src/components/Common/BaseOfferCard/index.d.ts +2 -2
- package/lib/typescript/src/components/Common/BaseOfferCard/index.d.ts.map +1 -1
- package/lib/typescript/src/components/Common/DynamicOfferCard/CallToAction.d.ts +1 -1
- package/lib/typescript/src/components/Common/DynamicOfferCard/CallToAction.d.ts.map +1 -1
- package/lib/typescript/src/components/Common/DynamicOfferCard/SeeMore.d.ts +1 -1
- package/lib/typescript/src/components/Common/DynamicOfferCard/SeeMore.d.ts.map +1 -1
- package/lib/typescript/src/components/Common/DynamicOfferCard/index.d.ts +1 -1
- package/lib/typescript/src/components/Common/DynamicOfferCard/index.d.ts.map +1 -1
- package/lib/typescript/src/components/DynamicOffers/Render/DynamicOffersRender.d.ts +1 -1
- package/lib/typescript/src/components/DynamicOffers/Render/DynamicOffersRender.d.ts.map +1 -1
- package/lib/typescript/src/components/DynamicOffers/Render/FallbackOfferTemplate.d.ts +1 -1
- package/lib/typescript/src/components/DynamicOffers/Render/FallbackOfferTemplate.d.ts.map +1 -1
- package/lib/typescript/src/components/DynamicOffers/Render/Offer.d.ts +1 -1
- package/lib/typescript/src/components/DynamicOffers/Render/Offer.d.ts.map +1 -1
- package/lib/typescript/src/components/Layouts/CreditCardOfferCard/index.d.ts +1 -1
- package/lib/typescript/src/components/Layouts/CreditCardOfferCard/index.d.ts.map +1 -1
- package/lib/typescript/src/components/Layouts/CreditCardOfferCard/statsBuilder.d.ts +2 -2
- package/lib/typescript/src/components/Layouts/CreditCardOfferCard/statsBuilder.d.ts.map +1 -1
- package/lib/typescript/src/components/Layouts/DefaultOfferCard/index.d.ts +1 -1
- package/lib/typescript/src/components/Layouts/DefaultOfferCard/index.d.ts.map +1 -1
- package/lib/typescript/src/components/Layouts/DefaultOfferCard/statsBuilder.d.ts +3 -3
- package/lib/typescript/src/components/Layouts/DefaultOfferCard/statsBuilder.d.ts.map +1 -1
- package/lib/typescript/src/components/Layouts/HeadlineWithDescriptionCard/index.d.ts +1 -1
- package/lib/typescript/src/components/Layouts/HeadlineWithDescriptionCard/index.d.ts.map +1 -1
- package/lib/typescript/src/components/Modal/OfferDetailsModal.d.ts +1 -1
- package/lib/typescript/src/components/Modal/OfferDetailsModal.d.ts.map +1 -1
- package/lib/typescript/src/config/mocks/cnfContext.d.ts.map +1 -0
- package/lib/typescript/src/context/EventHandlerProvider.d.ts +1 -1
- package/lib/typescript/src/context/EventHandlerProvider.d.ts.map +1 -1
- package/lib/typescript/src/pageData.d.ts +2 -2
- package/lib/typescript/src/pageData.d.ts.map +1 -1
- package/lib/typescript/src/services/getDynamicOffers.d.ts +3 -3
- package/lib/typescript/src/services/getDynamicOffers.d.ts.map +1 -1
- package/lib/typescript/src/utils/addClientTagsToOfferLinks.d.ts +1 -1
- package/lib/typescript/src/utils/addClientTagsToOfferLinks.d.ts.map +1 -1
- package/lib/typescript/src/utils/formatOfferUrl.d.ts +1 -1
- package/lib/typescript/src/utils/formatOfferUrl.d.ts.map +1 -1
- package/lib/typescript/src/utils/getDefaultProductType.d.ts +1 -1
- package/lib/typescript/src/utils/getDefaultProductType.d.ts.map +1 -1
- package/lib/typescript/src/utils/getEnableUseCachedOffers.d.ts +1 -1
- package/lib/typescript/src/utils/getEnableUseCachedOffers.d.ts.map +1 -1
- package/lib/typescript/src/utils/getOffersBasedOnLayout.d.ts +1 -1
- package/lib/typescript/src/utils/getOffersBasedOnLayout.d.ts.map +1 -1
- package/lib/typescript/src/utils/getOffersByProductTypes.d.ts +2 -2
- package/lib/typescript/src/utils/getOffersByProductTypes.d.ts.map +1 -1
- package/lib/typescript/src/utils/getProductTypesDefinition.d.ts +1 -1
- package/lib/typescript/src/utils/getProductTypesDefinition.d.ts.map +1 -1
- package/lib/typescript/src/utils/selectDynamicOffers.d.ts +1 -1
- package/lib/typescript/src/utils/selectDynamicOffers.d.ts.map +1 -1
- package/lib/typescript/src/utils/sortOffersByRecommendationScore.d.ts +1 -1
- package/lib/typescript/src/utils/sortOffersByRecommendationScore.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/capabilities/configuration/src/brands/checkVisualEligibility.ts +29 -0
- package/src/capabilities/configuration/src/brands/createDerivedBrands.ts +39 -0
- package/src/capabilities/configuration/src/brands/index.ts +2 -0
- package/src/capabilities/configuration/src/brands/types.ts +8 -0
- package/src/capabilities/core/src/domain/third-party-search/index.ts +1 -0
- package/src/capabilities/core/src/domain/third-party-search/orderProductTypesByRankUtils.ts +33 -0
- package/src/capabilities/core/src/index.ts +1 -0
- package/src/capabilities/core/src/system/cnfContext/CnfContext.ts +21 -0
- package/src/capabilities/core/src/system/cnfContext/schemas/App.ts +13 -0
- package/src/capabilities/core/src/system/cnfContext/schemas/Brand.ts +119 -0
- package/src/capabilities/core/src/system/cnfContext/schemas/Configuration.ts +49 -0
- package/src/capabilities/core/src/system/cnfContext/schemas/Request.ts +16 -0
- package/src/capabilities/core/src/system/cnfContext/schemas/Session.ts +9 -0
- package/src/capabilities/core/src/system/cnfContext/schemas/Signals.ts +47 -0
- package/src/capabilities/core/src/system/cnfContext/schemas/Subaccount.ts +25 -0
- package/src/capabilities/core/src/system/cnfContext/schemas/index.ts +7 -0
- package/src/capabilities/offer-catalog/src/api/offerCatalogApi.ts +171 -0
- package/src/capabilities/offer-catalog/src/index.ts +10 -0
- package/src/capabilities/offer-catalog/src/types/offerCatalogSchema.ts +119 -0
- package/src/capabilities/offer-catalog/src/utils/arrayToMarkdownList.ts +3 -0
- package/src/capabilities/offer-catalog/src/utils/contextUtil.ts +73 -0
- package/src/capabilities/offer-catalog/src/utils/errorUtil.ts +18 -0
- package/src/capabilities/offer-catalog/src/utils/formatUtils.ts +168 -0
- package/src/capabilities/offer-catalog/src/utils/getOfferUrl.ts +61 -0
- package/src/capabilities/offer-catalog/src/utils/stats/formatters/annualFee.ts +103 -0
- package/src/capabilities/offer-catalog/src/utils/stats/formatters/boolean.spec.ts +58 -0
- package/src/capabilities/offer-catalog/src/utils/stats/formatters/boolean.ts +31 -0
- package/src/capabilities/offer-catalog/src/utils/stats/formatters/common.spec.ts +60 -0
- package/src/capabilities/offer-catalog/src/utils/stats/formatters/common.ts +31 -0
- package/src/capabilities/offer-catalog/src/utils/stats/formatters/creditBureaus.spec.ts +29 -0
- package/src/capabilities/offer-catalog/src/utils/stats/formatters/creditBureaus.ts +36 -0
- package/src/capabilities/offer-catalog/src/utils/stats/formatters/currency.ts +24 -0
- package/src/capabilities/offer-catalog/src/utils/stats/formatters/currencyOrBasis.spec.ts +206 -0
- package/src/capabilities/offer-catalog/src/utils/stats/formatters/currencyOrBasis.ts +83 -0
- package/src/capabilities/offer-catalog/src/utils/stats/formatters/freeTrialDays.spec.ts +22 -0
- package/src/capabilities/offer-catalog/src/utils/stats/formatters/freeTrialDays.ts +25 -0
- package/src/capabilities/offer-catalog/src/utils/stats/formatters/fromListStringWithAnd.spec.ts +38 -0
- package/src/capabilities/offer-catalog/src/utils/stats/formatters/fromListStringWithAnd.ts +24 -0
- package/src/capabilities/offer-catalog/src/utils/stats/formatters/index.ts +19 -0
- package/src/capabilities/offer-catalog/src/utils/stats/formatters/monthlyOrAnnualCurrency.spec.ts +41 -0
- package/src/capabilities/offer-catalog/src/utils/stats/formatters/monthlyOrAnnualCurrency.ts +52 -0
- package/src/capabilities/offer-catalog/src/utils/stats/formatters/percentage.spec.ts +30 -0
- package/src/capabilities/offer-catalog/src/utils/stats/formatters/percentage.ts +23 -0
- package/src/capabilities/offer-catalog/src/utils/stats/formatters/purchaseApr.spec.ts +67 -0
- package/src/capabilities/offer-catalog/src/utils/stats/formatters/purchaseApr.ts +92 -0
- package/src/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrency.ts +34 -0
- package/src/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyByTime.spec.ts +70 -0
- package/src/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyByTime.ts +71 -0
- package/src/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyUnabbreviated.spec.ts +27 -0
- package/src/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyUnabbreviated.ts +38 -0
- package/src/capabilities/offer-catalog/src/utils/stats/formatters/rangeMonths.spec.ts +44 -0
- package/src/capabilities/offer-catalog/src/utils/stats/formatters/rangeMonths.ts +68 -0
- package/src/capabilities/offer-catalog/src/utils/stats/formatters/rangePercent.spec.ts +81 -0
- package/src/capabilities/offer-catalog/src/utils/stats/formatters/rangePercent.ts +38 -0
- package/src/capabilities/offer-catalog/src/utils/stats/formatters/recommendedCredit.spec.ts +26 -0
- package/src/capabilities/offer-catalog/src/utils/stats/formatters/recommendedCredit.ts +45 -0
- package/src/capabilities/offer-catalog/src/utils/stats/formatters/rewardsDisplay.spec.ts +28 -0
- package/src/capabilities/offer-catalog/src/utils/stats/formatters/rewardsDisplay.ts +23 -0
- package/src/capabilities/offer-catalog/src/utils/stats/index.ts +141 -0
- package/src/capabilities/offer-catalog/src/utils/stats/types.ts +47 -0
- package/src/capabilities/offers/pipeline/src/sources/ratetables/offer-catalog/types/index.ts +6 -0
- package/src/capabilities/offers/pipeline/src/sources/ratetables/offer-catalog/types/oas/offer-catalog.ts +2272 -0
- package/src/capabilities/offers/pipeline/src/sources/ratetables/types/PublicApi.d.ts +1924 -0
- package/src/capabilities/offers/pipeline/src/sources/ratetables/types/index.ts +5 -0
- package/src/capabilities/offers/pipeline/src/sources/ratetables/withDeviceSignals.ts +83 -0
- package/src/capabilities/ui/elements/src/components/MarkdownText/Abbreviation.tsx +66 -0
- package/src/capabilities/ui/elements/src/components/MarkdownText/components.tsx +175 -0
- package/src/capabilities/ui/elements/src/components/MarkdownText/index.tsx +52 -0
- package/src/capabilities/ui/elements/src/components/MarkdownText/markdownPreprocessor.ts +124 -0
- package/src/capabilities/ui/elements/src/components/index.ts +1 -0
- package/src/capabilities/ui/elements/src/components/thumbor/index.tsx +115 -0
- package/src/capabilities/ui/elements/src/components/thumbor/useSvgUriViewBox.test.ts +42 -0
- package/src/capabilities/ui/elements/src/components/thumbor/useSvgUriViewBox.ts +110 -0
- package/src/capabilities/ui/elements/src/index.ts +3 -0
- package/src/capabilities/ui/elements/src/offerCardAttributes.ts +28 -0
- package/src/components/Cards/VideosCard/VideosCard.tsx +1 -1
- package/src/components/Common/BaseOfferCard/Stat/Stat.tsx +7 -2
- package/src/components/Common/BaseOfferCard/index.tsx +3 -4
- package/src/components/Common/DynamicOfferCard/CallToAction.tsx +1 -1
- package/src/components/Common/DynamicOfferCard/SeeMore.tsx +1 -1
- package/src/components/Common/DynamicOfferCard/index.tsx +1 -1
- package/src/components/DynamicOffers/Render/DynamicOffersRender.tsx +1 -1
- package/src/components/DynamicOffers/Render/FallbackOfferTemplate.tsx +1 -1
- package/src/components/DynamicOffers/Render/Offer.tsx +1 -1
- package/src/components/Layouts/CreditCardOfferCard/index.tsx +1 -1
- package/src/components/Layouts/CreditCardOfferCard/statsBuilder.tsx +2 -2
- package/src/components/Layouts/DefaultOfferCard/index.tsx +1 -1
- package/src/components/Layouts/DefaultOfferCard/statsBuilder.tsx +2 -2
- package/src/components/Layouts/HeadlineWithDescriptionCard/index.tsx +1 -1
- package/src/components/Modal/DescriptionPoints.tsx +2 -2
- package/src/components/Modal/Disclaimer.tsx +1 -1
- package/src/components/Modal/OfferDetailsModal.tsx +1 -1
- package/src/components/MoneyLionOfferCarousel.tsx +2 -2
- package/src/config/mocks/cnfContext.ts +136 -0
- package/src/context/EventHandlerProvider.tsx +1 -1
- package/src/pageData.ts +2 -2
- package/src/services/getDynamicOffers.ts +2 -2
- package/src/services/getProductTypesByQuery.ts +1 -1
- package/src/utils/addClientTagsToOfferLinks.ts +1 -1
- package/src/utils/formatOfferUrl.ts +1 -1
- package/src/utils/getDefaultProductType.ts +1 -1
- package/src/utils/getEnableUseCachedOffers.ts +1 -1
- package/src/utils/getOffersBasedOnLayout.ts +1 -1
- package/src/utils/getOffersByProductTypes.ts +3 -3
- package/src/utils/getProductTypesDefinition.ts +1 -1
- package/src/utils/selectDynamicOffers.ts +1 -1
- package/src/utils/sortOffersByRecommendationScore.ts +1 -1
- package/lib/typescript/capabilities/configuration/src/brands/checkVisualEligibility.d.ts.map +0 -1
- package/lib/typescript/capabilities/configuration/src/brands/createDerivedBrands.d.ts.map +0 -1
- package/lib/typescript/capabilities/configuration/src/brands/index.d.ts.map +0 -1
- package/lib/typescript/capabilities/configuration/src/brands/types.d.ts.map +0 -1
- package/lib/typescript/capabilities/core/src/domain/third-party-search/index.d.ts.map +0 -1
- package/lib/typescript/capabilities/core/src/domain/third-party-search/orderProductTypesByRankUtils.d.ts.map +0 -1
- package/lib/typescript/capabilities/core/src/index.d.ts.map +0 -1
- package/lib/typescript/capabilities/core/src/system/cnfContext/CnfContext.d.ts.map +0 -1
- package/lib/typescript/capabilities/core/src/system/cnfContext/schemas/App.d.ts.map +0 -1
- package/lib/typescript/capabilities/core/src/system/cnfContext/schemas/Brand.d.ts.map +0 -1
- package/lib/typescript/capabilities/core/src/system/cnfContext/schemas/Configuration.d.ts.map +0 -1
- package/lib/typescript/capabilities/core/src/system/cnfContext/schemas/Request.d.ts.map +0 -1
- package/lib/typescript/capabilities/core/src/system/cnfContext/schemas/Session.d.ts.map +0 -1
- package/lib/typescript/capabilities/core/src/system/cnfContext/schemas/Signals.d.ts.map +0 -1
- package/lib/typescript/capabilities/core/src/system/cnfContext/schemas/Subaccount.d.ts.map +0 -1
- package/lib/typescript/capabilities/core/src/system/cnfContext/schemas/index.d.ts.map +0 -1
- package/lib/typescript/capabilities/offer-catalog/src/api/offerCatalogApi.d.ts.map +0 -1
- package/lib/typescript/capabilities/offer-catalog/src/index.d.ts.map +0 -1
- package/lib/typescript/capabilities/offer-catalog/src/types/offerCatalogSchema.d.ts.map +0 -1
- package/lib/typescript/capabilities/offer-catalog/src/utils/arrayToMarkdownList.d.ts.map +0 -1
- package/lib/typescript/capabilities/offer-catalog/src/utils/contextUtil.d.ts.map +0 -1
- package/lib/typescript/capabilities/offer-catalog/src/utils/errorUtil.d.ts.map +0 -1
- package/lib/typescript/capabilities/offer-catalog/src/utils/formatUtils.d.ts.map +0 -1
- package/lib/typescript/capabilities/offer-catalog/src/utils/getOfferUrl.d.ts.map +0 -1
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/annualFee.d.ts.map +0 -1
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/boolean.d.ts.map +0 -1
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/boolean.spec.d.ts.map +0 -1
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/common.d.ts.map +0 -1
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/common.spec.d.ts.map +0 -1
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/creditBureaus.d.ts.map +0 -1
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/creditBureaus.spec.d.ts.map +0 -1
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/currency.d.ts.map +0 -1
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/currencyOrBasis.d.ts.map +0 -1
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/currencyOrBasis.spec.d.ts.map +0 -1
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/freeTrialDays.d.ts.map +0 -1
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/freeTrialDays.spec.d.ts.map +0 -1
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/fromListStringWithAnd.d.ts.map +0 -1
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/fromListStringWithAnd.spec.d.ts.map +0 -1
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/index.d.ts.map +0 -1
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/monthlyOrAnnualCurrency.d.ts.map +0 -1
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/monthlyOrAnnualCurrency.spec.d.ts.map +0 -1
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/percentage.d.ts.map +0 -1
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/percentage.spec.d.ts.map +0 -1
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/purchaseApr.d.ts.map +0 -1
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/purchaseApr.spec.d.ts.map +0 -1
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrency.d.ts.map +0 -1
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyByTime.d.ts.map +0 -1
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyByTime.spec.d.ts.map +0 -1
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyUnabbreviated.d.ts.map +0 -1
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyUnabbreviated.spec.d.ts.map +0 -1
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangeMonths.d.ts.map +0 -1
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangeMonths.spec.d.ts.map +0 -1
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangePercent.d.ts.map +0 -1
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangePercent.spec.d.ts.map +0 -1
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/recommendedCredit.d.ts.map +0 -1
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/recommendedCredit.spec.d.ts.map +0 -1
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rewardsDisplay.d.ts.map +0 -1
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rewardsDisplay.spec.d.ts.map +0 -1
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/index.d.ts.map +0 -1
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/types.d.ts.map +0 -1
- package/lib/typescript/capabilities/offers/pipeline/src/sources/ratetables/offer-catalog/types/index.d.ts.map +0 -1
- package/lib/typescript/capabilities/offers/pipeline/src/sources/ratetables/offer-catalog/types/oas/offer-catalog.d.ts.map +0 -1
- package/lib/typescript/capabilities/offers/pipeline/src/sources/ratetables/types/index.d.ts.map +0 -1
- package/lib/typescript/capabilities/offers/pipeline/src/sources/ratetables/withDeviceSignals.d.ts.map +0 -1
- package/lib/typescript/capabilities/offers/ux/src/elements/Stat/HyphenIcon.d.ts +0 -7
- package/lib/typescript/capabilities/offers/ux/src/elements/Stat/HyphenIcon.d.ts.map +0 -1
- package/lib/typescript/capabilities/offers/ux/src/elements/Stat/Stat.d.ts +0 -12
- package/lib/typescript/capabilities/offers/ux/src/elements/Stat/Stat.d.ts.map +0 -1
- package/lib/typescript/capabilities/offers/ux/src/elements/Stat/index.d.ts +0 -2
- package/lib/typescript/capabilities/offers/ux/src/elements/Stat/index.d.ts.map +0 -1
- package/lib/typescript/capabilities/ui/elements/src/components/MarkdownText/Abbreviation.d.ts.map +0 -1
- package/lib/typescript/capabilities/ui/elements/src/components/MarkdownText/components.d.ts.map +0 -1
- package/lib/typescript/capabilities/ui/elements/src/components/MarkdownText/index.d.ts.map +0 -1
- package/lib/typescript/capabilities/ui/elements/src/components/MarkdownText/markdownPreprocessor.d.ts.map +0 -1
- package/lib/typescript/capabilities/ui/elements/src/components/index.d.ts.map +0 -1
- package/lib/typescript/capabilities/ui/elements/src/components/thumbor/index.d.ts.map +0 -1
- package/lib/typescript/capabilities/ui/elements/src/components/thumbor/useSvgUriViewBox.d.ts.map +0 -1
- package/lib/typescript/capabilities/ui/elements/src/components/thumbor/useSvgUriViewBox.test.d.ts.map +0 -1
- package/lib/typescript/capabilities/ui/elements/src/index.d.ts.map +0 -1
- package/lib/typescript/capabilities/ui/elements/src/offerCardAttributes.d.ts.map +0 -1
- package/lib/typescript/config/mocks/cnfContext.d.ts.map +0 -1
- /package/lib/typescript/{capabilities → src/capabilities}/configuration/src/brands/checkVisualEligibility.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/configuration/src/brands/index.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/core/src/domain/third-party-search/index.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/core/src/domain/third-party-search/orderProductTypesByRankUtils.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/core/src/index.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/core/src/system/cnfContext/CnfContext.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/core/src/system/cnfContext/schemas/App.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/core/src/system/cnfContext/schemas/Brand.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/core/src/system/cnfContext/schemas/Configuration.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/core/src/system/cnfContext/schemas/Request.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/core/src/system/cnfContext/schemas/Session.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/core/src/system/cnfContext/schemas/Signals.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/core/src/system/cnfContext/schemas/Subaccount.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/core/src/system/cnfContext/schemas/index.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/api/offerCatalogApi.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/index.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/types/offerCatalogSchema.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/arrayToMarkdownList.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/contextUtil.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/errorUtil.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/formatUtils.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/getOfferUrl.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/annualFee.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/boolean.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/boolean.spec.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/common.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/common.spec.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/creditBureaus.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/creditBureaus.spec.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/currency.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/currencyOrBasis.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/currencyOrBasis.spec.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/freeTrialDays.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/freeTrialDays.spec.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/fromListStringWithAnd.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/fromListStringWithAnd.spec.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/index.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/monthlyOrAnnualCurrency.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/monthlyOrAnnualCurrency.spec.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/percentage.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/percentage.spec.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/purchaseApr.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/purchaseApr.spec.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/rangeCurrency.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/rangeCurrencyByTime.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/rangeCurrencyByTime.spec.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/rangeCurrencyUnabbreviated.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/rangeCurrencyUnabbreviated.spec.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/rangeMonths.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/rangeMonths.spec.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/rangePercent.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/rangePercent.spec.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/recommendedCredit.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/recommendedCredit.spec.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/rewardsDisplay.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/rewardsDisplay.spec.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/index.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/types.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/offers/pipeline/src/sources/ratetables/offer-catalog/types/index.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/offers/pipeline/src/sources/ratetables/offer-catalog/types/oas/offer-catalog.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/offers/pipeline/src/sources/ratetables/types/index.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/ui/elements/src/components/MarkdownText/Abbreviation.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/ui/elements/src/components/MarkdownText/markdownPreprocessor.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/ui/elements/src/components/index.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/ui/elements/src/components/thumbor/index.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/ui/elements/src/components/thumbor/useSvgUriViewBox.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/ui/elements/src/components/thumbor/useSvgUriViewBox.test.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/ui/elements/src/index.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/ui/elements/src/offerCardAttributes.d.ts +0 -0
- /package/lib/typescript/{config → src/config}/mocks/cnfContext.d.ts +0 -0
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { Image, StyleSheet } from "react-native";
|
|
4
|
+
import { SvgUri } from "react-native-svg";
|
|
5
|
+
import useSvgUriViewBox from "./useSvgUriViewBox";
|
|
6
|
+
|
|
7
|
+
// Define props interface with required src, width, and height
|
|
8
|
+
|
|
9
|
+
// Helper to check if URL is an SVG
|
|
10
|
+
const isSvgUrl = url => {
|
|
11
|
+
return url.toLowerCase().endsWith(".svg");
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
// const removePrefixSlash = (path: string) => {
|
|
15
|
+
// if (path.charAt(0) === "/") return path.substring(1);
|
|
16
|
+
// return path;
|
|
17
|
+
// };
|
|
18
|
+
|
|
19
|
+
// const removeThumborPath = (path: string) => {
|
|
20
|
+
// return path.replace(/^\/?cnf\/thumbor(\/unsafe)?/, "");
|
|
21
|
+
// };
|
|
22
|
+
// const normalizeUrl = chain(removeThumborPath, removePrefixSlash);
|
|
23
|
+
|
|
24
|
+
// const shouldBypassThumbor = (url: URL, cnfBaseUrl: URL) => {
|
|
25
|
+
// if (isSvgUrl(url.pathname)) return true;
|
|
26
|
+
|
|
27
|
+
// // if props.offer.image.match('s3.amazonaws.com')
|
|
28
|
+
// if (
|
|
29
|
+
// url.hostname !== "s3.amazonaws.com" &&
|
|
30
|
+
// url.hostname !== cnfBaseUrl.hostname
|
|
31
|
+
// )
|
|
32
|
+
// return true;
|
|
33
|
+
|
|
34
|
+
// return false;
|
|
35
|
+
// };
|
|
36
|
+
|
|
37
|
+
//TODO(rauloaida): make thumbor always return exact dimensions and doing the fit itself
|
|
38
|
+
// const generateThumborLink = (
|
|
39
|
+
// url: string,
|
|
40
|
+
// width?: number,
|
|
41
|
+
// height?: number,
|
|
42
|
+
// meta = false
|
|
43
|
+
// ) => {
|
|
44
|
+
// const { cnfBaseUrl } = { cnfBaseUrl: "https://www.moneylion.dev" }; // getCNFContext().use().context.request;
|
|
45
|
+
// const parsedCnfBaseUrl = new URL(cnfBaseUrl);
|
|
46
|
+
// const parsedUrl = new URL(url, cnfBaseUrl);
|
|
47
|
+
// if (shouldBypassThumbor(parsedUrl, parsedCnfBaseUrl)) {
|
|
48
|
+
// return url;
|
|
49
|
+
// }
|
|
50
|
+
// const imagePath = normalizeUrl(url);
|
|
51
|
+
// const META = meta ? "meta" : undefined;
|
|
52
|
+
// const trim = "trim:top-left:35";
|
|
53
|
+
// const fit = `fit-in/${width ?? ""}x${height ?? ""}`;
|
|
54
|
+
// const filters = "filters:format(webp):background_color(white)";
|
|
55
|
+
|
|
56
|
+
// return sift([
|
|
57
|
+
// cnfBaseUrl,
|
|
58
|
+
// "cnf/thumbor/unsafe",
|
|
59
|
+
// META,
|
|
60
|
+
// trim,
|
|
61
|
+
// fit,
|
|
62
|
+
// filters,
|
|
63
|
+
// imagePath,
|
|
64
|
+
// ]).join("/");
|
|
65
|
+
// };
|
|
66
|
+
|
|
67
|
+
export const ThumborImage = ({
|
|
68
|
+
src,
|
|
69
|
+
width,
|
|
70
|
+
height,
|
|
71
|
+
...props
|
|
72
|
+
}) => {
|
|
73
|
+
// Check if the image is an SVG
|
|
74
|
+
const isSvg = isSvgUrl(src);
|
|
75
|
+
const {
|
|
76
|
+
viewBox,
|
|
77
|
+
computedWidth
|
|
78
|
+
} = useSvgUriViewBox(src, isSvg, height, width);
|
|
79
|
+
if (isSvg) {
|
|
80
|
+
// For SVG images, use SvgUri component
|
|
81
|
+
|
|
82
|
+
return /*#__PURE__*/React.createElement(SvgUri, {
|
|
83
|
+
uri: src,
|
|
84
|
+
width: computedWidth ?? width,
|
|
85
|
+
height: height,
|
|
86
|
+
style: [styles.svgStyle, props.style],
|
|
87
|
+
viewBox: viewBox
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
return /*#__PURE__*/React.createElement(Image, _extends({}, props, {
|
|
91
|
+
width: computedWidth ?? width,
|
|
92
|
+
height: height,
|
|
93
|
+
source: {
|
|
94
|
+
uri: src
|
|
95
|
+
}
|
|
96
|
+
}));
|
|
97
|
+
};
|
|
98
|
+
const styles = StyleSheet.create({
|
|
99
|
+
svgStyle: {
|
|
100
|
+
alignSelf: "flex-start"
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Image","StyleSheet","SvgUri","useSvgUriViewBox","isSvgUrl","url","toLowerCase","endsWith","ThumborImage","src","width","height","props","isSvg","viewBox","computedWidth","createElement","uri","style","styles","svgStyle","_extends","source","create","alignSelf"],"sourceRoot":"../../../../../../../../src","sources":["capabilities/ui/elements/src/components/thumbor/index.tsx"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,KAAK,EAAmBC,UAAU,QAAQ,cAAc;AACjE,SAASC,MAAM,QAAQ,kBAAkB;AACzC,OAAOC,gBAAgB,MAAM,oBAAoB;;AAEjD;;AAOA;AACA,MAAMC,QAAQ,GAAIC,GAAW,IAAc;EAC1C,OAAOA,GAAG,CAACC,WAAW,CAAC,CAAC,CAACC,QAAQ,CAAC,MAAM,CAAC;AAC1C,CAAC;;AAED;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;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;;AAEA,OAAO,MAAMC,YAAY,GAAGA,CAAC;EAC5BC,GAAG;EACHC,KAAK;EACLC,MAAM;EACN,GAAGC;AACe,CAAC,KAAK;EACxB;EACA,MAAMC,KAAK,GAAGT,QAAQ,CAACK,GAAG,CAAC;EAE3B,MAAM;IAAEK,OAAO;IAAEC;EAAc,CAAC,GAAGZ,gBAAgB,CAClDM,GAAG,EACHI,KAAK,EACLF,MAAM,EACND,KACD,CAAC;EAED,IAAIG,KAAK,EAAE;IACV;;IAEA,oBACCd,KAAA,CAAAiB,aAAA,CAACd,MAAM;MACNe,GAAG,EAAER,GAAI;MACTC,KAAK,EAAEK,aAAa,IAAIL,KAAM;MAC9BC,MAAM,EAAEA,MAAO;MACfO,KAAK,EAAE,CAACC,MAAM,CAACC,QAAQ,EAAER,KAAK,CAACM,KAAK,CAAE;MACtCJ,OAAO,EAAEA;IAAQ,CACjB,CAAC;EAEJ;EAEA,oBACCf,KAAA,CAAAiB,aAAA,CAAChB,KAAK,EAAAqB,QAAA,KACDT,KAAK;IACTF,KAAK,EAAEK,aAAa,IAAIL,KAAM;IAC9BC,MAAM,EAAEA,MAAO;IACfW,MAAM,EAAE;MAAEL,GAAG,EAAER;IAAI;EAAE,EACrB,CAAC;AAEJ,CAAC;AAED,MAAMU,MAAM,GAAGlB,UAAU,CAACsB,MAAM,CAAC;EAChCH,QAAQ,EAAE;IACTI,SAAS,EAAE;EACZ;AACD,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { useEffect, useState } from "react";
|
|
2
|
+
import { Image } from "react-native";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Support svg images urls that do not have a view box
|
|
6
|
+
* See: https://github.com/software-mansion/react-native-svg/issues/1202#issuecomment-1891110599
|
|
7
|
+
*
|
|
8
|
+
* This will return the default SVG ViewBox from an SVG URI
|
|
9
|
+
* @param uri - uri to fetch
|
|
10
|
+
* @param isSVG - check to see if the uri is an svg
|
|
11
|
+
* @returns viewbox string
|
|
12
|
+
*/
|
|
13
|
+
export default function useSvgUriViewBox(uri, isSVG, height, width) {
|
|
14
|
+
const [viewBox, setViewBox] = useState(undefined);
|
|
15
|
+
const [computedWidth, setComputedWidth] = useState(undefined);
|
|
16
|
+
useEffect(() => {
|
|
17
|
+
if (!isSVG) {
|
|
18
|
+
Image.getSize(uri, (_width, _height) => {
|
|
19
|
+
const calculatedWidth = _width / _height * height;
|
|
20
|
+
// Set the computed width
|
|
21
|
+
setComputedWidth(Math.min(calculatedWidth, width));
|
|
22
|
+
}, error => console.error("Error fetching Logo Image:", error));
|
|
23
|
+
} else {
|
|
24
|
+
fetch(uri).then(response => response.text()).then(svgContent => {
|
|
25
|
+
// Get viewBox directly if available
|
|
26
|
+
const viewBoxMatch = svgContent.match(/viewBox="([^"]+)"/);
|
|
27
|
+
// Extract width and height with regex that handles units
|
|
28
|
+
const widthMatch = svgContent.match(/width="([^"]+)"/);
|
|
29
|
+
const heightMatch = svgContent.match(/height="([^"]+)"/);
|
|
30
|
+
|
|
31
|
+
// Calculate the aspect ratio from the container dimensions
|
|
32
|
+
const containerAspectRatio = width / height;
|
|
33
|
+
|
|
34
|
+
// Extract numeric values from the SVG dimensions, removing any units
|
|
35
|
+
let svgWidth = widthMatch !== null && widthMatch !== void 0 && widthMatch[1] ? parseFloat(widthMatch[1]) : width;
|
|
36
|
+
let svgHeight = heightMatch !== null && heightMatch !== void 0 && heightMatch[1] ? parseFloat(heightMatch[1]) : height;
|
|
37
|
+
|
|
38
|
+
// Calculate the SVG's natural aspect ratio
|
|
39
|
+
const svgAspectRatio = svgWidth / svgHeight;
|
|
40
|
+
|
|
41
|
+
// Calculate the computed width based on the aspect ratio
|
|
42
|
+
// If the SVG has a different aspect ratio than the container,
|
|
43
|
+
// we need to adjust the width to maintain proportions
|
|
44
|
+
let calculatedWidth;
|
|
45
|
+
if (widthMatch !== null && widthMatch !== void 0 && widthMatch[1] && heightMatch !== null && heightMatch !== void 0 && heightMatch[1]) {
|
|
46
|
+
// If SVG has explicit dimensions, use its aspect ratio
|
|
47
|
+
calculatedWidth = height * svgAspectRatio;
|
|
48
|
+
} else if (viewBoxMatch !== null && viewBoxMatch !== void 0 && viewBoxMatch[1]) {
|
|
49
|
+
// If SVG has a viewBox, parse it to get dimensions
|
|
50
|
+
const viewBoxParts = viewBoxMatch[1].split(/\s+/).map(parseFloat);
|
|
51
|
+
if (viewBoxParts.length === 4 && viewBoxParts[2] !== undefined && !isNaN(viewBoxParts[2]) && viewBoxParts[3] !== undefined && !isNaN(viewBoxParts[3]) && viewBoxParts[3] !== 0 // Avoid division by zero
|
|
52
|
+
) {
|
|
53
|
+
const viewBoxWidth = viewBoxParts[2];
|
|
54
|
+
const viewBoxHeight = viewBoxParts[3];
|
|
55
|
+
const viewBoxAspectRatio = viewBoxWidth / viewBoxHeight;
|
|
56
|
+
calculatedWidth = height * viewBoxAspectRatio;
|
|
57
|
+
} else {
|
|
58
|
+
// Fallback to container aspect ratio
|
|
59
|
+
calculatedWidth = height * containerAspectRatio;
|
|
60
|
+
}
|
|
61
|
+
} else {
|
|
62
|
+
// Fallback to container width if no dimensions available
|
|
63
|
+
calculatedWidth = width;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
// Set the computed width
|
|
67
|
+
setComputedWidth(Math.min(calculatedWidth, width));
|
|
68
|
+
|
|
69
|
+
// Set the viewBox
|
|
70
|
+
if (viewBoxMatch !== null && viewBoxMatch !== void 0 && viewBoxMatch[1]) {
|
|
71
|
+
setViewBox(viewBoxMatch[1]);
|
|
72
|
+
} else if (widthMatch !== null && widthMatch !== void 0 && widthMatch[1] && heightMatch !== null && heightMatch !== void 0 && heightMatch[1]) {
|
|
73
|
+
// Only create viewBox if we have valid numeric values
|
|
74
|
+
if (!isNaN(svgWidth) && !isNaN(svgHeight)) {
|
|
75
|
+
setViewBox(`0 0 ${svgWidth} ${svgHeight}`);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}).catch(error => console.error("Error fetching Logo Image:", error));
|
|
79
|
+
}
|
|
80
|
+
}, [height, isSVG, uri, width]);
|
|
81
|
+
return {
|
|
82
|
+
viewBox,
|
|
83
|
+
computedWidth
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
//# sourceMappingURL=useSvgUriViewBox.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useEffect","useState","Image","useSvgUriViewBox","uri","isSVG","height","width","viewBox","setViewBox","undefined","computedWidth","setComputedWidth","getSize","_width","_height","calculatedWidth","Math","min","error","console","fetch","then","response","text","svgContent","viewBoxMatch","match","widthMatch","heightMatch","containerAspectRatio","svgWidth","parseFloat","svgHeight","svgAspectRatio","viewBoxParts","split","map","length","isNaN","viewBoxWidth","viewBoxHeight","viewBoxAspectRatio","catch"],"sourceRoot":"../../../../../../../../src","sources":["capabilities/ui/elements/src/components/thumbor/useSvgUriViewBox.ts"],"mappings":"AAAA,SAASA,SAAS,EAAEC,QAAQ,QAAQ,OAAO;AAC3C,SAASC,KAAK,QAAQ,cAAc;;AAEpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,SAASC,gBAAgBA,CACvCC,GAAW,EACXC,KAAc,EACdC,MAAc,EACdC,KAAa,EAIZ;EACD,MAAM,CAACC,OAAO,EAAEC,UAAU,CAAC,GAAGR,QAAQ,CAAqBS,SAAS,CAAC;EACrE,MAAM,CAACC,aAAa,EAAEC,gBAAgB,CAAC,GAAGX,QAAQ,CACjDS,SACD,CAAC;EAEDV,SAAS,CAAC,MAAM;IACf,IAAI,CAACK,KAAK,EAAE;MACXH,KAAK,CAACW,OAAO,CACZT,GAAG,EACH,CAACU,MAAM,EAAEC,OAAO,KAAK;QACpB,MAAMC,eAAe,GAAIF,MAAM,GAAGC,OAAO,GAAIT,MAAM;QACnD;QACAM,gBAAgB,CAACK,IAAI,CAACC,GAAG,CAACF,eAAe,EAAET,KAAK,CAAC,CAAC;MAC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AAO,CAACD,KAAK,CAAC,4BAA4B,EAAEA,KAAK,CAAC,CAAC;IACvE;EACD,CAAC,EAAE,CAACb,MAAM,EAAED,KAAK,EAAED,GAAG,EAAEG,KAAK,CAAC,CAAC;EAE/B,OAAO;IAAEC,OAAO;IAAEG;EAAc,CAAC;AAClC","ignoreList":[]}
|
|
@@ -0,0 +1,43 @@
|
|
|
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
|
+
//# sourceMappingURL=useSvgUriViewBox.test.js.map
|
package/lib/module/capabilities/ui/elements/src/components/thumbor/useSvgUriViewBox.test.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
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","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["ThumborImage"],"sourceRoot":"../../../../../../src","sources":["capabilities/ui/elements/src/index.ts"],"mappings":"AAAA,SAASA,YAAY,QAAQ,cAAc;AAE3C,cAAc,uBAAuB","ignoreList":[]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export const offerCardAttributes = (attributes, enabled = true) => {
|
|
2
|
+
const {
|
|
3
|
+
style = {},
|
|
4
|
+
...rest
|
|
5
|
+
} = attributes || {};
|
|
6
|
+
const borderRadius = enabled ? "16px" : "0px";
|
|
7
|
+
return {
|
|
8
|
+
...rest,
|
|
9
|
+
style: {
|
|
10
|
+
...style,
|
|
11
|
+
borderRadius,
|
|
12
|
+
overflow: "hidden"
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=offerCardAttributes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["offerCardAttributes","attributes","enabled","style","rest","borderRadius","overflow"],"sourceRoot":"../../../../../../src","sources":["capabilities/ui/elements/src/offerCardAttributes.ts"],"mappings":"AAcA,OAAO,MAAMA,mBAAmB,GAAGA,CAGlCC,UAAgC,EAChCC,OAAO,GAAG,IAAI,KACW;EACzB,MAAM;IAAEC,KAAK,GAAG,CAAC,CAAC;IAAE,GAAGC;EAAK,CAAC,GAAGH,UAAU,IAAI,CAAC,CAAC;EAChD,MAAMI,YAAY,GAAGH,OAAO,GAAG,MAAM,GAAG,KAAK;EAE7C,OAAO;IACN,GAAGE,IAAI;IACPD,KAAK,EAAE;MAAE,GAAGA,KAAK;MAAEE,YAAY;MAAEC,QAAQ,EAAE;IAAS;EACrD,CAAC;AACF,CAAC","ignoreList":[]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// import { memo } from "react";
|
|
2
2
|
// import { VideoContent, type VideoContentProps } from "./VideoContent";
|
|
3
|
-
// import { GenericOfferVertical } from "../../../../capabilities/ui/elements/src";
|
|
3
|
+
// import { GenericOfferVertical } from "../../../../src/capabilities/ui/elements/src";
|
|
4
4
|
// import React from "react";
|
|
5
5
|
// import Text from "../../Text";
|
|
6
6
|
// import { View, StyleSheet } from "react-native";
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { MarkdownText } from "../../../../../capabilities/ui/elements/src/components/MarkdownText";
|
|
3
2
|
import Text from "../../../Text";
|
|
4
3
|
import { StyleSheet, View } from "react-native";
|
|
5
|
-
|
|
4
|
+
import { MarkdownText } from "../../../../capabilities/ui/elements/src/components/MarkdownText";
|
|
6
5
|
// Custom function to capitalize first letter but preserve other capitalization
|
|
7
6
|
function smartCapitalize(text) {
|
|
8
7
|
// For other words, capitalize first letter of each word
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","
|
|
1
|
+
{"version":3,"names":["React","Text","StyleSheet","View","MarkdownText","smartCapitalize","text","split","map","word","length","charAt","toUpperCase","slice","join","VerticalStat","props","createElement","style","styles","verticalStatContainer","variant","color","weight","String","content","trim","label","Stat","isVertical","isHighlighted","isNull","horizontalStatContainer","highlightedContainer","create","gap","flexDirection","justifyContent","flexWrap","padding","backgroundColor","borderRadius"],"sourceRoot":"../../../../../../src","sources":["components/Common/BaseOfferCard/Stat/Stat.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,IAAI,MAAM,eAAe;AAChC,SAASC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAC/C,SAASC,YAAY,QAAQ,kEAAkE;AAQ/F;AACA,SAASC,eAAeA,CAACC,IAAY,EAAU;EAC9C;EACA,OAAOA,IAAI,CACTC,KAAK,CAAC,GAAG,CAAC,CACVC,GAAG,CAAEC,IAAI,IAAK;IACd,IAAIA,IAAI,CAACC,MAAM,KAAK,CAAC,EAAE,OAAOD,IAAI;IAClC,OAAOA,IAAI,CAACE,MAAM,CAAC,CAAC,CAAC,CAACC,WAAW,CAAC,CAAC,GAAGH,IAAI,CAACI,KAAK,CAAC,CAAC,CAAC;EACpD,CAAC,CAAC,CACDC,IAAI,CAAC,GAAG,CAAC;AACZ;AAEA,MAAMC,YAAY,GAAIC,KAAgB,IAAK;EAC1C,oBACChB,KAAA,CAAAiB,aAAA,CAACd,IAAI;IAACe,KAAK,EAAEC,MAAM,CAACC;EAAsB,gBACzCpB,KAAA,CAAAiB,aAAA,CAAChB,IAAI;IAACoB,OAAO,EAAC,YAAY;IAACC,KAAK,EAAC,SAAS;IAACC,MAAM,EAAE;EAAO,GACxDC,MAAM,CAACR,KAAK,CAACS,O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GAAG,EAAE,CAAC;IACNC,aAAa,EAAE,KAAK;IACpBC,cAAc,EAAE,eAAe;IAC/BC,QAAQ,EAAE;EACX,CAAC;EACDL,oBAAoB,EAAE;IACrBM,OAAO,EAAE,CAAC;IACVC,eAAe,EAAE,SAAS;IAAE;IAC5BC,YAAY,EAAE,CAAC,CAAE;EAClB;AACD,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
2
2
|
import React from "react";
|
|
3
|
-
import { ThumborImage } from "../../../../capabilities/ui/elements/src";
|
|
4
|
-
|
|
5
|
-
import {
|
|
6
|
-
import { arrayToMarkdownList } from "../../../../capabilities/offer-catalog/src";
|
|
3
|
+
import { ThumborImage } from "../../../../src/capabilities/ui/elements/src";
|
|
4
|
+
import { MarkdownText } from "../../../../src/capabilities/ui/elements/src/components/MarkdownText";
|
|
5
|
+
import { arrayToMarkdownList } from "../../../../src/capabilities/offer-catalog/src";
|
|
7
6
|
import { StatsContainer } from "./StatsContainer";
|
|
8
7
|
import { Content } from "./Content";
|
|
9
8
|
import { Stat } from "./Stat";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","ThumborImage","MarkdownText","arrayToMarkdownList","StatsContainer","Content","Stat","Button","Divider","Text","View","StyleSheet","CardWidth","BaseOfferCard","children","showBorder","rest","createElement","_extends","borderColor","undefined","direction","backgroundColor","width","gap","style","styles","baseOfferCard","Container","maxHeight","container","Tip","variant","color","weight","tip","CreditCardImage","props","calculatedWidth","cardImageAspectRatio","calculatedHeight","height","resizeMode","CreditCardContainer","creditCardContainer","PartnerContainer","partnerContainer","PartnerImage","TopContainer","viewProps","TopBar","topBar","ProductType","ChosenBy","chosenBy","alignItems","BottomBar","bottomBar","Headline","numberOfLines","Description","DescriptionPoints","descriptionPoints","length","content","DescriptionHandler","contentDescription","hasDivider","renderContentDescription","CallToAction","Stats","create","justifyContent","padding","flexDirection","display","flexGrow","textAlign","borderRadius","overflow","flex","paddingHorizontal","paddingVertical","marginTop"],"sourceRoot":"../../../../../src","sources":["components/Common/BaseOfferCard/index.tsx"],"mappings":";AAAA,OAAOA,KAAK,MAA+B,OAAO;AAElD,SAASC,YAAY,QAAQ,
|
|
1
|
+
{"version":3,"names":["React","ThumborImage","MarkdownText","arrayToMarkdownList","StatsContainer","Content","Stat","Button","Divider","Text","View","StyleSheet","CardWidth","BaseOfferCard","children","showBorder","rest","createElement","_extends","borderColor","undefined","direction","backgroundColor","width","gap","style","styles","baseOfferCard","Container","maxHeight","container","Tip","variant","color","weight","tip","CreditCardImage","props","calculatedWidth","cardImageAspectRatio","calculatedHeight","height","resizeMode","CreditCardContainer","creditCardContainer","PartnerContainer","partnerContainer","PartnerImage","TopContainer","viewProps","TopBar","topBar","ProductType","ChosenBy","chosenBy","alignItems","BottomBar","bottomBar","Headline","numberOfLines","Description","DescriptionPoints","descriptionPoints","length","content","DescriptionHandler","contentDescription","hasDivider","renderContentDescription","CallToAction","Stats","create","justifyContent","padding","flexDirection","display","flexGrow","textAlign","borderRadius","overflow","flex","paddingHorizontal","paddingVertical","marginTop"],"sourceRoot":"../../../../../src","sources":["components/Common/BaseOfferCard/index.tsx"],"mappings":";AAAA,OAAOA,KAAK,MAA+B,OAAO;AAElD,SAASC,YAAY,QAAQ,8CAA8C;AAC3E,SAASC,YAAY,QAAQ,sEAAsE;AACnG,SAASC,mBAAmB,QAAQ,gDAAgD;AACpF,SAASC,cAAc,QAAQ,kBAAkB;AACjD,SAASC,OAAO,QAAQ,WAAW;AACnC,SAASC,IAAI,QAAQ,QAAQ;AAC7B,OAAOC,MAAM,MAAM,cAAc;AACjC,OAAOC,OAAO,MAAM,eAAe;AACnC,OAAOC,IAAI,MAA0B,YAAY;AACjD,OAAOC,I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U,CAAC4D,MAAM,CAAC;EAChCzC,SAAS,EAAE;IACV0C,cAAc,EAAE,eAAe;IAC/BC,OAAO,EAAE,EAAE;IACXC,aAAa,EAAE,QAAQ;IACvBC,OAAO,EAAE,MAAM;IACfC,QAAQ,EAAE;EACX,CAAC;EACDzC,GAAG,EAAE;IAAE0C,SAAS,EAAE;EAAS,CAAC;EAC5BjC,mBAAmB,EAAE;IACpBW,UAAU,EAAE;EACb,CAAC;EACDT,gBAAgB,EAAE;IAAES,UAAU,EAAE;EAAa,CAAC;EAC9C5B,aAAa,EAAE;IACdmD,YAAY,EAAE,EAAE;IAChBC,QAAQ,EAAE,QAAQ;IAClBC,IAAI,EAAE,CAAC;IACPL,OAAO,EAAE;EACV,CAAC;EACDxB,MAAM,EAAE;IACP8B,iBAAiB,EAAE,EAAE;IACrBC,eAAe,EAAE,CAAC;IAClBV,cAAc,EAAE,eAAe;IAC/BjB,UAAU,EAAE;EACb,CAAC;EACDE,SAAS,EAAE;IACV0B,SAAS,EAAE;EACZ,CAAC;EACD7B,QAAQ,EAAE;IAAEkB,cAAc,EAAE,QAAQ;IAAEjB,UAAU,EAAE;EAAS;AAC5D,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { statsToElementPropsBuilder } from "../../../../capabilities/offer-catalog/src/utils/stats";
|
|
1
|
+
import { statsToElementPropsBuilder } from "../../../../src/capabilities/offer-catalog/src/utils/stats";
|
|
2
2
|
export const makeCreditCardOfferStats = productTypeBuilder => offer => {
|
|
3
3
|
const stats = statsToElementPropsBuilder(productTypeBuilder.stats, offer);
|
|
4
4
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["statsToElementPropsBuilder","makeCreditCardOfferStats","productTypeBuilder","offer","stats"],"sourceRoot":"../../../../../src","sources":["components/Layouts/CreditCardOfferCard/statsBuilder.tsx"],"mappings":"AAEA,SAASA,0BAA0B,QAAQ,
|
|
1
|
+
{"version":3,"names":["statsToElementPropsBuilder","makeCreditCardOfferStats","productTypeBuilder","offer","stats"],"sourceRoot":"../../../../../src","sources":["components/Layouts/CreditCardOfferCard/statsBuilder.tsx"],"mappings":"AAEA,SAASA,0BAA0B,QAAQ,4DAA4D;AAEvG,OAAO,MAAMC,wBAAwB,GACnCC,kBAAuC,IAAMC,KAAgB,IAAK;EAClE,MAAMC,KAAK,GAAGJ,0BAA0B,CAACE,kBAAkB,CAACE,KAAK,EAAED,KAAK,CAAC;EAEzE,OAAO;IAAEC;EAAM,CAAC;AACjB,CAAC","ignoreList":[]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { statsToElementPropsBuilder } from "../../../../capabilities/offer-catalog/src/utils/stats";
|
|
1
|
+
import { statsToElementPropsBuilder } from "../../../../src/capabilities/offer-catalog/src/utils/stats";
|
|
2
2
|
export const makeDefaultOfferCardStats = productTypeBuilder => offer => {
|
|
3
3
|
const stats = statsToElementPropsBuilder(productTypeBuilder.stats, offer);
|
|
4
4
|
const topStats = statsToElementPropsBuilder(productTypeBuilder.topStats, offer);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["statsToElementPropsBuilder","makeDefaultOfferCardStats","productTypeBuilder","offer","stats","topStats"],"sourceRoot":"../../../../../src","sources":["components/Layouts/DefaultOfferCard/statsBuilder.tsx"],"mappings":"AAEA,SAASA,0BAA0B,QAAQ,
|
|
1
|
+
{"version":3,"names":["statsToElementPropsBuilder","makeDefaultOfferCardStats","productTypeBuilder","offer","stats","topStats"],"sourceRoot":"../../../../../src","sources":["components/Layouts/DefaultOfferCard/statsBuilder.tsx"],"mappings":"AAEA,SAASA,0BAA0B,QAAQ,4DAA4D;AAEvG,OAAO,MAAMC,yBAAyB,GACpCC,kBAAoC,IAAMC,KAAgB,IAAK;EAC/D,MAAMC,KAAK,GAAGJ,0BAA0B,CAACE,kBAAkB,CAACE,KAAK,EAAED,KAAK,CAAC;EACzE,MAAME,QAAQ,GAAGL,0BAA0B,CAC1CE,kBAAkB,CAACG,QAAQ,EAC3BF,KACD,CAAC;EAED,OAAO;IAAEC,KAAK;IAAEC;EAAS,CAAC;AAC3B,CAAC","ignoreList":[]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { arrayToMarkdownList } from "../../../capabilities/offer-catalog/src/utils/arrayToMarkdownList";
|
|
3
2
|
import View from "../View";
|
|
4
3
|
import Text from "../Text";
|
|
5
|
-
import { MarkdownText } from "
|
|
4
|
+
import { MarkdownText } from "../../capabilities/ui/elements/src/components/MarkdownText";
|
|
5
|
+
import { arrayToMarkdownList } from "../../capabilities/offer-catalog/src";
|
|
6
6
|
export function DescriptionPoints({
|
|
7
7
|
descriptionPoints
|
|
8
8
|
}) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","
|
|
1
|
+
{"version":3,"names":["React","View","Text","MarkdownText","arrayToMarkdownList","DescriptionPoints","descriptionPoints","createElement","gap","variant","weight","color","content"],"sourceRoot":"../../../../src","sources":["components/Modal/DescriptionPoints.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,IAAI,MAAM,SAAS;AAC1B,OAAOC,IAAI,MAAM,SAAS;AAC1B,SAASC,YAAY,QAAQ,4DAA4D;AACzF,SAASC,mBAAmB,QAAQ,sCAAsC;AAE1E,OAAO,SAASC,iBAAiBA,CAAC;EACjCC;AAGD,CAAC,EAAE;EACF,oBACCN,KAAA,CAAAO,aAAA,CAACN,IAAI;IAACO,GAAG,EAAE;EAAE,gBACZR,KAAA,CAAAO,aAAA,CAACL,IAAI;IAACO,OAAO,EAAE,QAAS;IAACC,MAAM,EAAE,MAAO;IAACC,KAAK,EAAE;EAAU,GAAC,eAErD,CAAC,eACPX,KAAA,CAAAO,aAAA,CAACJ,YAAY;IACZM,OAAO,EAAE,QAAS;IAClBE,KAAK,EAAE,SAAU;IACjBC,OAAO,EAAER,mBAAmB,CAACE,iBAAiB;EAAE,CAChD,CACI,CAAC;AAET","ignoreList":[]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { MarkdownText } from "../../../capabilities/ui/elements/src/components/MarkdownText";
|
|
3
2
|
import Text from "../Text";
|
|
4
3
|
import View from "../View";
|
|
4
|
+
import { MarkdownText } from "../../capabilities/ui/elements/src/components/MarkdownText";
|
|
5
5
|
export function Disclaimer({
|
|
6
6
|
disclaimer
|
|
7
7
|
}) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","
|
|
1
|
+
{"version":3,"names":["React","Text","View","MarkdownText","Disclaimer","disclaimer","createElement","gap","variant","weight","color","content"],"sourceRoot":"../../../../src","sources":["components/Modal/Disclaimer.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,IAAI,MAAM,SAAS;AAC1B,OAAOC,IAAI,MAAM,SAAS;AAC1B,SAASC,YAAY,QAAQ,4DAA4D;AAEzF,OAAO,SAASC,UAAUA,CAAC;EAAEC;AAAmC,CAAC,EAAE;EAClE,oBACCL,KAAA,CAAAM,aAAA,CAACJ,IAAI;IAACK,GAAG,EAAE;EAAG,gBACbP,KAAA,CAAAM,aAAA,CAACL,IAAI;IAACO,OAAO,EAAE,QAAS;IAACC,MAAM,EAAE,MAAO;IAACC,KAAK,EAAE;EAAU,GAAC,qBAErD,CAAC,eACPV,KAAA,CAAAM,aAAA,CAACH,YAAY;IAACK,OAAO,EAAE,QAAS;IAACE,KAAK,EAAE,SAAU;IAACC,OAAO,EAAEN;EAAW,CAAE,CACpE,CAAC;AAET","ignoreList":[]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useEffect, useState } from "react";
|
|
2
|
-
import { localCnfContext } from "
|
|
2
|
+
import { localCnfContext } from "../config/mocks/cnfContext";
|
|
3
3
|
import { Text } from "react-native";
|
|
4
4
|
import { getPageData } from "../pageData";
|
|
5
5
|
import { DynamicOffersContainer, DynamicOfferSkeleton } from "./DynamicOffers/DynamicOffersContainer";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useEffect","useState","localCnfContext","Text","getPageData","DynamicOffersContainer","DynamicOfferSkeleton","ThemeProvider","EventHandlerProvider","getConfigApiBaseUrl","getDefaultPaletteColor","getConfiguration","channel","zone","subAccountToken","isDev","url","headers","Authorization","response","fetch","ok","Error","data","json","error","console","MoneyLionOfferCarousel","props","_context$brand$palett","fontFamily","onInitialize","onRateTableSubmit","onRateTableResponse","onOfferDisplayInViewport","onOfferClick","onOfferDetailsPageOpen","onOfferDetailsPageClose","eventHandlers","context","setContext","isLoading","setIsLoading","setError","pageData","setPageData","fetchConfiguration","serializableContext","err","timestamp","Date","toISOString","fetchPageData","params","isError","Boolean","offers","rateTableUuid","leadUuid","createElement","displayLayout","message","shouldHideFooter","showProductTypeLabel","showBorder","title","config","palette","brand","positive"],"sourceRoot":"../../../src","sources":["components/MoneyLionOfferCarousel.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,SAAS,EAAEC,QAAQ,QAAQ,OAAO;AAClD,SAASC,eAAe,QAAQ
|
|
1
|
+
{"version":3,"names":["React","useEffect","useState","localCnfContext","Text","getPageData","DynamicOffersContainer","DynamicOfferSkeleton","ThemeProvider","EventHandlerProvider","getConfigApiBaseUrl","getDefaultPaletteColor","getConfiguration","channel","zone","subAccountToken","isDev","url","headers","Authorization","response","fetch","ok","Error","data","json","error","console","MoneyLionOfferCarousel","props","_context$brand$palett","fontFamily","onInitialize","onRateTableSubmit","onRateTableResponse","onOfferDisplayInViewport","onOfferClick","onOfferDetailsPageOpen","onOfferDetailsPageClose","eventHandlers","context","setContext","isLoading","setIsLoading","setError","pageData","setPageData","fetchConfiguration","serializableContext","err","timestamp","Date","toISOString","fetchPageData","params","isError","Boolean","offers","rateTableUuid","leadUuid","createElement","displayLayout","message","shouldHideFooter","showProductTypeLabel","showBorder","title","config","palette","brand","positive"],"sourceRoot":"../../../src","sources":["components/MoneyL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AAC,CAAC;EAC1C;EAEA,IAAI,CAACyC,QAAQ,EAAE;IACd,oBAAO7C,KAAA,CAAA4D,aAAA,CAACrD,oBAAoB;MAACsD,aAAa,EAAE;IAAQ,CAAE,CAAC;EACxD;EAEA,MAAM;IACLE,gBAAgB;IAChBF,aAAa;IACbG,oBAAoB;IACpBC,UAAU;IACVC,KAAK;IACLT,MAAM;IACNC,aAAa;IACbC;EACD,CAAC,GAAGd,QAAQ;EAEZ,MAAMsB,MAAyB,GAAG;IACjCV,MAAM;IACNM,gBAAgB;IAChBF,aAAa;IACbG,oBAAoB;IACpBC,UAAU;IACVC;EACD,CAAC;EAED,MAAME,OAAO,GAAG;IACf,GAAG5B,OAAO,CAAC6B,KAAK,CAACD,OAAO;IACxBE,QAAQ,EACP,EAAAxC,qBAAA,GAAAU,OAAO,CAAC6B,KAAK,CAACD,OAAO,cAAAtC,qBAAA,uBAArBA,qBAAA,CAAuBwC,QAAQ,KAAI3D,sBAAsB,CAAC,UAAU;EACtE,CAAC;EAED,oBACCX,KAAA,CAAA4D,aAAA,CAACpD,aAAa;IAAC4D,OAAO,EAAEA,OAAQ;IAACrC,UAAU,EAAEA;EAAW,gBACvD/B,KAAA,CAAA4D,aAAA,CAACnD,oBAAoB;IACpB8B,aAAa,EAAE;MACd,GAAGA,aAAa;MAChBmB,aAAa;MACbC;IACD;EAAE,gBAEF3D,KAAA,CAAA4D,aAAA,CAACtD,sBAAsB;IAAC6D,MAAM,EAAEA;EAAO,CAAE,CACpB,CACR,CAAC;AAElB,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
export const localCnfContext = {
|
|
2
|
+
app: {
|
|
3
|
+
id: "65e0b569a53bf0a3cdb25886",
|
|
4
|
+
name: "apps/dynamic-offers",
|
|
5
|
+
registry: "590350749517.dkr.ecr.us-east-1.amazonaws.com",
|
|
6
|
+
repository: "apps/dynamic-offers",
|
|
7
|
+
syncStatus: "200",
|
|
8
|
+
createdAt: "2024-02-29T16:48:41.789Z",
|
|
9
|
+
updatedAt: "2024-03-14T21:25:57.457Z",
|
|
10
|
+
syncTimestamp: "2024-03-14T21:25:57.358Z"
|
|
11
|
+
},
|
|
12
|
+
brand: {
|
|
13
|
+
id: "65e126f2e89b8cb90c7b4c9c",
|
|
14
|
+
displayName: "Fiona",
|
|
15
|
+
domain: "fiona.com",
|
|
16
|
+
logos: {
|
|
17
|
+
horizontal: {
|
|
18
|
+
id: "65ee470fe89b8cb90c7b50bb",
|
|
19
|
+
autoCrop: false,
|
|
20
|
+
prefix: "media/images",
|
|
21
|
+
filename: "fiona-logo.svg",
|
|
22
|
+
mimeType: "image/svg+xml",
|
|
23
|
+
filesize: 1210,
|
|
24
|
+
width: 94,
|
|
25
|
+
height: 28,
|
|
26
|
+
createdAt: "2024-03-10T23:49:35.801Z",
|
|
27
|
+
updatedAt: "2024-03-10T23:49:36.027Z",
|
|
28
|
+
aiInference: {
|
|
29
|
+
status: "error",
|
|
30
|
+
error: "AggregateError with 2 errors"
|
|
31
|
+
},
|
|
32
|
+
url: "/cnf/thumbor/unsafe/images/fiona-logo.svg"
|
|
33
|
+
},
|
|
34
|
+
icon: null
|
|
35
|
+
},
|
|
36
|
+
type: "business",
|
|
37
|
+
palette: {
|
|
38
|
+
promotional: "#592b86",
|
|
39
|
+
generation: "provided",
|
|
40
|
+
colorScheme: "balanced",
|
|
41
|
+
positive: "#ec8a07",
|
|
42
|
+
critical: "#ce0202",
|
|
43
|
+
highlight: "#ec8a07",
|
|
44
|
+
neutral: "#14181f"
|
|
45
|
+
},
|
|
46
|
+
isLicensed: true,
|
|
47
|
+
allowedMarks: {
|
|
48
|
+
logo: true,
|
|
49
|
+
name: true
|
|
50
|
+
},
|
|
51
|
+
links: {
|
|
52
|
+
home: "https://fiona.com/",
|
|
53
|
+
terms: "https://fiona.com/terms",
|
|
54
|
+
support: "https://fiona.com/support",
|
|
55
|
+
privacy: "https://fiona.com/privacy"
|
|
56
|
+
},
|
|
57
|
+
createdAt: "2024-03-01T00:53:06.173Z",
|
|
58
|
+
updatedAt: "2024-04-06T03:04:26.443Z"
|
|
59
|
+
},
|
|
60
|
+
configuration: {
|
|
61
|
+
configuration: {
|
|
62
|
+
hideFooter: false,
|
|
63
|
+
enableUseCachedOffers: true,
|
|
64
|
+
defaultProductTypeSlug: "EarnedWageAccess",
|
|
65
|
+
partnersOverrideDefinition: [{
|
|
66
|
+
id: "674e142cc81f48523a394a4c",
|
|
67
|
+
overrideUrl: "https://www.moneylion.com",
|
|
68
|
+
financialInstitutionUuid: "ce913ded-e178-4bb8-b7ba-19692c914f73"
|
|
69
|
+
}],
|
|
70
|
+
productTypesDefinition: [{
|
|
71
|
+
id: "66f173b81b82e0868bd026be",
|
|
72
|
+
partnerPageUrl: "https://www.moneylion.com",
|
|
73
|
+
productTypeSlug: "EarnedWageAccess"
|
|
74
|
+
}]
|
|
75
|
+
},
|
|
76
|
+
app: {
|
|
77
|
+
name: "@apps/dynamic-offers"
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
request: {
|
|
81
|
+
zone: "cnf-loans",
|
|
82
|
+
channel: "fiona",
|
|
83
|
+
path: "compare/b9e0b935-45b8-4978-aef2-b96eb5bb250b?view=relevant",
|
|
84
|
+
pathname: "/compare/b9e0b935-45b8-4978-aef2-b96eb5bb250b",
|
|
85
|
+
query: "view=relevant",
|
|
86
|
+
searchParams: {},
|
|
87
|
+
host: "dev-cnf.fiona.com",
|
|
88
|
+
cnfAppBaseUrl: ""
|
|
89
|
+
},
|
|
90
|
+
signals: {
|
|
91
|
+
deviceSignals: {
|
|
92
|
+
id: "77449c35-820c-4132-9615-5c67656ce754",
|
|
93
|
+
state: {
|
|
94
|
+
name: "New York",
|
|
95
|
+
code: "NY"
|
|
96
|
+
},
|
|
97
|
+
postalCode: "90000",
|
|
98
|
+
city: "New York",
|
|
99
|
+
ipAddress: "",
|
|
100
|
+
country: "US",
|
|
101
|
+
isMobile: false,
|
|
102
|
+
os: "Mac OS - Chrome - 131.0.0.0",
|
|
103
|
+
userAgent: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36"
|
|
104
|
+
},
|
|
105
|
+
partnerSignals: {
|
|
106
|
+
clientTags: {
|
|
107
|
+
test: "123"
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
referral: {},
|
|
111
|
+
lead: {
|
|
112
|
+
uuid: "8895affa-bc9c-4fdd-bb1f-c279f2b56065"
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
// slug: "cnf-loans",
|
|
116
|
+
subaccount: {
|
|
117
|
+
id: "66f1741c483647bbae99ff31",
|
|
118
|
+
name: "Dynamic Offer SubAccount Test ",
|
|
119
|
+
subaccount: null,
|
|
120
|
+
companyUuid: "65e0b642a53bf0a3cdb2592d",
|
|
121
|
+
publicToken: "1b1f307c-aef9-400e-b8c0-4503d59a9987_4534534-369d-4d50-80b7-8d4b6a027c0b",
|
|
122
|
+
supplySubaccountUuid: "d68d1f9d-b292-4f8a-9523-7e1fdc03edaa",
|
|
123
|
+
tags: [{
|
|
124
|
+
key: "system",
|
|
125
|
+
value: "cnf",
|
|
126
|
+
id: "65e0b64757fe814906690b34"
|
|
127
|
+
}, {
|
|
128
|
+
key: "app",
|
|
129
|
+
value: "dynamic-offers",
|
|
130
|
+
id: "65e0b65157fe814906690b35"
|
|
131
|
+
}],
|
|
132
|
+
createdAt: "2024-02-29T16:52:18.525Z",
|
|
133
|
+
updatedAt: "2024-02-29T16:52:41.609Z"
|
|
134
|
+
},
|
|
135
|
+
isDev: false
|
|
136
|
+
};
|
|
137
|
+
//# sourceMappingURL=cnfContext.js.map
|