@sunrise-upc/mobile-prod-card 8.2.2-beta.2 → 8.3.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/dist/cjs/components/BenefitWrapper/BenefitValidate.d.ts +2 -2
- package/dist/cjs/components/BenefitWrapper/BenefitWrapper.d.ts +2 -2
- package/dist/cjs/components/BenefitWrapper/BenefitsValidateWrapper.d.ts +1 -1
- package/dist/cjs/components/FalconButtonV2/FalconButtonV2.d.ts +1 -1
- package/dist/cjs/components/FalconMessage/FalconMessage.d.ts +1 -1
- package/dist/cjs/components/LineCheckV3/AutoComplete.d.ts +1 -1
- package/dist/cjs/components/LineCheckV3/GenericModal.d.ts +1 -1
- package/dist/cjs/components/LineCheckV3/IndividualLineCheck.d.ts +1 -1
- package/dist/cjs/components/LineCheckV3/LineCheckInput.d.ts +1 -1
- package/dist/cjs/components/LineCheckV3/LineCheckOverlay.d.ts +1 -1
- package/dist/cjs/components/LineCheckV3/Success.d.ts +1 -1
- package/dist/cjs/components/NewLineCheck/AdvanceSearch.d.ts +2 -2
- package/dist/cjs/components/NewLineCheck/GenericModal.d.ts +1 -1
- package/dist/cjs/components/NewLineCheck/NewLCInput.d.ts +2 -2
- package/dist/cjs/components/NewLineCheck/SuccessCoverage.d.ts +2 -2
- package/dist/cjs/components/PretoPost/PreToPostSubsPopup.d.ts +1 -1
- package/dist/cjs/components/ProductDetailsV3/BenefitsSectionV3.d.ts +1 -1
- package/dist/cjs/components/ProductDetailsV3/CashBackV2/CashbackV2.d.ts +1 -1
- package/dist/cjs/components/ProductDetailsV3/ChooseGiftV2.d.ts +1 -1
- package/dist/cjs/components/ProductDetailsV3/GiftConfigV2.d.ts +1 -1
- package/dist/cjs/components/ProductDetailsV3/ProductPriceV3.d.ts +1 -1
- package/dist/cjs/components/ProductDetailsV3/ReactInputSelectV2/ReactInputSelectV2.d.ts +1 -17
- package/dist/cjs/components/ProductDetailsV3/tv/EntertainmentOptionsV2/EntertainmentOptionsV2.d.ts +1 -1
- package/dist/cjs/components/ProductDetailsV3/tv/TVChannelOfferV2.d.ts +1 -1
- package/dist/cjs/components/ProgressionBar/ProgressionBar.d.ts +1 -1
- package/dist/cjs/components/ReactInputSelect/ReactInputSelect.d.ts +1 -16
- package/dist/cjs/components/ResponsiveRow/row.d.ts +1 -1
- package/dist/cjs/components/StaticLineTable/ExsistingSubscriptionCards.d.ts +1 -1
- package/dist/cjs/components/StaticLineTable/ExsistingSubscriptionModal.d.ts +1 -1
- package/dist/cjs/components/StaticLineTable/OttServiceOptions/OttServiceOptionsPopup.d.ts +2 -2
- package/dist/cjs/components/StaticLineTable/OttServiceOptions/OttServiceOptionsSmallPopup.d.ts +2 -2
- package/dist/cjs/components/StaticLineTable/StaticLineTableStore/StaticLineTableProvider.d.ts +1 -1
- package/dist/cjs/components/StaticLineTable/StaticProductDatatypes.d.ts +1 -0
- package/dist/cjs/components/StaticLineTable/TvOptionsContainer.d.ts +2 -2
- package/dist/cjs/components/StickyProductAnchor/StickyProductAnchor.d.ts +2 -2
- package/dist/cjs/components/ToolTip/ToolTip.d.ts +1 -1
- package/dist/cjs/components/UltimateBundleLinetable/DpLinetableContainer.d.ts +2 -2
- package/dist/cjs/components/UltimateBundleLinetable/DpProduct.d.ts +2 -2
- package/dist/cjs/components/UltimateBundleLinetable/DpTabContainer.d.ts +2 -2
- package/dist/cjs/components/UltimateBundleLinetable/DpTableDeviceSection/DpTableDeviceSection.d.ts +2 -2
- package/dist/cjs/components/UltimateBundleLinetable/DpTableFlexSection/DpTableFlexSection.d.ts +2 -2
- package/dist/cjs/components/UltimateBundleLinetable/DpTableMobileSection/DpTableMobileSection.d.ts +2 -2
- package/dist/cjs/components/UltimateBundleLinetable/checkoutRedirectionPopup/checkoutRedirectionPopup.d.ts +2 -2
- package/dist/cjs/components/UserLoggedPricesToggle/UserLoggedPricesToggle.d.ts +1 -1
- package/dist/cjs/components/index.d.ts +0 -2
- package/dist/cjs/components/lineTable/OrderButton.d.ts +1 -1
- package/dist/cjs/components/sharedCarousel/CarouselComponent.d.ts +1 -1
- package/dist/cjs/components/skeletonLoader/Skeletonloader.d.ts +1 -1
- package/dist/cjs/index.js +3 -3
- package/dist/cjs/services/LineTableService.d.ts +0 -1
- package/dist/cjs/services/index.d.ts +0 -2
- package/dist/cjs/utils/constants.d.ts +1 -16
- package/dist/esm/components/BenefitWrapper/BenefitValidate.d.ts +2 -2
- package/dist/esm/components/BenefitWrapper/BenefitWrapper.d.ts +2 -2
- package/dist/esm/components/BenefitWrapper/BenefitsValidateWrapper.d.ts +1 -1
- package/dist/esm/components/FalconButtonV2/FalconButtonV2.d.ts +1 -1
- package/dist/esm/components/FalconMessage/FalconMessage.d.ts +1 -1
- package/dist/esm/components/LineCheckV3/AutoComplete.d.ts +1 -1
- package/dist/esm/components/LineCheckV3/GenericModal.d.ts +1 -1
- package/dist/esm/components/LineCheckV3/IndividualLineCheck.d.ts +1 -1
- package/dist/esm/components/LineCheckV3/LineCheckInput.d.ts +1 -1
- package/dist/esm/components/LineCheckV3/LineCheckOverlay.d.ts +1 -1
- package/dist/esm/components/LineCheckV3/Success.d.ts +1 -1
- package/dist/esm/components/NewLineCheck/AdvanceSearch.d.ts +2 -2
- package/dist/esm/components/NewLineCheck/GenericModal.d.ts +1 -1
- package/dist/esm/components/NewLineCheck/NewLCInput.d.ts +2 -2
- package/dist/esm/components/NewLineCheck/SuccessCoverage.d.ts +2 -2
- package/dist/esm/components/PretoPost/PreToPostSubsPopup.d.ts +1 -1
- package/dist/esm/components/ProductDetailsV3/BenefitsSectionV3.d.ts +1 -1
- package/dist/esm/components/ProductDetailsV3/CashBackV2/CashbackV2.d.ts +1 -1
- package/dist/esm/components/ProductDetailsV3/ChooseGiftV2.d.ts +1 -1
- package/dist/esm/components/ProductDetailsV3/GiftConfigV2.d.ts +1 -1
- package/dist/esm/components/ProductDetailsV3/ProductPriceV3.d.ts +1 -1
- package/dist/esm/components/ProductDetailsV3/ReactInputSelectV2/ReactInputSelectV2.d.ts +1 -17
- package/dist/esm/components/ProductDetailsV3/tv/EntertainmentOptionsV2/EntertainmentOptionsV2.d.ts +1 -1
- package/dist/esm/components/ProductDetailsV3/tv/TVChannelOfferV2.d.ts +1 -1
- package/dist/esm/components/ProgressionBar/ProgressionBar.d.ts +1 -1
- package/dist/esm/components/ReactInputSelect/ReactInputSelect.d.ts +1 -16
- package/dist/esm/components/ResponsiveRow/row.d.ts +1 -1
- package/dist/esm/components/StaticLineTable/ExsistingSubscriptionCards.d.ts +1 -1
- package/dist/esm/components/StaticLineTable/ExsistingSubscriptionModal.d.ts +1 -1
- package/dist/esm/components/StaticLineTable/OttServiceOptions/OttServiceOptionsPopup.d.ts +2 -2
- package/dist/esm/components/StaticLineTable/OttServiceOptions/OttServiceOptionsSmallPopup.d.ts +2 -2
- package/dist/esm/components/StaticLineTable/StaticLineTableStore/StaticLineTableProvider.d.ts +1 -1
- package/dist/esm/components/StaticLineTable/StaticProductDatatypes.d.ts +1 -0
- package/dist/esm/components/StaticLineTable/TvOptionsContainer.d.ts +2 -2
- package/dist/esm/components/StickyProductAnchor/StickyProductAnchor.d.ts +2 -2
- package/dist/esm/components/ToolTip/ToolTip.d.ts +1 -1
- package/dist/esm/components/UltimateBundleLinetable/DpLinetableContainer.d.ts +2 -2
- package/dist/esm/components/UltimateBundleLinetable/DpProduct.d.ts +2 -2
- package/dist/esm/components/UltimateBundleLinetable/DpTabContainer.d.ts +2 -2
- package/dist/esm/components/UltimateBundleLinetable/DpTableDeviceSection/DpTableDeviceSection.d.ts +2 -2
- package/dist/esm/components/UltimateBundleLinetable/DpTableFlexSection/DpTableFlexSection.d.ts +2 -2
- package/dist/esm/components/UltimateBundleLinetable/DpTableMobileSection/DpTableMobileSection.d.ts +2 -2
- package/dist/esm/components/UltimateBundleLinetable/checkoutRedirectionPopup/checkoutRedirectionPopup.d.ts +2 -2
- package/dist/esm/components/UserLoggedPricesToggle/UserLoggedPricesToggle.d.ts +1 -1
- package/dist/esm/components/index.d.ts +0 -2
- package/dist/esm/components/lineTable/OrderButton.d.ts +1 -1
- package/dist/esm/components/sharedCarousel/CarouselComponent.d.ts +1 -1
- package/dist/esm/components/skeletonLoader/Skeletonloader.d.ts +1 -1
- package/dist/esm/index.js +3 -3
- package/dist/esm/services/LineTableService.d.ts +0 -1
- package/dist/esm/services/index.d.ts +0 -2
- package/dist/esm/utils/constants.d.ts +1 -16
- package/dist/index.d.ts +22 -69
- package/package.json +13 -13
- package/dist/cjs/components/DeviceCardWrapper/DeviceCards/DeviceCards.d.ts +0 -4
- package/dist/cjs/components/DeviceCardWrapper/DeviceCards/index.d.ts +0 -1
- package/dist/cjs/components/DeviceCardWrapper/DevicePrice/DevicePrice.d.ts +0 -4
- package/dist/cjs/components/DeviceCardWrapper/DevicePriceWrapper/DevicePriceWrapper.d.ts +0 -4
- package/dist/cjs/components/DeviceCardWrapper/DevicePriceWrapper/DevicePriceWrapper.types.d.ts +0 -11
- package/dist/cjs/components/Gift/ChooseGiftV2.d.ts +0 -3
- package/dist/cjs/components/Gift/GiftConfigV2.d.ts +0 -3
- package/dist/cjs/components/freshProductBanner/FreshProductDetails.d.ts +0 -4
- package/dist/cjs/components/freshProductBanner/ProductDetailsModal.d.ts +0 -15
- package/dist/cjs/components/freshProductBanner/Timer/ExpiredTimer.d.ts +0 -19
- package/dist/cjs/components/freshProductBanner/Timer/Timer.d.ts +0 -31
- package/dist/cjs/components/freshProductBanner/Timer/Timer.types.d.ts +0 -5
- package/dist/cjs/components/freshProductBanner/Timer/util.d.ts +0 -4
- package/dist/cjs/components/freshProductBanner/freshBanner.types.d.ts +0 -31
- package/dist/cjs/components/freshProductBanner/freshProductBanner.d.ts +0 -5
- package/dist/cjs/components/freshProductBanner/offerResponse.d.ts +0 -130
- package/dist/cjs/services/DevicePropConfig.d.ts +0 -12
- package/dist/cjs/services/DeviceService.d.ts +0 -11
- package/dist/cjs/utils/DeviceUtils.d.ts +0 -2
- package/dist/esm/components/DeviceCardWrapper/DeviceCards/DeviceCards.d.ts +0 -4
- package/dist/esm/components/DeviceCardWrapper/DeviceCards/index.d.ts +0 -1
- package/dist/esm/components/DeviceCardWrapper/DevicePrice/DevicePrice.d.ts +0 -4
- package/dist/esm/components/DeviceCardWrapper/DevicePriceWrapper/DevicePriceWrapper.d.ts +0 -4
- package/dist/esm/components/DeviceCardWrapper/DevicePriceWrapper/DevicePriceWrapper.types.d.ts +0 -11
- package/dist/esm/components/Gift/ChooseGiftV2.d.ts +0 -3
- package/dist/esm/components/Gift/GiftConfigV2.d.ts +0 -3
- package/dist/esm/components/freshProductBanner/FreshProductDetails.d.ts +0 -4
- package/dist/esm/components/freshProductBanner/ProductDetailsModal.d.ts +0 -15
- package/dist/esm/components/freshProductBanner/Timer/ExpiredTimer.d.ts +0 -19
- package/dist/esm/components/freshProductBanner/Timer/Timer.d.ts +0 -31
- package/dist/esm/components/freshProductBanner/Timer/Timer.types.d.ts +0 -5
- package/dist/esm/components/freshProductBanner/Timer/util.d.ts +0 -4
- package/dist/esm/components/freshProductBanner/freshBanner.types.d.ts +0 -31
- package/dist/esm/components/freshProductBanner/freshProductBanner.d.ts +0 -5
- package/dist/esm/components/freshProductBanner/offerResponse.d.ts +0 -130
- package/dist/esm/services/DevicePropConfig.d.ts +0 -12
- package/dist/esm/services/DeviceService.d.ts +0 -11
- package/dist/esm/utils/DeviceUtils.d.ts +0 -2
|
@@ -10,5 +10,4 @@ export declare const validateP2P: (msisdn: any, endpoint: any) => Promise<any>;
|
|
|
10
10
|
export declare const getDeviceDetails: (deviceID: any, endpoint: any) => Promise<any>;
|
|
11
11
|
export declare const getDeviceModelsList: (brandId: any, endpoint: any) => Promise<any>;
|
|
12
12
|
export declare const trackPegaEvents: (endpoint: any, payload: {} | undefined, prospectId: string) => Promise<any>;
|
|
13
|
-
export declare const createCartWinV2: (productData: any, radioValue: string, defaultPromo: string, cartUrl: string, chooseGift: any) => Promise<any>;
|
|
14
13
|
export declare const fetchOttServiceOptions: () => Promise<any>;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
export * from './LineTableBasicPropConfig';
|
|
2
2
|
export * from './ProductTeaserPropsConfig';
|
|
3
3
|
export * from './LinecheckBasicPropConfig';
|
|
4
|
-
export * from './LoginBasicPropConfig';
|
|
5
|
-
export * from './DevicePropConfig';
|
|
6
4
|
export * from './StickyBottomSheetConfig';
|
|
7
5
|
export * from './LoginBasicPropConfig';
|
|
@@ -37,19 +37,11 @@ export declare const WP_FLEX_UPGRADE_NOT = "FLEX_UPGRADE_NOT";
|
|
|
37
37
|
export declare const EXCLUSIVE_BENEFIT_COLOR = "#008187";
|
|
38
38
|
export declare const ULTIMATEBUNDLE = "ultimateBundle";
|
|
39
39
|
export declare const ONE_ECOMMERCE_INTERNET_SUMMARY = "one-ecommerce-internetSummary";
|
|
40
|
-
export declare const
|
|
41
|
-
export declare const DPSUBSIDYPROMOTION = "dPSubsidyPromotion";
|
|
42
|
-
export declare const PROMO = "PROMO";
|
|
43
|
-
export declare const PROCEED_BUTTON = "proceedButton";
|
|
40
|
+
export declare const ONE_ECOMMERCE_SUMMARY = "one-ecommerce-summary";
|
|
44
41
|
export declare const MOBILE = "mobile";
|
|
45
42
|
export declare const DESKTOP = "desktop";
|
|
46
43
|
export declare const LARGE_DESKTOP = "large-desktop";
|
|
47
44
|
export declare const TABLET = "tablet";
|
|
48
|
-
export declare const INTERNET = "internet";
|
|
49
|
-
export declare const YOUTH = "YOUTH";
|
|
50
|
-
export declare const CURRENCY = "CHF";
|
|
51
|
-
export declare const DEFAULT = "default";
|
|
52
|
-
export declare const QOQA_RATE_PLAN = "QOQA_RATE_PLAN";
|
|
53
45
|
export declare const AVAILABLE_LANGUAGES: {
|
|
54
46
|
EN: string;
|
|
55
47
|
FR: string;
|
|
@@ -61,13 +53,6 @@ export declare const BREADCRUMB = "...";
|
|
|
61
53
|
export declare const PRE_TO_POST = "PRE_TO_POST";
|
|
62
54
|
export declare const P2PSUBSCRIBEDPLAN = "Sunrise Prepaid Unlimited";
|
|
63
55
|
export declare const TV_SERVICE_OPTION = "TV_SERVICE_OPTION";
|
|
64
|
-
export declare const PRIMARYCOLORS = "#da291c";
|
|
65
|
-
export declare const CENTER = "center";
|
|
66
|
-
export declare const RIGHT = "right";
|
|
67
|
-
export declare const ZEROES = "00";
|
|
68
|
-
export declare const LEFT = "left";
|
|
69
|
-
export declare const COLORWHITE = "#ffffff";
|
|
70
|
-
export declare const TRANSPARENT = "transparent";
|
|
71
56
|
export declare const ERROR_BORDER = "#BF0760";
|
|
72
57
|
export declare const DISABLED_BACKGROUND = "#E6E3DF";
|
|
73
58
|
export declare const LOGIN_MFA = "LOGIN_MFA";
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { MouseEventHandler, FC } from 'react';
|
|
2
3
|
import { ApiServiceV2 } from '@sunrise-upc/ajax-lib';
|
|
3
4
|
|
|
4
5
|
interface ButtonProps {
|
|
@@ -158,7 +159,7 @@ interface ProductTableSchema {
|
|
|
158
159
|
|
|
159
160
|
declare const ProductTableV3: FC<ProductTableSchema>;
|
|
160
161
|
|
|
161
|
-
declare const StickyProductAnchor: ({ content, offerData, lineCheckCallBack }: any) =>
|
|
162
|
+
declare const StickyProductAnchor: ({ content, offerData, lineCheckCallBack }: any) => JSX.Element;
|
|
162
163
|
|
|
163
164
|
interface StaticLinetableSchema {
|
|
164
165
|
content: any;
|
|
@@ -187,7 +188,7 @@ declare const StaticLineTable: FC<StaticLinetableSchema>;
|
|
|
187
188
|
|
|
188
189
|
declare const LincheckModal: FC<any>;
|
|
189
190
|
|
|
190
|
-
declare const BenefitWrapper: ({ content, metadata, setGenericErrorModalDetails, loginSuccess, basicConfigUrl, setLoginSuccess, isProdEnv, }: any) =>
|
|
191
|
+
declare const BenefitWrapper: ({ content, metadata, setGenericErrorModalDetails, loginSuccess, basicConfigUrl, setLoginSuccess, isProdEnv, }: any) => JSX.Element;
|
|
191
192
|
|
|
192
193
|
declare const Breadcrumb: FC<any>;
|
|
193
194
|
|
|
@@ -197,45 +198,10 @@ declare const HeroLoginBanner: FC<any>;
|
|
|
197
198
|
|
|
198
199
|
declare const CheckCoverage: FC<any>;
|
|
199
200
|
|
|
200
|
-
declare const DpLinetableContainer: ({ content, metadata, isProdEnv }: any) =>
|
|
201
|
+
declare const DpLinetableContainer: ({ content, metadata, isProdEnv }: any) => JSX.Element;
|
|
201
202
|
|
|
202
203
|
declare const CoverageCheckModal: FC<any>;
|
|
203
204
|
|
|
204
|
-
interface FreshBannerProps {
|
|
205
|
-
image: Asset;
|
|
206
|
-
}
|
|
207
|
-
interface AuthDataSchema {
|
|
208
|
-
firstName: string;
|
|
209
|
-
lastName: string;
|
|
210
|
-
personalisedName?: string;
|
|
211
|
-
authenticationtype: string;
|
|
212
|
-
hashedId: string;
|
|
213
|
-
lastLoginDate: string;
|
|
214
|
-
siteId: string;
|
|
215
|
-
focusFunction: (code: string, uniqueId: string) => void;
|
|
216
|
-
}
|
|
217
|
-
interface AuthserviceSchema {
|
|
218
|
-
authvalues: AuthDataSchema | undefined;
|
|
219
|
-
setAuthService: (authService: boolean) => void;
|
|
220
|
-
checklogin: () => void;
|
|
221
|
-
modalData: boolean;
|
|
222
|
-
}
|
|
223
|
-
interface FreshBannerSchema {
|
|
224
|
-
content: FreshBannerProps;
|
|
225
|
-
metadata?: any;
|
|
226
|
-
lineCheckCallBack?: () => void;
|
|
227
|
-
lineCheckSuccessCallBack?: () => void;
|
|
228
|
-
tableSelectedTab?: string;
|
|
229
|
-
baseConfig?: string;
|
|
230
|
-
authData?: AuthserviceSchema | undefined;
|
|
231
|
-
lineCheckOnClear?: () => void;
|
|
232
|
-
isProdEnv: boolean;
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
declare const FreshProductBannerHome: FC<FreshBannerSchema>;
|
|
236
|
-
|
|
237
|
-
declare const DeviceCards: FC<any>;
|
|
238
|
-
|
|
239
205
|
declare const StickyBottomSheet: FC<any>;
|
|
240
206
|
|
|
241
207
|
type ProgressionBarProps = {
|
|
@@ -259,7 +225,7 @@ interface OttServiceOptionsSmallPopupProps {
|
|
|
259
225
|
uniqueId?: any;
|
|
260
226
|
deviceFlow?: any;
|
|
261
227
|
}
|
|
262
|
-
declare const OttServiceOptionsSmallPopup: ({ content, addOptionsCallBack, metadata, constants, mainContent, preSelectedOptions, optionsResponse, updateResponseList, showPrice, productData, offeringData, uniqueId, deviceFlow }: OttServiceOptionsSmallPopupProps) =>
|
|
228
|
+
declare const OttServiceOptionsSmallPopup: ({ content, addOptionsCallBack, metadata, constants, mainContent, preSelectedOptions, optionsResponse, updateResponseList, showPrice, productData, offeringData, uniqueId, deviceFlow }: OttServiceOptionsSmallPopupProps) => JSX.Element;
|
|
263
229
|
|
|
264
230
|
interface LineTableBasicPropConfigSchema {
|
|
265
231
|
baseURL: string | '';
|
|
@@ -319,6 +285,21 @@ declare class LinecheckBasicPropConfig {
|
|
|
319
285
|
static create: (p_config: LinecheckBasicPropConfigSchema) => void;
|
|
320
286
|
}
|
|
321
287
|
|
|
288
|
+
interface StickyBottomSheetPropConfigSchema {
|
|
289
|
+
baseURL: string | '';
|
|
290
|
+
cartURL: string | '';
|
|
291
|
+
}
|
|
292
|
+
declare class StickyBottomSheetPropConfig {
|
|
293
|
+
private static instance;
|
|
294
|
+
config: StickyBottomSheetPropConfigSchema;
|
|
295
|
+
private constructor();
|
|
296
|
+
getConfig: () => StickyBottomSheetPropConfigSchema;
|
|
297
|
+
getBaseUrl: () => string;
|
|
298
|
+
getCartUrl: () => string;
|
|
299
|
+
static getInstance: () => StickyBottomSheetPropConfig;
|
|
300
|
+
static create: (p_config: StickyBottomSheetPropConfigSchema) => void;
|
|
301
|
+
}
|
|
302
|
+
|
|
322
303
|
interface LoginBasicPropConfigSchema {
|
|
323
304
|
baseURL: string | "";
|
|
324
305
|
}
|
|
@@ -335,32 +316,4 @@ declare class LoginBasicPropConfig {
|
|
|
335
316
|
getAPIServiceObject: () => ApiServiceV2;
|
|
336
317
|
}
|
|
337
318
|
|
|
338
|
-
|
|
339
|
-
baseURL: string | '';
|
|
340
|
-
}
|
|
341
|
-
declare class DevicePropConfig {
|
|
342
|
-
private static instance;
|
|
343
|
-
config: DevicePropSchema;
|
|
344
|
-
private constructor();
|
|
345
|
-
getConfig: () => DevicePropSchema;
|
|
346
|
-
getBaseUrl: () => string;
|
|
347
|
-
static getInstance: () => DevicePropConfig;
|
|
348
|
-
static create: (p_config: DevicePropSchema) => void;
|
|
349
|
-
}
|
|
350
|
-
|
|
351
|
-
interface StickyBottomSheetPropConfigSchema {
|
|
352
|
-
baseURL: string | '';
|
|
353
|
-
cartURL: string | '';
|
|
354
|
-
}
|
|
355
|
-
declare class StickyBottomSheetPropConfig {
|
|
356
|
-
private static instance;
|
|
357
|
-
config: StickyBottomSheetPropConfigSchema;
|
|
358
|
-
private constructor();
|
|
359
|
-
getConfig: () => StickyBottomSheetPropConfigSchema;
|
|
360
|
-
getBaseUrl: () => string;
|
|
361
|
-
getCartUrl: () => string;
|
|
362
|
-
static getInstance: () => StickyBottomSheetPropConfig;
|
|
363
|
-
static create: (p_config: StickyBottomSheetPropConfigSchema) => void;
|
|
364
|
-
}
|
|
365
|
-
|
|
366
|
-
export { AssetPathPropConfig, AssetPathPropConfigSchema, BenefitWrapper, Breadcrumb, Button, Card, CardEntitlement, CarouselComp, CheckCoverage, CoverageCheckModal, DeviceCards as DeviceCard, DevicePropConfig, DevicePropSchema, DpLinetableContainer as DpLinetable, FreshProductBannerHome, HeroLoginBanner as HeroLogin, LineTableBasicPropConfig, LineTableBasicPropConfigSchema, LinecheckBasicPropConfig, LinecheckBasicPropConfigSchema, LincheckModal as LinecheckModal, LoginBasicPropConfig, LoginBasicPropConfigSchema, LoginModal as LoginModalV2, OttServiceOptionsSmallPopup, PreToPostSubsPopup as PretoPostSubsPopup, ProductTableV3, ProductTeaser, ProductTeaserPropConfig, ProductTeaserPropConfigSchema, ProgressionBar, StaticLineTable, StickyBottomSheet, StickyBottomSheetPropConfig, StickyBottomSheetPropConfigSchema, StickyProductAnchor };
|
|
319
|
+
export { AssetPathPropConfig, AssetPathPropConfigSchema, BenefitWrapper, Breadcrumb, Button, Card, CardEntitlement, CarouselComp, CheckCoverage, CoverageCheckModal, DpLinetableContainer as DpLinetable, HeroLoginBanner as HeroLogin, LineTableBasicPropConfig, LineTableBasicPropConfigSchema, LinecheckBasicPropConfig, LinecheckBasicPropConfigSchema, LincheckModal as LinecheckModal, LoginBasicPropConfig, LoginBasicPropConfigSchema, LoginModal as LoginModalV2, OttServiceOptionsSmallPopup, PreToPostSubsPopup as PretoPostSubsPopup, ProductTableV3, ProductTeaser, ProductTeaserPropConfig, ProductTeaserPropConfigSchema, ProgressionBar, StaticLineTable, StickyBottomSheet, StickyBottomSheetPropConfig, StickyBottomSheetPropConfigSchema, StickyProductAnchor };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sunrise-upc/mobile-prod-card",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.3.0",
|
|
4
4
|
"description": "Starter project to create reusable functional component",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -39,13 +39,12 @@
|
|
|
39
39
|
"@rollup/plugin-terser": "^0.2.1",
|
|
40
40
|
"@rollup/plugin-typescript": "^10.0.1",
|
|
41
41
|
"@types/js-cookie": "^3.0.3",
|
|
42
|
-
"@types/node": "^18.
|
|
43
|
-
"@types/react": "^
|
|
44
|
-
"@types/react-dom": "^
|
|
45
|
-
"@types/uuid": "^
|
|
46
|
-
"axios": "^
|
|
47
|
-
"
|
|
48
|
-
"postcss": "^8.4.49",
|
|
42
|
+
"@types/node": "^16.18.11",
|
|
43
|
+
"@types/react": "^18.0.26",
|
|
44
|
+
"@types/react-dom": "^18.0.10",
|
|
45
|
+
"@types/uuid": "^8.3.4",
|
|
46
|
+
"axios": "^0.21.4",
|
|
47
|
+
"postcss": "8.4.21",
|
|
49
48
|
"rimraf": "^3.0.2",
|
|
50
49
|
"rollup": "^3.9.1",
|
|
51
50
|
"rollup-plugin-dts": "^5.1.0",
|
|
@@ -55,17 +54,18 @@
|
|
|
55
54
|
"sass": "^1.57.1",
|
|
56
55
|
"semver": "^7.3.8",
|
|
57
56
|
"tslib": "^2.4.1",
|
|
58
|
-
"typescript": "^4.9.4"
|
|
57
|
+
"typescript": "^4.9.4",
|
|
58
|
+
"cookies-next": "^2.1.1"
|
|
59
59
|
},
|
|
60
60
|
"peerDependencies": {
|
|
61
|
-
"@sunrise-upc/ajax-lib": "
|
|
61
|
+
"@sunrise-upc/ajax-lib": "^1.1.5",
|
|
62
62
|
"js-cookie": "^3.0.1",
|
|
63
|
-
"react": "
|
|
63
|
+
"react": "^17.0.2",
|
|
64
64
|
"react-bootstrap": "^2.0.0-beta.4",
|
|
65
|
-
"react-dom": "
|
|
65
|
+
"react-dom": "^17.0.2",
|
|
66
66
|
"react-multi-carousel": "^2.8.4",
|
|
67
67
|
"storyblok-rich-text-react-renderer-ts": "^3.2.0",
|
|
68
|
-
"uuid": "^
|
|
68
|
+
"uuid": "^8.3.2",
|
|
69
69
|
"react-select": "^5.2.2",
|
|
70
70
|
"react-loading-skeleton": "^3.4.0"
|
|
71
71
|
},
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './DeviceCards';
|
package/dist/cjs/components/DeviceCardWrapper/DevicePriceWrapper/DevicePriceWrapper.types.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { JSX } from "react";
|
|
2
|
-
export interface DevicePriceCollectionSchema {
|
|
3
|
-
discount?: boolean;
|
|
4
|
-
discountedPrice?: number;
|
|
5
|
-
actualPrice?: number;
|
|
6
|
-
durationDetails?: JSX.Element | null;
|
|
7
|
-
totalDiscount?: number;
|
|
8
|
-
totalActual?: number;
|
|
9
|
-
totalPriceText?: string;
|
|
10
|
-
priceTerm?: string;
|
|
11
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React, { JSX } from 'react';
|
|
2
|
-
interface GenericModalSchema {
|
|
3
|
-
modalState: boolean;
|
|
4
|
-
handler: () => void;
|
|
5
|
-
children: React.ReactNode;
|
|
6
|
-
showFooter: boolean;
|
|
7
|
-
footerNode?: React.ReactNode;
|
|
8
|
-
height?: string;
|
|
9
|
-
width?: string;
|
|
10
|
-
noCloseButton?: boolean;
|
|
11
|
-
backDrop?: boolean;
|
|
12
|
-
backButton?: string;
|
|
13
|
-
}
|
|
14
|
-
declare const ProductDetailsModal: ({ modalState, handler, showFooter, footerNode, children, width, height, noCloseButton, backButton, }: GenericModalSchema) => JSX.Element;
|
|
15
|
-
export default ProductDetailsModal;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { JSX } from 'react';
|
|
2
|
-
import './TimerStyles.css';
|
|
3
|
-
import { NativeColorPicker } from './Timer.types';
|
|
4
|
-
interface RibbonComponentExpiredTimerSchema {
|
|
5
|
-
timerColor: string;
|
|
6
|
-
backgroundColor: string;
|
|
7
|
-
expiryLabel: string;
|
|
8
|
-
timerAlignment: string;
|
|
9
|
-
dayLabel: string;
|
|
10
|
-
hourLabel: string;
|
|
11
|
-
minuteLabel: string;
|
|
12
|
-
secondLabel: string;
|
|
13
|
-
expiryLabelColor: NativeColorPicker;
|
|
14
|
-
}
|
|
15
|
-
interface Expiry {
|
|
16
|
-
content: RibbonComponentExpiredTimerSchema;
|
|
17
|
-
}
|
|
18
|
-
declare const RibbonComponentExpiredTimer: ({ content }: Expiry) => JSX.Element;
|
|
19
|
-
export default RibbonComponentExpiredTimer;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { JSX } from "react";
|
|
2
|
-
import "./TimerStyles.css";
|
|
3
|
-
import { NativeColorPicker } from "./Timer.types";
|
|
4
|
-
export interface TimerSchema {
|
|
5
|
-
startTime: string;
|
|
6
|
-
endTime: string;
|
|
7
|
-
colorChangeTime?: string;
|
|
8
|
-
expiryLabel: string;
|
|
9
|
-
timerColor?: string;
|
|
10
|
-
backgroundColor: string;
|
|
11
|
-
timerAlignment: string;
|
|
12
|
-
dayLabel: string;
|
|
13
|
-
hourLabel: string;
|
|
14
|
-
minuteLabel: string;
|
|
15
|
-
secondLabel: string;
|
|
16
|
-
mainHeading: string;
|
|
17
|
-
expiryLabelColor: NativeColorPicker;
|
|
18
|
-
enableCounter: boolean;
|
|
19
|
-
isDarkMode?: boolean;
|
|
20
|
-
}
|
|
21
|
-
interface Timer {
|
|
22
|
-
content: TimerSchema;
|
|
23
|
-
}
|
|
24
|
-
export interface timeleft {
|
|
25
|
-
days: string;
|
|
26
|
-
hours: string;
|
|
27
|
-
mins: string;
|
|
28
|
-
sec: string;
|
|
29
|
-
}
|
|
30
|
-
declare const Timer: ({ content }: Timer) => JSX.Element;
|
|
31
|
-
export default Timer;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export declare const dateWithTimeZone: (timeZone: string, year: number, month: number, day: number, hour: number, minute: number, second: number) => Date;
|
|
2
|
-
export declare const calculateDateTime: (dateObj: Date) => Date;
|
|
3
|
-
export declare const CheckTime: (content: any, timer: any, setIsTimerActive: any) => void;
|
|
4
|
-
export declare const getCookies: (cname: string) => any;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { Asset } from "../types";
|
|
2
|
-
export interface FreshBannerProps {
|
|
3
|
-
image: Asset;
|
|
4
|
-
}
|
|
5
|
-
export interface AuthDataSchema {
|
|
6
|
-
firstName: string;
|
|
7
|
-
lastName: string;
|
|
8
|
-
personalisedName?: string;
|
|
9
|
-
authenticationtype: string;
|
|
10
|
-
hashedId: string;
|
|
11
|
-
lastLoginDate: string;
|
|
12
|
-
siteId: string;
|
|
13
|
-
focusFunction: (code: string, uniqueId: string) => void;
|
|
14
|
-
}
|
|
15
|
-
export interface AuthserviceSchema {
|
|
16
|
-
authvalues: AuthDataSchema | undefined;
|
|
17
|
-
setAuthService: (authService: boolean) => void;
|
|
18
|
-
checklogin: () => void;
|
|
19
|
-
modalData: boolean;
|
|
20
|
-
}
|
|
21
|
-
export interface FreshBannerSchema {
|
|
22
|
-
content: FreshBannerProps;
|
|
23
|
-
metadata?: any;
|
|
24
|
-
lineCheckCallBack?: () => void;
|
|
25
|
-
lineCheckSuccessCallBack?: () => void;
|
|
26
|
-
tableSelectedTab?: string;
|
|
27
|
-
baseConfig?: string;
|
|
28
|
-
authData?: AuthserviceSchema | undefined;
|
|
29
|
-
lineCheckOnClear?: () => void;
|
|
30
|
-
isProdEnv: boolean;
|
|
31
|
-
}
|
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
export declare const offerResponse: {
|
|
2
|
-
id: string;
|
|
3
|
-
isBundle: boolean;
|
|
4
|
-
productType: string;
|
|
5
|
-
prices: {
|
|
6
|
-
priceType: string;
|
|
7
|
-
value: string;
|
|
8
|
-
cycle: {
|
|
9
|
-
cycleStart: number;
|
|
10
|
-
};
|
|
11
|
-
priceAlteration: {
|
|
12
|
-
priceType: string;
|
|
13
|
-
value: string;
|
|
14
|
-
cycle: {
|
|
15
|
-
cycleStart: number;
|
|
16
|
-
cycleEnd: number;
|
|
17
|
-
};
|
|
18
|
-
billingEvent: string;
|
|
19
|
-
}[];
|
|
20
|
-
billingEvent: string;
|
|
21
|
-
}[];
|
|
22
|
-
derivedPrice: {
|
|
23
|
-
priceType: string;
|
|
24
|
-
value: string;
|
|
25
|
-
cycle: {
|
|
26
|
-
cycleStart: number;
|
|
27
|
-
cycleEnd: number;
|
|
28
|
-
};
|
|
29
|
-
discountPercentage: string;
|
|
30
|
-
}[];
|
|
31
|
-
promotionInfo: {
|
|
32
|
-
id: string;
|
|
33
|
-
name: string;
|
|
34
|
-
promoType: string;
|
|
35
|
-
campaignId: string;
|
|
36
|
-
campaignType: string;
|
|
37
|
-
contractDuration: string;
|
|
38
|
-
campaignDuration: string;
|
|
39
|
-
}[];
|
|
40
|
-
references: ({
|
|
41
|
-
referenceType: string;
|
|
42
|
-
productCode: string;
|
|
43
|
-
Ids?: undefined;
|
|
44
|
-
} | {
|
|
45
|
-
referenceType: string;
|
|
46
|
-
Ids: string[];
|
|
47
|
-
productCode?: undefined;
|
|
48
|
-
})[];
|
|
49
|
-
name: string;
|
|
50
|
-
parentBundleProductOffering: {
|
|
51
|
-
id: string;
|
|
52
|
-
name: string;
|
|
53
|
-
promoType: string;
|
|
54
|
-
campaignId: string;
|
|
55
|
-
campaignType: string;
|
|
56
|
-
contractDuration: string;
|
|
57
|
-
campaignDuration: string;
|
|
58
|
-
poType: string;
|
|
59
|
-
bundledProductOffering: {
|
|
60
|
-
id: string;
|
|
61
|
-
name: string;
|
|
62
|
-
poType: string;
|
|
63
|
-
}[];
|
|
64
|
-
}[];
|
|
65
|
-
productOfferingPrice: ({
|
|
66
|
-
bpoId: string;
|
|
67
|
-
priceCategory: string;
|
|
68
|
-
bundledPop: {
|
|
69
|
-
billingEvent: string;
|
|
70
|
-
priceType: string;
|
|
71
|
-
price: {
|
|
72
|
-
unit: string;
|
|
73
|
-
value: string;
|
|
74
|
-
};
|
|
75
|
-
cycle: {
|
|
76
|
-
cycleStart: number;
|
|
77
|
-
cycleEnd: number;
|
|
78
|
-
};
|
|
79
|
-
}[];
|
|
80
|
-
} | {
|
|
81
|
-
priceCategory: string;
|
|
82
|
-
bundledPop: {
|
|
83
|
-
billingEvent: string;
|
|
84
|
-
priceType: string;
|
|
85
|
-
price: {
|
|
86
|
-
unit: string;
|
|
87
|
-
value: string;
|
|
88
|
-
};
|
|
89
|
-
cycle: {
|
|
90
|
-
cycleStart: number;
|
|
91
|
-
};
|
|
92
|
-
recurringChargePeriodType: string;
|
|
93
|
-
}[];
|
|
94
|
-
bpoId?: undefined;
|
|
95
|
-
})[];
|
|
96
|
-
showPrice: {
|
|
97
|
-
base: number;
|
|
98
|
-
promo: number;
|
|
99
|
-
combo: number;
|
|
100
|
-
multicombo: number;
|
|
101
|
-
};
|
|
102
|
-
price: {
|
|
103
|
-
id: string;
|
|
104
|
-
duration: string;
|
|
105
|
-
unit: string;
|
|
106
|
-
MOBILE_ORDER: {
|
|
107
|
-
base: {
|
|
108
|
-
price: number;
|
|
109
|
-
priceTpe: string;
|
|
110
|
-
billingEvent: string;
|
|
111
|
-
};
|
|
112
|
-
promo: {
|
|
113
|
-
price: number;
|
|
114
|
-
priceTpe: string;
|
|
115
|
-
billingEvent: string;
|
|
116
|
-
};
|
|
117
|
-
combo: {
|
|
118
|
-
price: number;
|
|
119
|
-
priceTpe: string;
|
|
120
|
-
billingEvent: string;
|
|
121
|
-
};
|
|
122
|
-
multicombo: {
|
|
123
|
-
price: number;
|
|
124
|
-
priceTpe: string;
|
|
125
|
-
billingEvent: string;
|
|
126
|
-
};
|
|
127
|
-
};
|
|
128
|
-
allPotype: string[];
|
|
129
|
-
};
|
|
130
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export interface DevicePropSchema {
|
|
2
|
-
baseURL: string | '';
|
|
3
|
-
}
|
|
4
|
-
export declare class DevicePropConfig {
|
|
5
|
-
private static instance;
|
|
6
|
-
config: DevicePropSchema;
|
|
7
|
-
private constructor();
|
|
8
|
-
getConfig: () => DevicePropSchema;
|
|
9
|
-
getBaseUrl: () => string;
|
|
10
|
-
static getInstance: () => DevicePropConfig;
|
|
11
|
-
static create: (p_config: DevicePropSchema) => void;
|
|
12
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare const fetchCustomPageDeviceGroup: (content: any, deviceCategory?: string) => Promise<any>;
|
|
2
|
-
export declare const fetchPreviewCardDpSubsidyPromos: (hardwarePrices: any, deviceId: any) => Promise<any>;
|
|
3
|
-
export declare const getDeviceDetailData: (deviceDetailsProductId: string, deviceCategory?: string) => Promise<any>;
|
|
4
|
-
export declare const createDevicePlanRequest: (discountPrice: any, hardwarePrices: any, deviceKey: string) => {
|
|
5
|
-
discount: any;
|
|
6
|
-
oneTimePrice: number;
|
|
7
|
-
duration: number;
|
|
8
|
-
upfront: number;
|
|
9
|
-
deviceId: string;
|
|
10
|
-
};
|
|
11
|
-
export declare const fetchDpSubsidyDevicePlan: (devicePlanRequestList: any) => Promise<unknown>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './DeviceCards';
|
package/dist/esm/components/DeviceCardWrapper/DevicePriceWrapper/DevicePriceWrapper.types.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { JSX } from "react";
|
|
2
|
-
export interface DevicePriceCollectionSchema {
|
|
3
|
-
discount?: boolean;
|
|
4
|
-
discountedPrice?: number;
|
|
5
|
-
actualPrice?: number;
|
|
6
|
-
durationDetails?: JSX.Element | null;
|
|
7
|
-
totalDiscount?: number;
|
|
8
|
-
totalActual?: number;
|
|
9
|
-
totalPriceText?: string;
|
|
10
|
-
priceTerm?: string;
|
|
11
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React, { JSX } from 'react';
|
|
2
|
-
interface GenericModalSchema {
|
|
3
|
-
modalState: boolean;
|
|
4
|
-
handler: () => void;
|
|
5
|
-
children: React.ReactNode;
|
|
6
|
-
showFooter: boolean;
|
|
7
|
-
footerNode?: React.ReactNode;
|
|
8
|
-
height?: string;
|
|
9
|
-
width?: string;
|
|
10
|
-
noCloseButton?: boolean;
|
|
11
|
-
backDrop?: boolean;
|
|
12
|
-
backButton?: string;
|
|
13
|
-
}
|
|
14
|
-
declare const ProductDetailsModal: ({ modalState, handler, showFooter, footerNode, children, width, height, noCloseButton, backButton, }: GenericModalSchema) => JSX.Element;
|
|
15
|
-
export default ProductDetailsModal;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { JSX } from 'react';
|
|
2
|
-
import './TimerStyles.css';
|
|
3
|
-
import { NativeColorPicker } from './Timer.types';
|
|
4
|
-
interface RibbonComponentExpiredTimerSchema {
|
|
5
|
-
timerColor: string;
|
|
6
|
-
backgroundColor: string;
|
|
7
|
-
expiryLabel: string;
|
|
8
|
-
timerAlignment: string;
|
|
9
|
-
dayLabel: string;
|
|
10
|
-
hourLabel: string;
|
|
11
|
-
minuteLabel: string;
|
|
12
|
-
secondLabel: string;
|
|
13
|
-
expiryLabelColor: NativeColorPicker;
|
|
14
|
-
}
|
|
15
|
-
interface Expiry {
|
|
16
|
-
content: RibbonComponentExpiredTimerSchema;
|
|
17
|
-
}
|
|
18
|
-
declare const RibbonComponentExpiredTimer: ({ content }: Expiry) => JSX.Element;
|
|
19
|
-
export default RibbonComponentExpiredTimer;
|