@moneylion/react-native-offer-carousel 1.4.1 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/components/Button/index.js +2 -1
- package/lib/commonjs/components/Button/index.js.map +1 -1
- package/lib/commonjs/components/Common/DynamicOfferCard/SeeMore.js +6 -3
- package/lib/commonjs/components/Common/DynamicOfferCard/SeeMore.js.map +1 -1
- package/lib/commonjs/components/Common/DynamicOfferCard/index.js +2 -1
- package/lib/commonjs/components/Common/DynamicOfferCard/index.js.map +1 -1
- package/lib/commonjs/components/DynamicOffers/DynamicOffers.js +0 -2
- package/lib/commonjs/components/DynamicOffers/DynamicOffers.js.map +1 -1
- package/lib/commonjs/components/DynamicOffers/DynamicOffersContainer.js +3 -22
- package/lib/commonjs/components/DynamicOffers/DynamicOffersContainer.js.map +1 -1
- package/lib/commonjs/components/DynamicOffers/Render/DynamicOffersRender.js +5 -15
- package/lib/commonjs/components/DynamicOffers/Render/DynamicOffersRender.js.map +1 -1
- package/lib/commonjs/components/DynamicOffers/SeeAllButton.js +2 -1
- package/lib/commonjs/components/DynamicOffers/SeeAllButton.js.map +1 -1
- package/lib/commonjs/components/Layouts/DefaultOfferCard/index.js +2 -1
- package/lib/commonjs/components/Layouts/DefaultOfferCard/index.js.map +1 -1
- package/lib/commonjs/components/Modal/AllOffersModal.js +7 -4
- package/lib/commonjs/components/Modal/AllOffersModal.js.map +1 -1
- package/lib/commonjs/components/Modal/DescriptionPoints.js +2 -1
- package/lib/commonjs/components/Modal/DescriptionPoints.js.map +1 -1
- package/lib/commonjs/components/Modal/Disclaimer.js +2 -1
- package/lib/commonjs/components/Modal/Disclaimer.js.map +1 -1
- package/lib/commonjs/components/Modal/OfferDetailsModal.js +6 -3
- package/lib/commonjs/components/Modal/OfferDetailsModal.js.map +1 -1
- package/lib/commonjs/components/MoneyLionOfferCarousel.js +2 -8
- package/lib/commonjs/components/MoneyLionOfferCarousel.js.map +1 -1
- package/lib/commonjs/components/Text/index.js +3 -1
- package/lib/commonjs/components/Text/index.js.map +1 -1
- package/lib/commonjs/components/Touchable/TouchableOpacity.js +12 -0
- package/lib/commonjs/components/Touchable/TouchableOpacity.js.map +1 -0
- package/lib/commonjs/components/Touchable/index.js +29 -0
- package/lib/commonjs/components/Touchable/index.js.map +1 -0
- package/lib/commonjs/components/utils/withTestID.js +55 -0
- package/lib/commonjs/components/utils/withTestID.js.map +1 -0
- package/lib/commonjs/pageData.js +1 -5
- package/lib/commonjs/pageData.js.map +1 -1
- package/lib/commonjs/services/getDynamicOffers.js +1 -3
- package/lib/commonjs/services/getDynamicOffers.js.map +1 -1
- package/lib/commonjs/utils/index.js +0 -11
- package/lib/commonjs/utils/index.js.map +1 -1
- package/lib/module/components/Button/index.js +2 -1
- package/lib/module/components/Button/index.js.map +1 -1
- package/lib/module/components/Common/DynamicOfferCard/SeeMore.js +6 -3
- package/lib/module/components/Common/DynamicOfferCard/SeeMore.js.map +1 -1
- package/lib/module/components/Common/DynamicOfferCard/index.js +2 -1
- package/lib/module/components/Common/DynamicOfferCard/index.js.map +1 -1
- package/lib/module/components/DynamicOffers/DynamicOffers.js +0 -2
- package/lib/module/components/DynamicOffers/DynamicOffers.js.map +1 -1
- package/lib/module/components/DynamicOffers/DynamicOffersContainer.js +3 -22
- package/lib/module/components/DynamicOffers/DynamicOffersContainer.js.map +1 -1
- package/lib/module/components/DynamicOffers/Render/DynamicOffersRender.js +5 -15
- package/lib/module/components/DynamicOffers/Render/DynamicOffersRender.js.map +1 -1
- package/lib/module/components/DynamicOffers/SeeAllButton.js +2 -1
- package/lib/module/components/DynamicOffers/SeeAllButton.js.map +1 -1
- package/lib/module/components/Layouts/DefaultOfferCard/index.js +2 -1
- package/lib/module/components/Layouts/DefaultOfferCard/index.js.map +1 -1
- package/lib/module/components/Modal/AllOffersModal.js +6 -3
- package/lib/module/components/Modal/AllOffersModal.js.map +1 -1
- package/lib/module/components/Modal/DescriptionPoints.js +2 -1
- package/lib/module/components/Modal/DescriptionPoints.js.map +1 -1
- package/lib/module/components/Modal/Disclaimer.js +2 -1
- package/lib/module/components/Modal/Disclaimer.js.map +1 -1
- package/lib/module/components/Modal/OfferDetailsModal.js +6 -3
- package/lib/module/components/Modal/OfferDetailsModal.js.map +1 -1
- package/lib/module/components/MoneyLionOfferCarousel.js +2 -8
- package/lib/module/components/MoneyLionOfferCarousel.js.map +1 -1
- package/lib/module/components/Text/index.js +3 -1
- package/lib/module/components/Text/index.js.map +1 -1
- package/lib/module/components/Touchable/TouchableOpacity.js +5 -0
- package/lib/module/components/Touchable/TouchableOpacity.js.map +1 -0
- package/lib/module/components/Touchable/index.js +3 -0
- package/lib/module/components/Touchable/index.js.map +1 -0
- package/lib/module/components/utils/withTestID.js +50 -0
- package/lib/module/components/utils/withTestID.js.map +1 -0
- package/lib/module/pageData.js +2 -6
- package/lib/module/pageData.js.map +1 -1
- package/lib/module/services/getDynamicOffers.js +1 -3
- package/lib/module/services/getDynamicOffers.js.map +1 -1
- package/lib/module/utils/index.js +0 -1
- package/lib/module/utils/index.js.map +1 -1
- package/lib/typescript/src/components/Button/index.d.ts +3 -2
- package/lib/typescript/src/components/Button/index.d.ts.map +1 -1
- package/lib/typescript/src/components/Common/DynamicOfferCard/SeeMore.d.ts +2 -1
- package/lib/typescript/src/components/Common/DynamicOfferCard/SeeMore.d.ts.map +1 -1
- package/lib/typescript/src/components/Common/DynamicOfferCard/index.d.ts.map +1 -1
- package/lib/typescript/src/components/DynamicOffers/DynamicOffers.d.ts +1 -3
- package/lib/typescript/src/components/DynamicOffers/DynamicOffers.d.ts.map +1 -1
- package/lib/typescript/src/components/DynamicOffers/DynamicOffersContainer.d.ts +1 -4
- package/lib/typescript/src/components/DynamicOffers/DynamicOffersContainer.d.ts.map +1 -1
- package/lib/typescript/src/components/DynamicOffers/Render/DynamicOffersRender.d.ts +1 -3
- package/lib/typescript/src/components/DynamicOffers/Render/DynamicOffersRender.d.ts.map +1 -1
- package/lib/typescript/src/components/DynamicOffers/SeeAllButton.d.ts.map +1 -1
- package/lib/typescript/src/components/Layouts/DefaultOfferCard/index.d.ts.map +1 -1
- package/lib/typescript/src/components/Modal/AllOffersModal.d.ts.map +1 -1
- package/lib/typescript/src/components/Modal/DescriptionPoints.d.ts.map +1 -1
- package/lib/typescript/src/components/Modal/Disclaimer.d.ts.map +1 -1
- package/lib/typescript/src/components/Modal/OfferDetailsModal.d.ts.map +1 -1
- package/lib/typescript/src/components/MoneyLionOfferCarousel.d.ts +0 -2
- package/lib/typescript/src/components/MoneyLionOfferCarousel.d.ts.map +1 -1
- package/lib/typescript/src/components/Text/index.d.ts +2 -1
- package/lib/typescript/src/components/Text/index.d.ts.map +1 -1
- package/lib/typescript/src/components/Touchable/TouchableOpacity.d.ts +7 -0
- package/lib/typescript/src/components/Touchable/TouchableOpacity.d.ts.map +1 -0
- package/lib/typescript/src/components/Touchable/index.d.ts +3 -0
- package/lib/typescript/src/components/Touchable/index.d.ts.map +1 -0
- package/lib/typescript/src/components/utils/withTestID.d.ts +4 -0
- package/lib/typescript/src/components/utils/withTestID.d.ts.map +1 -0
- package/lib/typescript/src/pageData.d.ts +0 -1
- package/lib/typescript/src/pageData.d.ts.map +1 -1
- package/lib/typescript/src/services/getDynamicOffers.d.ts +1 -3
- package/lib/typescript/src/services/getDynamicOffers.d.ts.map +1 -1
- package/lib/typescript/src/utils/index.d.ts +0 -1
- package/lib/typescript/src/utils/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/Button/index.tsx +6 -3
- package/src/components/Common/DynamicOfferCard/SeeMore.tsx +9 -2
- package/src/components/Common/DynamicOfferCard/index.tsx +1 -0
- package/src/components/DynamicOffers/DynamicOffers.tsx +0 -4
- package/src/components/DynamicOffers/DynamicOffersContainer.tsx +2 -21
- package/src/components/DynamicOffers/Render/DynamicOffersRender.tsx +11 -27
- package/src/components/DynamicOffers/SeeAllButton.tsx +1 -0
- package/src/components/Layouts/DefaultOfferCard/index.tsx +1 -0
- package/src/components/Modal/AllOffersModal.tsx +3 -1
- package/src/components/Modal/DescriptionPoints.tsx +6 -1
- package/src/components/Modal/Disclaimer.tsx +6 -1
- package/src/components/Modal/OfferDetailsModal.tsx +3 -1
- package/src/components/MoneyLionOfferCarousel.tsx +2 -6
- package/src/components/Text/index.tsx +7 -2
- package/src/components/Touchable/TouchableOpacity.tsx +15 -0
- package/src/components/Touchable/index.ts +2 -0
- package/src/components/utils/withTestID.tsx +56 -0
- package/src/pageData.ts +0 -6
- package/src/services/getDynamicOffers.ts +1 -5
- package/src/utils/index.ts +0 -1
- package/lib/commonjs/utils/getOffersBasedOnLayout.js +0 -48
- package/lib/commonjs/utils/getOffersBasedOnLayout.js.map +0 -1
- package/lib/commonjs/utils/layouts.js +0 -27
- package/lib/commonjs/utils/layouts.js.map +0 -1
- package/lib/module/utils/getOffersBasedOnLayout.js +0 -39
- package/lib/module/utils/getOffersBasedOnLayout.js.map +0 -1
- package/lib/module/utils/layouts.js +0 -20
- package/lib/module/utils/layouts.js.map +0 -1
- package/lib/typescript/src/utils/getOffersBasedOnLayout.d.ts +0 -26
- package/lib/typescript/src/utils/getOffersBasedOnLayout.d.ts.map +0 -1
- package/lib/typescript/src/utils/layouts.d.ts +0 -19
- package/lib/typescript/src/utils/layouts.d.ts.map +0 -1
- package/src/utils/getOffersBasedOnLayout.ts +0 -51
- package/src/utils/layouts.ts +0 -22
|
@@ -3,7 +3,6 @@ import { addClientTagsToOfferLinks, getOffersByProductTypes, selectDynamicOffers
|
|
|
3
3
|
import { sortOffersByRecommendationScore } from "../utils/sortOffersByRecommendationScore";
|
|
4
4
|
import { pipe } from "effect";
|
|
5
5
|
import { formatOfferUrl } from "../utils/formatOfferUrl";
|
|
6
|
-
import { getOffersBasedOnLayout } from "../utils/getOffersBasedOnLayout";
|
|
7
6
|
/**
|
|
8
7
|
* Retrieves dynamic offers based on the provided parameters.
|
|
9
8
|
*
|
|
@@ -12,7 +11,6 @@ import { getOffersBasedOnLayout } from "../utils/getOffersBasedOnLayout";
|
|
|
12
11
|
*/
|
|
13
12
|
export const getDynamicOffers = async ({
|
|
14
13
|
tags,
|
|
15
|
-
displayLayout,
|
|
16
14
|
defaultProductType,
|
|
17
15
|
productTypes,
|
|
18
16
|
resultType,
|
|
@@ -54,7 +52,7 @@ export const getDynamicOffers = async ({
|
|
|
54
52
|
}
|
|
55
53
|
const sortedOffers = resultType === "QUERY" ? selectDynamicOffers(offers, productTypes) : sortOffersByRecommendationScore(offers);
|
|
56
54
|
return {
|
|
57
|
-
offers: pipe(sortedOffers, formatOfferUrl(productTypesDefinition, partnersOverrideDefinition), addClientTagsToOfferLinks(isCachedOffersRequest, tags),
|
|
55
|
+
offers: pipe(sortedOffers, formatOfferUrl(productTypesDefinition, partnersOverrideDefinition), addClientTagsToOfferLinks(isCachedOffersRequest, tags), sortOffersByRecommendationScore),
|
|
58
56
|
isError,
|
|
59
57
|
errorCode,
|
|
60
58
|
leadUuid: leadUuid,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["isEmpty","addClientTagsToOfferLinks","getOffersByProductTypes","selectDynamicOffers","sortOffersByRecommendationScore","pipe","formatOfferUrl","
|
|
1
|
+
{"version":3,"names":["isEmpty","addClientTagsToOfferLinks","getOffersByProductTypes","selectDynamicOffers","sortOffersByRecommendationScore","pipe","formatOfferUrl","getDynamicOffers","tags","defaultProductType","productTypes","resultType","isCachedOffersRequest","productTypesDefinition","partnersOverrideDefinition","context","offers","rateTableUuid","isError","leadUuid","errorCode","fallbackResult","sortedOffers"],"sourceRoot":"../../../src","sources":["services/getDynamicOffers.ts"],"mappings":"AAAA,SAASA,OAAO,QAAQ,QAAQ;AAChC,SACCC,yBAAyB,EACzBC,uBAAuB,EACvBC,mBAAmB,QACb,UAAU;AAKjB,SAASC,+BAA+B,QAAQ,0CAA0C;AAC1F,SAASC,IAAI,QAAQ,QAAQ;AAC7B,SAASC,cAAc,QAAQ,yBAAyB;AAyBxD;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,gBAAgB,GAAG,MAAAA,CAAO;EACtCC,IAAI;EACJC,kBAAkB;EAClBC,YAAY;EACZC,UAAU;EACVC,qBAAqB;EACrBC,sBAAsB;EACtBC,0BAA0B;EAC1BC;AACqC,CAAC,KAAK;EAC3C;EACA,IAAI;IAAEC,MAAM;IAAEC,aAAa;IAAEC,OAAO;IAAEC,QAAQ;IAAEC;EAAU,CAAC,GAC1D,MAAMlB,uBAAuB,CAAC;IAC7BU,qBAAqB;IACrBF,YAAY;IACZF,IAAI;IACJO;EACD,CAAC,CAAC;;EAEH;EACA,IAAIf,OAAO,CAACgB,MAAM,CAAC,EAAE;IACpB,MAAMK,cAAc,GAAG,MAAMnB,uBAAuB,CAAC;MACpDU,qBAAqB;MACrBF,YAAY,EAAE,CAACD,kBAAkB,CAAC;MAClCD,IAAI;MACJO;IACD,CAAC,CAAC;;IAEF;IACAC,MAAM,GAAGK,cAAc,CAACL,MAAM;IAC9BC,aAAa,GAAGI,cAAc,CAACJ,aAAa;IAC5CC,OAAO,GAAGG,cAAc,CAACH,OAAO;IAChCC,QAAQ,GAAGE,cAAc,CAACF,QAAQ;IAClCT,YAAY,GAAG,CAACD,kBAAkB,CAAC;IACnCW,SAAS,GAAGC,cAAc,CAACD,SAAS;EACrC;EAEA,MAAME,YAAY,GACjBX,UAAU,KAAK,OAAO,GACnBR,mBAAmB,CAACa,MAAM,EAAEN,YAAY,CAAC,GACzCN,+BAA+B,CAACY,MAAM,CAAC;EAE3C,OAAO;IACNA,MAAM,EAAEX,IAAI,CACXiB,YAAY,EACZhB,cAAc,CAACO,sBAAsB,EAAEC,0BAA0B,CAAC,EAClEb,yBAAyB,CAACW,qBAAqB,EAAEJ,IAAI,CAAC,EACtDJ,+BACD,CAAC;IACDc,OAAO;IACPE,SAAS;IACTD,QAAQ,EAAEA,QAAQ;IAClBF;EACD,CAAC;AACF,CAAC","ignoreList":[]}
|
|
@@ -2,7 +2,6 @@ export * from "./addClientTagsToOfferLinks";
|
|
|
2
2
|
export * from "./getDefaultProductType";
|
|
3
3
|
export * from "./getOffersByProductTypes";
|
|
4
4
|
export * from "./getProductTypesDefinition";
|
|
5
|
-
export * from "./layouts";
|
|
6
5
|
export * from "./resolveProductTypes";
|
|
7
6
|
export * from "./selectDynamicOffers";
|
|
8
7
|
export * from "./sortOffersByRecommendationScore";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["utils/index.ts"],"mappings":"AAAA,cAAc,6BAA6B;AAC3C,cAAc,yBAAyB;AACvC,cAAc,2BAA2B;AACzC,cAAc,6BAA6B;AAC3C,cAAc,
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["utils/index.ts"],"mappings":"AAAA,cAAc,6BAA6B;AAC3C,cAAc,yBAAyB;AACvC,cAAc,2BAA2B;AACzC,cAAc,6BAA6B;AAC3C,cAAc,uBAAuB;AACrC,cAAc,uBAAuB;AACrC,cAAc,mCAAmC;AACjD,cAAc,2BAA2B;AACzC,cAAc,4BAA4B","ignoreList":[]}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React, { type ReactNode } from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { type StyleProp, type ViewStyle } from "react-native";
|
|
3
3
|
import { type ThemeColors } from "../../context/ThemeProvider";
|
|
4
4
|
import { type Variant } from "../Text";
|
|
5
|
+
import { type TouchableOpacityProps } from "../Touchable";
|
|
5
6
|
type Colors = keyof ThemeColors;
|
|
6
7
|
export interface ButtonProps extends TouchableOpacityProps {
|
|
7
8
|
color: Colors;
|
|
@@ -13,6 +14,6 @@ export interface ButtonProps extends TouchableOpacityProps {
|
|
|
13
14
|
textVariant?: Variant;
|
|
14
15
|
textFontWeight?: "normal" | "medium" | "bold";
|
|
15
16
|
}
|
|
16
|
-
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<TouchableOpacity>>;
|
|
17
|
+
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<import("react-native").TouchableOpacity>>;
|
|
17
18
|
export default Button;
|
|
18
19
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Button/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAc,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAC1D,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Button/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAc,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAC1D,OAAO,EAIN,KAAK,SAAS,EACd,KAAK,SAAS,EACd,MAAM,cAAc,CAAC;AACtB,OAAO,EAAY,KAAK,WAAW,EAAE,MAAM,6BAA6B,CAAC;AACzE,OAAa,EAAE,KAAK,OAAO,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,EAEN,KAAK,qBAAqB,EAE1B,MAAM,cAAc,CAAC;AAoBtB,KAAK,MAAM,GAAG,MAAM,WAAW,CAAC;AAEhC,MAAM,WAAW,WAAY,SAAQ,qBAAqB;IACzD,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,cAAc,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,MAAM,CAAC;CAC9C;AAED,QAAA,MAAM,MAAM,6GA0DV,CAAC;AA4BH,eAAe,MAAM,CAAC"}
|
|
@@ -4,6 +4,7 @@ export type SeeMoreProps = {
|
|
|
4
4
|
offer: BaseOffer;
|
|
5
5
|
offerIndex: number;
|
|
6
6
|
isHorizontalScroll?: boolean;
|
|
7
|
+
testID?: string;
|
|
7
8
|
};
|
|
8
|
-
export declare const SeeMore: ({ offer, offerIndex, isHorizontalScroll, }: SeeMoreProps) => React.JSX.Element;
|
|
9
|
+
export declare const SeeMore: ({ offer, offerIndex, isHorizontalScroll, testID, }: SeeMoreProps) => React.JSX.Element;
|
|
9
10
|
//# sourceMappingURL=SeeMore.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SeeMore.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Common/DynamicOfferCard/SeeMore.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAKrD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;
|
|
1
|
+
{"version":3,"file":"SeeMore.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Common/DynamicOfferCard/SeeMore.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAKrD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAIzE,MAAM,MAAM,YAAY,GAAG;IAC1B,KAAK,EAAE,SAAS,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,OAAO,uDAKjB,YAAY,sBAkEd,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Common/DynamicOfferCard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAGzE,KAAK,4BAA4B,GAAG;IACnC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,EAAE,SAAS,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,OAAO,CAAC;IACxB,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC7B,CAAC;AAEF,iBAAS,gBAAgB,CAAC,EACzB,QAAQ,EACR,KAAK,EACL,UAAU,EACV,cAAc,EACd,oBAAoB,EACpB,aAAqB,EACrB,kBAAyB,GACzB,EAAE,4BAA4B,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Common/DynamicOfferCard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAGzE,KAAK,4BAA4B,GAAG;IACnC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,EAAE,SAAS,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,OAAO,CAAC;IACxB,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC7B,CAAC;AAEF,iBAAS,gBAAgB,CAAC,EACzB,QAAQ,EACR,KAAK,EACL,UAAU,EACV,cAAc,EACd,oBAAoB,EACpB,aAAqB,EACrB,kBAAyB,GACzB,EAAE,4BAA4B,qBA0C9B;AAED,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import type { DynamicOffersRenderProps } from "./Render/DynamicOffersRender";
|
|
3
|
-
import type { Layout } from "../../utils";
|
|
4
3
|
export type DynamicOfferProps = {
|
|
5
4
|
title?: string;
|
|
6
5
|
subtitle?: string;
|
|
7
|
-
displayLayout: Layout;
|
|
8
6
|
showCardBorder: boolean;
|
|
9
7
|
showProductTypeLabel?: boolean;
|
|
10
8
|
shouldHideFooter: boolean;
|
|
11
9
|
} & Pick<DynamicOffersRenderProps, "offers" | "isHorizontalScroll" | "brand" | "parentScrollOffset" | "parentScrollViewHeight">;
|
|
12
|
-
export declare const DynamicOffers: ({ title, subtitle,
|
|
10
|
+
export declare const DynamicOffers: ({ title, subtitle, showCardBorder, showProductTypeLabel, isHorizontalScroll, parentScrollOffset, parentScrollViewHeight, offers, brand, }: DynamicOfferProps) => React.JSX.Element;
|
|
13
11
|
//# sourceMappingURL=DynamicOffers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DynamicOffers.d.ts","sourceRoot":"","sources":["../../../../../src/components/DynamicOffers/DynamicOffers.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"DynamicOffers.d.ts","sourceRoot":"","sources":["../../../../../src/components/DynamicOffers/DynamicOffers.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AAG7E,MAAM,MAAM,iBAAiB,GAAG;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,OAAO,CAAC;IACxB,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,gBAAgB,EAAE,OAAO,CAAC;CAC1B,GAAG,IAAI,CACP,wBAAwB,EACtB,QAAQ,GACR,oBAAoB,GACpB,OAAO,GACP,oBAAoB,GACpB,wBAAwB,CAC1B,CAAC;AAEF,eAAO,MAAM,aAAa,8IAWvB,iBAAiB,KAAG,SAAS,QA2B/B,CAAC"}
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import type { Layout } from "../../utils";
|
|
3
2
|
import { type DynamicOfferProps } from "./DynamicOffers";
|
|
4
|
-
export declare const DynamicOfferSkeleton: React.MemoExoticComponent<(
|
|
5
|
-
displayLayout?: "fixed" | "carousel" | undefined;
|
|
6
|
-
}) => React.JSX.Element>;
|
|
3
|
+
export declare const DynamicOfferSkeleton: React.MemoExoticComponent<() => React.JSX.Element>;
|
|
7
4
|
export declare const DynamicOffersContainer: React.MemoExoticComponent<({ config }: {
|
|
8
5
|
config: DynamicOfferProps;
|
|
9
6
|
}) => React.JSX.Element>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DynamicOffersContainer.d.ts","sourceRoot":"","sources":["../../../../../src/components/DynamicOffers/DynamicOffersContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"DynamicOffersContainer.d.ts","sourceRoot":"","sources":["../../../../../src/components/DynamicOffers/DynamicOffersContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AACxC,OAAO,EAAiB,KAAK,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAGxE,eAAO,MAAM,oBAAoB,oDAA8C,CAAC;AAEhF,eAAO,MAAM,sBAAsB;YACX,iBAAiB;wBAOxC,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import type { Layout } from "../../../utils";
|
|
3
2
|
import { productTypeBuilder as builder } from "../../../builder/builder";
|
|
4
3
|
import type { BaseOffer } from "../../../capabilities/offer-catalog/src";
|
|
5
4
|
import type { CnfContext } from "../../../capabilities/core/src/system/cnfContext/CnfContext";
|
|
@@ -7,7 +6,6 @@ export type DynamicOffersRenderProps = {
|
|
|
7
6
|
title?: string;
|
|
8
7
|
subtitle?: string;
|
|
9
8
|
offers: BaseOffer[];
|
|
10
|
-
displayLayout: Layout;
|
|
11
9
|
fallbackTemplate?: React.FC<{
|
|
12
10
|
offer: BaseOffer;
|
|
13
11
|
showProductTypeLabel?: boolean;
|
|
@@ -23,5 +21,5 @@ export type DynamicOffersRenderProps = {
|
|
|
23
21
|
parentScrollViewHeight?: number;
|
|
24
22
|
brand: CnfContext["brand"];
|
|
25
23
|
};
|
|
26
|
-
export declare const DynamicOffersRender: ({ title, subtitle, offers,
|
|
24
|
+
export declare const DynamicOffersRender: ({ title, subtitle, offers, productTypeBuilder, fallbackTemplate, showCardBorder, showProductTypeLabel, isHorizontalScroll, parentScrollOffset, parentScrollViewHeight, brand, }: DynamicOffersRenderProps) => React.JSX.Element;
|
|
27
25
|
//# sourceMappingURL=DynamicOffersRender.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DynamicOffersRender.d.ts","sourceRoot":"","sources":["../../../../../../src/components/DynamicOffers/Render/DynamicOffersRender.tsx"],"names":[],"mappings":"AAAA,OAAO,KAMN,MAAM,OAAO,CAAC;AACf,OAAO,
|
|
1
|
+
{"version":3,"file":"DynamicOffersRender.d.ts","sourceRoot":"","sources":["../../../../../../src/components/DynamicOffers/Render/DynamicOffersRender.tsx"],"names":[],"mappings":"AAAA,OAAO,KAMN,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,kBAAkB,IAAI,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAYzE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAGzE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6DAA6D,CAAC;AAI9F,MAAM,MAAM,wBAAwB,GAAG;IACtC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,SAAS,EAAE,CAAC;IACpB,gBAAgB,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC;QAC3B,KAAK,EAAE,SAAS,CAAC;QACjB,oBAAoB,CAAC,EAAE,OAAO,CAAC;QAC/B,UAAU,EAAE,MAAM,CAAC;KACnB,CAAC,CAAC;IACH,kBAAkB,EAAE,OAAO,OAAO,CAAC;IACnC,cAAc,EAAE,OAAO,CAAC;IACxB,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,oCAAoC;IACpC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,oCAAoC;IACpC,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,KAAK,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC;CAC3B,CAAC;AAEF,eAAO,MAAM,mBAAmB,oLAY7B,wBAAwB,sBA0V1B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SeeAllButton.d.ts","sourceRoot":"","sources":["../../../../../src/components/DynamicOffers/SeeAllButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,UAAU,iBAAiB;IAC1B,OAAO,EAAE,MAAM,IAAI,CAAC;CACpB;AAED,eAAO,MAAM,YAAY,gBAAiB,iBAAiB,
|
|
1
|
+
{"version":3,"file":"SeeAllButton.d.ts","sourceRoot":"","sources":["../../../../../src/components/DynamicOffers/SeeAllButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,UAAU,iBAAiB;IAC1B,OAAO,EAAE,MAAM,IAAI,CAAC;CACpB;AAED,eAAO,MAAM,YAAY,gBAAiB,iBAAiB,sBAe1D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Layouts/DefaultOfferCard/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,gBAAgB,IAAI,4BAA4B,EAAE,MAAM,kBAAkB,CAAC;AAGzF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAEzE,KAAK,qBAAqB,GAAG;IAC5B,kBAAkB,EAAE,4BAA4B,CAAC;IACjD,KAAK,EAAE,SAAS,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,OAAO,CAAC;IACxB,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC7B,CAAC;AAEF,eAAO,MAAM,gBAAgB,wHAQ1B,qBAAqB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Layouts/DefaultOfferCard/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,gBAAgB,IAAI,4BAA4B,EAAE,MAAM,kBAAkB,CAAC;AAGzF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAEzE,KAAK,qBAAqB,GAAG;IAC5B,kBAAkB,EAAE,4BAA4B,CAAC;IACjD,KAAK,EAAE,SAAS,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,OAAO,CAAC;IACxB,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC7B,CAAC;AAEF,eAAO,MAAM,gBAAgB,wHAQ1B,qBAAqB,sBA2DvB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AllOffersModal.d.ts","sourceRoot":"","sources":["../../../../../src/components/Modal/AllOffersModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyC,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"AllOffersModal.d.ts","sourceRoot":"","sources":["../../../../../src/components/Modal/AllOffersModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAc9D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAIxE,KAAK,mBAAmB,GAAG;IAC1B,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,EAAE,iBAAiB,CAAC;CAC1B,CAAC;AA0BF,eAAO,MAAM,cAAc,kCAIxB,mBAAmB,sBAuHrB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DescriptionPoints.d.ts","sourceRoot":"","sources":["../../../../../src/components/Modal/DescriptionPoints.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,wBAAgB,iBAAiB,CAAC,EACjC,iBAAiB,GACjB,EAAE;IACF,iBAAiB,EAAE,MAAM,EAAE,CAAC;CAC5B,
|
|
1
|
+
{"version":3,"file":"DescriptionPoints.d.ts","sourceRoot":"","sources":["../../../../../src/components/Modal/DescriptionPoints.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,wBAAgB,iBAAiB,CAAC,EACjC,iBAAiB,GACjB,EAAE;IACF,iBAAiB,EAAE,MAAM,EAAE,CAAC;CAC5B,qBAkBA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Disclaimer.d.ts","sourceRoot":"","sources":["../../../../../src/components/Modal/Disclaimer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,wBAAgB,UAAU,CAAC,EAAE,UAAU,EAAE,EAAE;IAAE,UAAU,EAAE,MAAM,CAAA;CAAE,
|
|
1
|
+
{"version":3,"file":"Disclaimer.d.ts","sourceRoot":"","sources":["../../../../../src/components/Modal/Disclaimer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,wBAAgB,UAAU,CAAC,EAAE,UAAU,EAAE,EAAE;IAAE,UAAU,EAAE,MAAM,CAAA;CAAE,qBAkBhE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OfferDetailsModal.d.ts","sourceRoot":"","sources":["../../../../../src/components/Modal/OfferDetailsModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"OfferDetailsModal.d.ts","sourceRoot":"","sources":["../../../../../src/components/Modal/OfferDetailsModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAe1B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAItE,KAAK,sBAAsB,GAAG;IAC7B,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,SAAS,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,IAAI,CAAC;CACpB,CAAC;AAIF,eAAO,MAAM,iBAAiB,6CAK3B,sBAAsB,sBAuExB,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import type { Layout } from "../utils";
|
|
3
2
|
import { type FontFamily } from "../context/ThemeProvider";
|
|
4
3
|
import { type EventHandlerContextType } from "../context/EventHandlerProvider";
|
|
5
4
|
export type CustomError = {
|
|
@@ -15,7 +14,6 @@ export type MoneyLionOfferCarouselProps = {
|
|
|
15
14
|
productType?: string;
|
|
16
15
|
query?: string;
|
|
17
16
|
tags?: string;
|
|
18
|
-
displayLayout?: Layout;
|
|
19
17
|
staticProductTypes?: string;
|
|
20
18
|
fontFamily?: Partial<FontFamily>;
|
|
21
19
|
showProductTypeLabel?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MoneyLionOfferCarousel.d.ts","sourceRoot":"","sources":["../../../../src/components/MoneyLionOfferCarousel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"MoneyLionOfferCarousel.d.ts","sourceRoot":"","sources":["../../../../src/components/MoneyLionOfferCarousel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAS5D,OAAO,EAAiB,KAAK,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAC1E,OAAO,EAEN,KAAK,uBAAuB,EAC5B,MAAM,iCAAiC,CAAC;AAQzC,MAAM,MAAM,WAAW,GAAG;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG;IACzC,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,eAAe,EAAE,MAAM,CAAC;IACxB,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,UAAU,CAAC,EAAE,OAAO,CAAC,UAAU,CAAC,CAAC;IACjC,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,KAAK,EAAE,OAAO,CAAC;IACf,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC7B,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI,CAAC;IACvC,MAAM,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;CACrC,CAAC;AA+PF,eAAO,MAAM,sBAAsB,UAC3B,2BAA2B,GACjC,KAAK,uBAAuB,EAAE,eAAe,GAAG,UAAU,CAAC,sBAa5D,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { type TextStyle, type StyleProp, type TextProps as RNTextProps } from "react-native";
|
|
2
|
+
import { Text as RNText, type TextStyle, type StyleProp, type TextProps as RNTextProps } from "react-native";
|
|
3
3
|
import { type ThemeColors } from "../../context/ThemeProvider";
|
|
4
4
|
export type Variant = "title-1" | "title-2" | "title-3" | "title-4" | "title-5" | "title-6" | "featured-1" | "featured-2" | "featured-3" | "body-1" | "body-2" | "body-3" | "caption-1" | "caption-2";
|
|
5
5
|
export type TextDecoration = "line-through";
|
|
@@ -12,6 +12,7 @@ export interface TextProps extends Omit<RNTextProps, "style"> {
|
|
|
12
12
|
children?: React.ReactNode;
|
|
13
13
|
style?: StyleProp<TextStyle>;
|
|
14
14
|
}
|
|
15
|
+
export type TextRef = React.ElementRef<typeof RNText>;
|
|
15
16
|
declare const Text: React.FC<TextProps>;
|
|
16
17
|
export default Text;
|
|
17
18
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Text/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Text/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACN,IAAI,IAAI,MAAM,EAEd,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,SAAS,IAAI,WAAW,EAC7B,MAAM,cAAc,CAAC;AACtB,OAAO,EAAY,KAAK,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAIzE,MAAM,MAAM,OAAO,GAChB,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,GACT,YAAY,GACZ,YAAY,GACZ,YAAY,GACZ,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,WAAW,GACX,WAAW,CAAC;AAGf,MAAM,MAAM,cAAc,GAAG,cAAc,CAAC;AAG5C,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,QAAQ,GAAG,MAAM,CAAC;AAGtD,MAAM,WAAW,SAAU,SAAQ,IAAI,CAAC,WAAW,EAAE,OAAO,CAAC;IAC5D,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,WAAW,CAAC;IAC1B,UAAU,CAAC,EAAE,cAAc,CAAC;IAC5B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC7B;AAED,MAAM,MAAM,OAAO,GAAG,KAAK,CAAC,UAAU,CAAC,OAAO,MAAM,CAAC,CAAC;AAItD,QAAA,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAgD7B,CAAC;AAwEF,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { TouchableOpacity as RNTouchableOpacity } from "react-native";
|
|
3
|
+
export type TouchableOpacityProps = React.ComponentProps<typeof RNTouchableOpacity>;
|
|
4
|
+
export type TouchableOpacityRef = React.ElementRef<typeof RNTouchableOpacity>;
|
|
5
|
+
declare const TouchableOpacity: import("react").ForwardRefExoticComponent<import("react-native").TouchableOpacityProps & Pick<import("react-native").AccessibilityProps, "accessibilityLabel"> & Pick<import("react-native").ViewProps, "testID"> & import("react").RefAttributes<RNTouchableOpacity>>;
|
|
6
|
+
export default TouchableOpacity;
|
|
7
|
+
//# sourceMappingURL=TouchableOpacity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TouchableOpacity.d.ts","sourceRoot":"","sources":["../../../../../src/components/Touchable/TouchableOpacity.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,gBAAgB,IAAI,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAItE,MAAM,MAAM,qBAAqB,GAAG,KAAK,CAAC,cAAc,CACvD,OAAO,kBAAkB,CACzB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,KAAK,CAAC,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9E,QAAA,MAAM,gBAAgB,wQAErB,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Touchable/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACjE,cAAc,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare function withTestID<P extends object, R = unknown>(Component: React.ComponentType<P & React.RefAttributes<R>>): React.ForwardRefExoticComponent<React.PropsWithoutRef<P & Pick<import("react-native").AccessibilityProps, "accessibilityLabel"> & Pick<import("react-native").ViewProps, "testID">> & React.RefAttributes<R>>;
|
|
3
|
+
export default withTestID;
|
|
4
|
+
//# sourceMappingURL=withTestID.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"withTestID.d.ts","sourceRoot":"","sources":["../../../../../src/components/utils/withTestID.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AA8B1B,iBAAS,UAAU,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,GAAG,OAAO,EAChD,SAAS,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC,GAAG,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,iNAqB1D;AAGD,eAAe,UAAU,CAAC"}
|
|
@@ -15,7 +15,6 @@ export declare function getPageData({ context, params, onRateTableSubmit, }: Get
|
|
|
15
15
|
currentCountry: string | undefined;
|
|
16
16
|
showCardBorder: boolean | undefined;
|
|
17
17
|
showProductTypeLabel: boolean | undefined;
|
|
18
|
-
displayLayout: "fixed" | "carousel";
|
|
19
18
|
}>;
|
|
20
19
|
export {};
|
|
21
20
|
//# sourceMappingURL=pageData.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pageData.d.ts","sourceRoot":"","sources":["../../../src/pageData.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sDAAsD,CAAC;AAGvF,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,qCAAqC,CAAC;AACvF,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"pageData.d.ts","sourceRoot":"","sources":["../../../src/pageData.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sDAAsD,CAAC;AAGvF,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,qCAAqC,CAAC;AACvF,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAU7E,KAAK,gBAAgB,GAAG;IACvB,OAAO,EAAE,UAAU,CAAC;IACpB,MAAM,EAAE,2BAA2B,CAAC;IACpC,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,sBAAsB,KAAK,IAAI,CAAC;CAC5D,CAAC;AAEF,wBAAsB,WAAW,CAAC,EACjC,OAAO,EACP,MAAM,EACN,iBAAiB,GACjB,EAAE,gBAAgB;;;;;;;;;GAuElB"}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import { type Layout } from "../utils";
|
|
2
1
|
import type { GetProductTypesProps, ProductTypesResult } from "./getProductTypes";
|
|
3
2
|
import type { PartnerOverride, ProductTypeDefinition } from "../capabilities/offer-catalog/src";
|
|
4
3
|
import type { CnfContext } from "../capabilities/core/src/system/cnfContext/CnfContext";
|
|
5
4
|
export type GetDynamicOffersProps = {
|
|
6
5
|
tags: string;
|
|
7
|
-
displayLayout: Layout;
|
|
8
6
|
productTypes: string[];
|
|
9
7
|
resultType: ProductTypesResult["resultType"];
|
|
10
8
|
isCachedOffersRequest: boolean;
|
|
@@ -18,7 +16,7 @@ export type GetDynamicOffersProps = {
|
|
|
18
16
|
* @param {GetDynamicOffersProps} params - The parameters for retrieving dynamic offers.
|
|
19
17
|
* @returns {Promise<{ productTypeDisplayName: string; offers: typeof offers }>} An object containing the product type display name and the offers.
|
|
20
18
|
*/
|
|
21
|
-
export declare const getDynamicOffers: ({ tags,
|
|
19
|
+
export declare const getDynamicOffers: ({ tags, defaultProductType, productTypes, resultType, isCachedOffersRequest, productTypesDefinition, partnersOverrideDefinition, context, }: Omit<GetDynamicOffersProps, "isDev">) => Promise<{
|
|
22
20
|
offers: import("../capabilities/offer-catalog/src").BaseOffer[];
|
|
23
21
|
isError: boolean | undefined;
|
|
24
22
|
errorCode: number | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getDynamicOffers.d.ts","sourceRoot":"","sources":["../../../../src/services/getDynamicOffers.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getDynamicOffers.d.ts","sourceRoot":"","sources":["../../../../src/services/getDynamicOffers.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EACX,oBAAoB,EACpB,kBAAkB,EAClB,MAAM,mBAAmB,CAAC;AAI3B,OAAO,KAAK,EACX,eAAe,EACf,qBAAqB,EACrB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uDAAuD,CAAC;AAExF,MAAM,MAAM,qBAAqB,GAAG;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,UAAU,EAAE,kBAAkB,CAAC,YAAY,CAAC,CAAC;IAC7C,qBAAqB,EAAE,OAAO,CAAC;IAC/B,sBAAsB,EAAE,qBAAqB,EAAE,CAAC;IAChD,0BAA0B,EAAE,eAAe,EAAE,CAAC;IAC9C,OAAO,EAAE,UAAU,CAAC;CACpB,GAAG,IAAI,CACP,oBAAoB,EAClB,SAAS,GACT,kBAAkB,GAClB,OAAO,GACP,WAAW,GACX,UAAU,GACV,gBAAgB,CAClB,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,gJAS1B,KAAK,qBAAqB,EAAE,OAAO,CAAC;;;;;;EA6CtC,CAAC"}
|
|
@@ -2,7 +2,6 @@ export * from "./addClientTagsToOfferLinks";
|
|
|
2
2
|
export * from "./getDefaultProductType";
|
|
3
3
|
export * from "./getOffersByProductTypes";
|
|
4
4
|
export * from "./getProductTypesDefinition";
|
|
5
|
-
export * from "./layouts";
|
|
6
5
|
export * from "./resolveProductTypes";
|
|
7
6
|
export * from "./selectDynamicOffers";
|
|
8
7
|
export * from "./sortOffersByRecommendationScore";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mCAAmC,CAAC;AAClD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
import React, { forwardRef, type ReactNode } from "react";
|
|
2
2
|
import {
|
|
3
|
-
TouchableOpacity,
|
|
4
3
|
View,
|
|
5
4
|
StyleSheet,
|
|
6
5
|
ActivityIndicator,
|
|
7
6
|
type StyleProp,
|
|
8
7
|
type ViewStyle,
|
|
9
|
-
type TouchableOpacityProps,
|
|
10
8
|
} from "react-native";
|
|
11
9
|
import { useTheme, type ThemeColors } from "../../context/ThemeProvider";
|
|
12
10
|
import Text, { type Variant } from "../Text";
|
|
11
|
+
import {
|
|
12
|
+
TouchableOpacity,
|
|
13
|
+
type TouchableOpacityProps,
|
|
14
|
+
type TouchableOpacityRef,
|
|
15
|
+
} from "../Touchable";
|
|
13
16
|
|
|
14
17
|
// Helper function to determine text color based on background color
|
|
15
18
|
const getContrastColor = (hexColor: string): string => {
|
|
@@ -42,7 +45,7 @@ export interface ButtonProps extends TouchableOpacityProps {
|
|
|
42
45
|
textFontWeight?: "normal" | "medium" | "bold";
|
|
43
46
|
}
|
|
44
47
|
|
|
45
|
-
const Button = forwardRef<
|
|
48
|
+
const Button = forwardRef<TouchableOpacityRef, ButtonProps>((props, ref) => {
|
|
46
49
|
const {
|
|
47
50
|
color,
|
|
48
51
|
highlighted = false,
|
|
@@ -1,21 +1,24 @@
|
|
|
1
1
|
import React, { useCallback, useState } from "react";
|
|
2
2
|
import Text from "../../Text";
|
|
3
|
-
import {
|
|
3
|
+
import { StyleSheet } from "react-native";
|
|
4
4
|
import { OfferDetailsModal } from "../../Modal/OfferDetailsModal";
|
|
5
5
|
import { useEventHandler } from "../../../context/EventHandlerProvider";
|
|
6
6
|
import type { BaseOffer } from "../../../capabilities/offer-catalog/src";
|
|
7
7
|
import { getEventCallbackContext } from "../../../capabilities/offer-catalog/src/utils/getEventCallbackContext";
|
|
8
|
+
import { TouchableOpacity } from "../../Touchable";
|
|
8
9
|
|
|
9
10
|
export type SeeMoreProps = {
|
|
10
11
|
offer: BaseOffer;
|
|
11
12
|
offerIndex: number;
|
|
12
13
|
isHorizontalScroll?: boolean;
|
|
14
|
+
testID?: string;
|
|
13
15
|
};
|
|
14
16
|
|
|
15
17
|
export const SeeMore = ({
|
|
16
18
|
offer,
|
|
17
19
|
offerIndex,
|
|
18
20
|
isHorizontalScroll = true,
|
|
21
|
+
testID,
|
|
19
22
|
}: SeeMoreProps) => {
|
|
20
23
|
const [modalVisible, setModalVisible] = useState(false);
|
|
21
24
|
const {
|
|
@@ -59,7 +62,11 @@ export const SeeMore = ({
|
|
|
59
62
|
|
|
60
63
|
return (
|
|
61
64
|
<>
|
|
62
|
-
<TouchableOpacity
|
|
65
|
+
<TouchableOpacity
|
|
66
|
+
onPress={handleMoreInfoClick}
|
|
67
|
+
style={styles.container}
|
|
68
|
+
testID={testID}
|
|
69
|
+
>
|
|
63
70
|
<Text
|
|
64
71
|
variant={"body-3"}
|
|
65
72
|
color={"foregroundNeutral"}
|
|
@@ -2,13 +2,11 @@ import React from "react";
|
|
|
2
2
|
import { productTypeBuilder } from "../../builder/builder";
|
|
3
3
|
import { DynamicOffersRender, FallbackOfferTemplate } from "./Render";
|
|
4
4
|
import type { DynamicOffersRenderProps } from "./Render/DynamicOffersRender";
|
|
5
|
-
import type { Layout } from "../../utils";
|
|
6
5
|
import { View } from "react-native";
|
|
7
6
|
|
|
8
7
|
export type DynamicOfferProps = {
|
|
9
8
|
title?: string;
|
|
10
9
|
subtitle?: string;
|
|
11
|
-
displayLayout: Layout;
|
|
12
10
|
showCardBorder: boolean;
|
|
13
11
|
showProductTypeLabel?: boolean;
|
|
14
12
|
shouldHideFooter: boolean;
|
|
@@ -24,7 +22,6 @@ export type DynamicOfferProps = {
|
|
|
24
22
|
export const DynamicOffers = ({
|
|
25
23
|
title,
|
|
26
24
|
subtitle,
|
|
27
|
-
displayLayout,
|
|
28
25
|
showCardBorder,
|
|
29
26
|
showProductTypeLabel,
|
|
30
27
|
// shouldHideFooter,
|
|
@@ -48,7 +45,6 @@ export const DynamicOffers = ({
|
|
|
48
45
|
title={title}
|
|
49
46
|
subtitle={subtitle}
|
|
50
47
|
offers={offers}
|
|
51
|
-
displayLayout={displayLayout}
|
|
52
48
|
fallbackTemplate={FallbackOfferTemplate}
|
|
53
49
|
productTypeBuilder={productTypeBuilder}
|
|
54
50
|
showCardBorder={showCardBorder}
|
|
@@ -1,34 +1,15 @@
|
|
|
1
1
|
import React, { Suspense } from "react";
|
|
2
|
-
import { match } from "ts-pattern";
|
|
3
|
-
import type { Layout } from "../../utils";
|
|
4
2
|
import { DynamicOffers, type DynamicOfferProps } from "./DynamicOffers";
|
|
5
3
|
import Skeleton from "../Skeleton";
|
|
6
|
-
import { View, StyleSheet } from "react-native";
|
|
7
4
|
|
|
8
|
-
export const DynamicOfferSkeleton = React.memo(
|
|
9
|
-
({ displayLayout = "carousel" }: { displayLayout?: Layout }) =>
|
|
10
|
-
match(displayLayout)
|
|
11
|
-
.with("fixed", () => <Skeleton height={300} />)
|
|
12
|
-
.otherwise(() => (
|
|
13
|
-
<View style={styles.skeletonContainer}>
|
|
14
|
-
<Skeleton height={10} width={73} />
|
|
15
|
-
<Skeleton height={300} />
|
|
16
|
-
</View>
|
|
17
|
-
))
|
|
18
|
-
);
|
|
5
|
+
export const DynamicOfferSkeleton = React.memo(() => <Skeleton height={300} />);
|
|
19
6
|
|
|
20
7
|
export const DynamicOffersContainer = React.memo(
|
|
21
8
|
({ config }: { config: DynamicOfferProps }) => {
|
|
22
9
|
return (
|
|
23
|
-
<Suspense
|
|
24
|
-
fallback={<DynamicOfferSkeleton displayLayout={config.displayLayout} />}
|
|
25
|
-
>
|
|
10
|
+
<Suspense fallback={<DynamicOfferSkeleton />}>
|
|
26
11
|
<DynamicOffers {...config} />
|
|
27
12
|
</Suspense>
|
|
28
13
|
);
|
|
29
14
|
}
|
|
30
15
|
);
|
|
31
|
-
|
|
32
|
-
const styles = StyleSheet.create({
|
|
33
|
-
skeletonContainer: { gap: 2, width: "100%" },
|
|
34
|
-
});
|
|
@@ -5,7 +5,6 @@ import React, {
|
|
|
5
5
|
useRef,
|
|
6
6
|
useState,
|
|
7
7
|
} from "react";
|
|
8
|
-
import type { Layout } from "../../../utils";
|
|
9
8
|
import { productTypeBuilder as builder } from "../../../builder/builder";
|
|
10
9
|
import { Offer } from "./Offer";
|
|
11
10
|
import {
|
|
@@ -29,7 +28,6 @@ export type DynamicOffersRenderProps = {
|
|
|
29
28
|
title?: string;
|
|
30
29
|
subtitle?: string;
|
|
31
30
|
offers: BaseOffer[];
|
|
32
|
-
displayLayout: Layout;
|
|
33
31
|
fallbackTemplate?: React.FC<{
|
|
34
32
|
offer: BaseOffer;
|
|
35
33
|
showProductTypeLabel?: boolean;
|
|
@@ -50,7 +48,6 @@ export const DynamicOffersRender = ({
|
|
|
50
48
|
title,
|
|
51
49
|
subtitle,
|
|
52
50
|
offers,
|
|
53
|
-
displayLayout,
|
|
54
51
|
productTypeBuilder = builder,
|
|
55
52
|
fallbackTemplate,
|
|
56
53
|
showCardBorder,
|
|
@@ -268,32 +265,18 @@ export const DynamicOffersRender = ({
|
|
|
268
265
|
const fullCardWidth = offers.length === 1 || !isHorizontalScroll;
|
|
269
266
|
|
|
270
267
|
// Create offer components
|
|
271
|
-
return
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
fullCardWidth,
|
|
281
|
-
isHorizontalScroll,
|
|
282
|
-
}),
|
|
283
|
-
]
|
|
284
|
-
: Offer({
|
|
285
|
-
productTypeBuilder,
|
|
286
|
-
offers,
|
|
287
|
-
showProductTypeLabel,
|
|
288
|
-
fallbackTemplate,
|
|
289
|
-
showCardBorder,
|
|
290
|
-
fullCardWidth,
|
|
291
|
-
isHorizontalScroll,
|
|
292
|
-
});
|
|
268
|
+
return Offer({
|
|
269
|
+
productTypeBuilder,
|
|
270
|
+
offers,
|
|
271
|
+
showProductTypeLabel,
|
|
272
|
+
fallbackTemplate,
|
|
273
|
+
showCardBorder,
|
|
274
|
+
fullCardWidth,
|
|
275
|
+
isHorizontalScroll,
|
|
276
|
+
});
|
|
293
277
|
}, [
|
|
294
278
|
offers,
|
|
295
279
|
isHorizontalScroll,
|
|
296
|
-
displayLayout,
|
|
297
280
|
productTypeBuilder,
|
|
298
281
|
showProductTypeLabel,
|
|
299
282
|
fallbackTemplate,
|
|
@@ -348,7 +331,6 @@ export const DynamicOffersRender = ({
|
|
|
348
331
|
const config = {
|
|
349
332
|
title,
|
|
350
333
|
subtitle,
|
|
351
|
-
displayLayout,
|
|
352
334
|
showCardBorder,
|
|
353
335
|
showProductTypeLabel,
|
|
354
336
|
shouldHideFooter: false,
|
|
@@ -373,6 +355,7 @@ export const DynamicOffersRender = ({
|
|
|
373
355
|
variant="featured-3"
|
|
374
356
|
weight="bold"
|
|
375
357
|
color="foregroundNeutral"
|
|
358
|
+
testID="offer_carousel.dynamic_offers.title"
|
|
376
359
|
>
|
|
377
360
|
{title}
|
|
378
361
|
</Text>
|
|
@@ -396,6 +379,7 @@ export const DynamicOffersRender = ({
|
|
|
396
379
|
)}
|
|
397
380
|
{isHorizontalScroll ? (
|
|
398
381
|
<ScrollView
|
|
382
|
+
scrollEnabled={wrappedOfferComponents?.length > 1}
|
|
399
383
|
horizontal={true}
|
|
400
384
|
showsHorizontalScrollIndicator={false}
|
|
401
385
|
contentContainerStyle={styles.contentContainer}
|