@moneylion/react-native-offer-carousel 1.0.4 → 1.0.6
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/lib/commonjs/capabilities/offer-catalog/src/api/offerCatalogApi.js.map +1 -1
- package/lib/commonjs/components/Cards/VideosCard/VideosCard.js +3 -3
- package/lib/commonjs/components/Common/BaseOfferCard/index.js +5 -5
- package/lib/commonjs/components/Common/BaseOfferCard/index.js.map +1 -1
- package/lib/commonjs/components/Common/DynamicOfferCard/CallToAction.js.map +1 -1
- package/lib/commonjs/components/Common/DynamicOfferCard/SeeMore.js.map +1 -1
- package/lib/commonjs/components/Common/DynamicOfferCard/index.js +2 -2
- package/lib/commonjs/components/Common/DynamicOfferCard/index.js.map +1 -1
- package/lib/commonjs/components/DynamicOffers/DynamicOffers.js +2 -2
- package/lib/commonjs/components/DynamicOffers/DynamicOffers.js.map +1 -1
- package/lib/commonjs/components/DynamicOffers/DynamicOffersContainer.js +1 -1
- package/lib/commonjs/components/DynamicOffers/DynamicOffersContainer.js.map +1 -1
- package/lib/commonjs/components/DynamicOffers/Render/DynamicOffersRender.js +5 -5
- package/lib/commonjs/components/DynamicOffers/Render/DynamicOffersRender.js.map +1 -1
- package/lib/commonjs/components/DynamicOffers/Render/FallbackOfferTemplate.js +2 -2
- package/lib/commonjs/components/DynamicOffers/Render/FallbackOfferTemplate.js.map +1 -1
- package/lib/commonjs/components/DynamicOffers/Render/Offer.js +5 -4
- package/lib/commonjs/components/DynamicOffers/Render/Offer.js.map +1 -1
- package/lib/commonjs/components/Layouts/CreditCardOfferCard/index.js +2 -2
- package/lib/commonjs/components/Layouts/CreditCardOfferCard/index.js.map +1 -1
- package/lib/commonjs/components/Layouts/CreditCardOfferCard/statsBuilder.js +1 -1
- package/lib/commonjs/components/Layouts/DefaultOfferCard/index.js +7 -3
- package/lib/commonjs/components/Layouts/DefaultOfferCard/index.js.map +1 -1
- package/lib/commonjs/components/Layouts/DefaultOfferCard/statsBuilder.js +1 -1
- package/lib/commonjs/components/Layouts/HeadlineWithDescriptionCard/index.js +7 -3
- package/lib/commonjs/components/Layouts/HeadlineWithDescriptionCard/index.js.map +1 -1
- package/lib/commonjs/components/Modal/OfferDetailsModal.js.map +1 -1
- package/lib/commonjs/components/MoneyLionOfferCarousel.js +6 -3
- package/lib/commonjs/components/MoneyLionOfferCarousel.js.map +1 -1
- package/lib/commonjs/components/View/index.js +3 -2
- package/lib/commonjs/components/View/index.js.map +1 -1
- package/lib/commonjs/context/ConfigurationProvider.js +30 -0
- package/lib/commonjs/context/ConfigurationProvider.js.map +1 -0
- package/lib/commonjs/pageData.js +4 -3
- package/lib/commonjs/pageData.js.map +1 -1
- package/lib/commonjs/services/getDynamicOffers.js.map +1 -1
- package/lib/commonjs/services/getProductTypesByQuery.js +1 -1
- package/lib/commonjs/services/getProductTypesByQuery.js.map +1 -1
- package/lib/commonjs/utils/formatOfferUrl.js +1 -1
- package/lib/commonjs/utils/getOffersByProductTypes.js +2 -2
- package/lib/commonjs/utils/getOffersByProductTypes.js.map +1 -1
- package/lib/commonjs/utils/selectDynamicOffers.js.map +1 -1
- package/lib/module/capabilities/offer-catalog/src/api/offerCatalogApi.js.map +1 -1
- package/lib/module/components/Cards/VideosCard/VideosCard.js +3 -3
- package/lib/module/components/Common/BaseOfferCard/index.js +5 -5
- package/lib/module/components/Common/BaseOfferCard/index.js.map +1 -1
- package/lib/module/components/Common/DynamicOfferCard/CallToAction.js.map +1 -1
- package/lib/module/components/Common/DynamicOfferCard/SeeMore.js.map +1 -1
- package/lib/module/components/Common/DynamicOfferCard/index.js +2 -2
- package/lib/module/components/Common/DynamicOfferCard/index.js.map +1 -1
- package/lib/module/components/DynamicOffers/DynamicOffers.js +2 -2
- package/lib/module/components/DynamicOffers/DynamicOffers.js.map +1 -1
- package/lib/module/components/DynamicOffers/DynamicOffersContainer.js +1 -1
- package/lib/module/components/DynamicOffers/DynamicOffersContainer.js.map +1 -1
- package/lib/module/components/DynamicOffers/Render/DynamicOffersRender.js +5 -5
- package/lib/module/components/DynamicOffers/Render/DynamicOffersRender.js.map +1 -1
- package/lib/module/components/DynamicOffers/Render/FallbackOfferTemplate.js +2 -2
- package/lib/module/components/DynamicOffers/Render/FallbackOfferTemplate.js.map +1 -1
- package/lib/module/components/DynamicOffers/Render/Offer.js +5 -4
- package/lib/module/components/DynamicOffers/Render/Offer.js.map +1 -1
- package/lib/module/components/Layouts/CreditCardOfferCard/index.js +2 -2
- package/lib/module/components/Layouts/CreditCardOfferCard/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/index.js +7 -3
- package/lib/module/components/Layouts/DefaultOfferCard/index.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/Layouts/HeadlineWithDescriptionCard/index.js +7 -3
- package/lib/module/components/Layouts/HeadlineWithDescriptionCard/index.js.map +1 -1
- package/lib/module/components/Modal/OfferDetailsModal.js.map +1 -1
- package/lib/module/components/MoneyLionOfferCarousel.js +6 -3
- package/lib/module/components/MoneyLionOfferCarousel.js.map +1 -1
- package/lib/module/components/View/index.js +3 -2
- package/lib/module/components/View/index.js.map +1 -1
- package/lib/module/context/ConfigurationProvider.js +20 -0
- package/lib/module/context/ConfigurationProvider.js.map +1 -0
- package/lib/module/pageData.js +4 -3
- package/lib/module/pageData.js.map +1 -1
- package/lib/module/services/getDynamicOffers.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 +3 -2
- package/lib/module/utils/getOffersByProductTypes.js.map +1 -1
- package/lib/module/utils/selectDynamicOffers.js.map +1 -1
- package/lib/typescript/src/capabilities/offer-catalog/src/api/offerCatalogApi.d.ts +1 -1
- package/lib/typescript/src/capabilities/offer-catalog/src/api/offerCatalogApi.d.ts.map +1 -1
- package/lib/typescript/src/components/Common/BaseOfferCard/index.d.ts +3 -3
- 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 +3 -3
- package/lib/typescript/src/components/Common/DynamicOfferCard/index.d.ts.map +1 -1
- package/lib/typescript/src/components/DynamicOffers/DynamicOffers.d.ts +2 -2
- package/lib/typescript/src/components/DynamicOffers/DynamicOffers.d.ts.map +1 -1
- package/lib/typescript/src/components/DynamicOffers/Render/DynamicOffersRender.d.ts +3 -3
- package/lib/typescript/src/components/DynamicOffers/Render/DynamicOffersRender.d.ts.map +1 -1
- package/lib/typescript/src/components/DynamicOffers/Render/FallbackOfferTemplate.d.ts +3 -3
- package/lib/typescript/src/components/DynamicOffers/Render/FallbackOfferTemplate.d.ts.map +1 -1
- package/lib/typescript/src/components/DynamicOffers/Render/Offer.d.ts +5 -4
- package/lib/typescript/src/components/DynamicOffers/Render/Offer.d.ts.map +1 -1
- package/lib/typescript/src/components/Layouts/CreditCardOfferCard/index.d.ts +3 -3
- 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 +3 -3
- 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 +3 -3
- 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/components/MoneyLionOfferCarousel.d.ts +1 -0
- package/lib/typescript/src/components/MoneyLionOfferCarousel.d.ts.map +1 -1
- package/lib/typescript/src/components/View/index.d.ts.map +1 -1
- package/lib/typescript/src/context/ConfigurationProvider.d.ts +12 -0
- package/lib/typescript/src/context/ConfigurationProvider.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 -1
- 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 +6 -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 +1 -1
- 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/offer-catalog/src/api/offerCatalogApi.ts +1 -1
- package/src/components/Cards/VideosCard/VideosCard.tsx +3 -3
- package/src/components/Common/BaseOfferCard/index.tsx +6 -6
- 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 +4 -4
- package/src/components/DynamicOffers/DynamicOffers.tsx +3 -3
- package/src/components/DynamicOffers/DynamicOffersContainer.tsx +1 -1
- package/src/components/DynamicOffers/Render/DynamicOffersRender.tsx +7 -7
- package/src/components/DynamicOffers/Render/FallbackOfferTemplate.tsx +4 -4
- package/src/components/DynamicOffers/Render/Offer.tsx +9 -6
- package/src/components/Layouts/CreditCardOfferCard/index.tsx +4 -5
- package/src/components/Layouts/CreditCardOfferCard/statsBuilder.tsx +2 -2
- package/src/components/Layouts/DefaultOfferCard/index.tsx +13 -11
- package/src/components/Layouts/DefaultOfferCard/statsBuilder.tsx +2 -2
- package/src/components/Layouts/HeadlineWithDescriptionCard/index.tsx +14 -11
- package/src/components/Modal/OfferDetailsModal.tsx +1 -1
- package/src/components/MoneyLionOfferCarousel.tsx +8 -4
- package/src/components/View/index.tsx +2 -7
- package/src/context/ConfigurationProvider.tsx +35 -0
- package/src/context/EventHandlerProvider.tsx +1 -1
- package/src/pageData.ts +5 -3
- package/src/services/getDynamicOffers.ts +5 -5
- 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 +4 -3
- package/src/utils/getProductTypesDefinition.ts +1 -1
- package/src/utils/selectDynamicOffers.ts +1 -2
- package/src/utils/sortOffersByRecommendationScore.ts +1 -1
- package/lib/commonjs/context/CNFProvider.js +0 -2
- package/lib/commonjs/context/CNFProvider.js.map +0 -1
- package/lib/module/context/CNFProvider.js +0 -2
- package/lib/module/context/CNFProvider.js.map +0 -1
- package/lib/typescript/src/context/CNFProvider.d.ts +0 -1
- package/lib/typescript/src/context/CNFProvider.d.ts.map +0 -1
- package/src/context/CNFProvider.tsx +0 -0
package/src/pageData.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import type { CnfContext } from "
|
|
2
|
-
import { getIsDevEnvironment } from "
|
|
1
|
+
import type { CnfContext } from "./capabilities/core/src/system/cnfContext/CnfContext";
|
|
2
|
+
import { getIsDevEnvironment } from "./capabilities/offer-catalog/src/utils/contextUtil";
|
|
3
|
+
|
|
3
4
|
import type { MoneyLionOfferCarouselProps } from "./components/MoneyLionOfferCarousel";
|
|
4
5
|
import type { onRateTableSubmitProps } from "./context/EventHandlerProvider";
|
|
5
6
|
import { getDynamicOffers } from "./services/getDynamicOffers";
|
|
@@ -30,6 +31,7 @@ export async function getPageData({
|
|
|
30
31
|
displayLayout,
|
|
31
32
|
searchAPIToken,
|
|
32
33
|
showProductTypeLabel,
|
|
34
|
+
showCardBorder,
|
|
33
35
|
} = params;
|
|
34
36
|
|
|
35
37
|
// Resolve Tags
|
|
@@ -90,7 +92,7 @@ export async function getPageData({
|
|
|
90
92
|
offers,
|
|
91
93
|
currentCountry,
|
|
92
94
|
// videosContent,
|
|
93
|
-
|
|
95
|
+
showCardBorder,
|
|
94
96
|
// shouldHideFooter,
|
|
95
97
|
showProductTypeLabel,
|
|
96
98
|
displayLayout: safeDisplayLayout,
|
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
import { isEmpty } from "radash";
|
|
2
|
-
import type { CnfContext } from "../../src/capabilities/core/src/system/cnfContext/CnfContext";
|
|
3
|
-
import type {
|
|
4
|
-
PartnerOverride,
|
|
5
|
-
ProductTypeDefinition,
|
|
6
|
-
} from "../../src/capabilities/offer-catalog/src";
|
|
7
2
|
import {
|
|
8
3
|
addClientTagsToOfferLinks,
|
|
9
4
|
getOffersByProductTypes,
|
|
@@ -18,6 +13,11 @@ import { sortOffersByRecommendationScore } from "../utils/sortOffersByRecommenda
|
|
|
18
13
|
import { pipe } from "effect";
|
|
19
14
|
import { formatOfferUrl } from "../utils/formatOfferUrl";
|
|
20
15
|
import { getOffersBasedOnLayout } from "../utils/getOffersBasedOnLayout";
|
|
16
|
+
import type {
|
|
17
|
+
PartnerOverride,
|
|
18
|
+
ProductTypeDefinition,
|
|
19
|
+
} from "../capabilities/offer-catalog/src";
|
|
20
|
+
import type { CnfContext } from "../capabilities/core/src/system/cnfContext/CnfContext";
|
|
21
21
|
|
|
22
22
|
export type GetDynamicOffersProps = {
|
|
23
23
|
tags: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { pipe } from "effect";
|
|
2
|
-
import { orderProductTypesByRank } from "../../src/capabilities/core/src/domain/third-party-search";
|
|
3
2
|
import { getEwsSearchApiBaseUrl } from "../apiEnvironment";
|
|
3
|
+
import { orderProductTypesByRank } from "../capabilities/core/src/domain/third-party-search";
|
|
4
4
|
|
|
5
5
|
type GetProductTypesByQueryProps = {
|
|
6
6
|
query: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CnfContext } from "
|
|
1
|
+
import type { CnfContext } from "../capabilities/core/src/system/cnfContext/CnfContext";
|
|
2
2
|
|
|
3
3
|
export const getDefaultProductType = (context: CnfContext) =>
|
|
4
4
|
context.configuration.configuration.defaultProductTypeSlug;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { pipe } from "effect";
|
|
2
2
|
import type { Layout } from "./layouts";
|
|
3
3
|
import { sortOffersByRecommendationScore } from "./sortOffersByRecommendationScore";
|
|
4
|
-
import type { BaseOffer } from "
|
|
4
|
+
import type { BaseOffer } from "../capabilities/offer-catalog/src";
|
|
5
5
|
|
|
6
6
|
const MAX_OFFERS_TO_DISPLAY = 3;
|
|
7
7
|
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import type { CnfContext } from "
|
|
1
|
+
import type { CnfContext } from "../capabilities/core/src/system/cnfContext/CnfContext";
|
|
2
2
|
import {
|
|
3
3
|
getCachedOffersByProductTypes,
|
|
4
4
|
getOffersForProductTypes,
|
|
5
|
-
} from "
|
|
6
|
-
import { parseClientTags } from "
|
|
5
|
+
} from "../capabilities/offer-catalog/src/api/offerCatalogApi";
|
|
6
|
+
import { parseClientTags } from "../capabilities/offer-catalog/src/utils/contextUtil";
|
|
7
|
+
|
|
7
8
|
/**
|
|
8
9
|
* Retrieves offers by product types.
|
|
9
10
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CnfContext } from "
|
|
1
|
+
import type { CnfContext } from "../capabilities/core/src/system/cnfContext/CnfContext";
|
|
2
2
|
|
|
3
3
|
export const getProductTypesDefinition = (context: CnfContext) => {
|
|
4
4
|
const offersConfig = context.configuration.configuration;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import type { BaseOffer } from "
|
|
1
|
+
import type { BaseOffer } from "../capabilities/offer-catalog/src";
|
|
2
2
|
import { sortOffersByRecommendationScore } from "./sortOffersByRecommendationScore";
|
|
3
3
|
|
|
4
|
-
|
|
5
4
|
export const selectDynamicOffers = (
|
|
6
5
|
offers: BaseOffer[],
|
|
7
6
|
productTypes: string[]
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { sort } from "radash";
|
|
2
|
-
import type { BaseOffer } from "
|
|
2
|
+
import type { BaseOffer } from "../capabilities/offer-catalog/src";
|
|
3
3
|
|
|
4
4
|
export const sortOffersByRecommendationScore = (offers: BaseOffer[]) => {
|
|
5
5
|
return sort(offers, (offer) => offer.recommendationScore, true);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["context/CNFProvider.tsx"],"mappings":"","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["context/CNFProvider.tsx"],"mappings":"","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=CNFProvider.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CNFProvider.d.ts","sourceRoot":"","sources":["../../../../src/context/CNFProvider.tsx"],"names":[],"mappings":""}
|
|
File without changes
|