@sunrise-upc/mobile-prod-card 8.2.1 → 8.2.2-beta.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.
Files changed (92) hide show
  1. package/dist/cjs/components/BenefitWrapper/BenefitsValidateWrapper.d.ts +0 -1
  2. package/dist/cjs/components/DeviceCardWrapper/DeviceCards/DeviceCards.d.ts +4 -0
  3. package/dist/cjs/components/DeviceCardWrapper/DeviceCards/index.d.ts +1 -0
  4. package/dist/cjs/components/DeviceCardWrapper/DevicePrice/DevicePrice.d.ts +4 -0
  5. package/dist/cjs/components/DeviceCardWrapper/DevicePriceWrapper/DevicePriceWrapper.d.ts +4 -0
  6. package/dist/cjs/components/DeviceCardWrapper/DevicePriceWrapper/DevicePriceWrapper.types.d.ts +11 -0
  7. package/dist/cjs/components/FalconButtonV2/FalconButtonV2.d.ts +0 -1
  8. package/dist/cjs/components/FalconMessage/FalconMessage.d.ts +0 -1
  9. package/dist/cjs/components/Gift/ChooseGiftV2.d.ts +2 -0
  10. package/dist/cjs/components/Gift/GiftConfigV2.d.ts +2 -0
  11. package/dist/cjs/components/LineCheckV3/LineCheckOverlay.d.ts +0 -1
  12. package/dist/cjs/components/LineCheckV3/Success.d.ts +1 -1
  13. package/dist/cjs/components/PretoPost/PreToPostSubsPopup.d.ts +0 -1
  14. package/dist/cjs/components/ProductDetailsV3/BenefitsSectionV3.d.ts +0 -1
  15. package/dist/cjs/components/ProductDetailsV3/CashBackV2/CashbackV2.d.ts +0 -1
  16. package/dist/cjs/components/ProductDetailsV3/ChooseGiftV2.d.ts +0 -1
  17. package/dist/cjs/components/ProductDetailsV3/GiftConfigV2.d.ts +0 -1
  18. package/dist/cjs/components/ProductDetailsV3/ProductPriceV3.d.ts +0 -1
  19. package/dist/cjs/components/ProductDetailsV3/tv/EntertainmentOptionsV2/EntertainmentOptionsV2.d.ts +0 -1
  20. package/dist/cjs/components/ProductDetailsV3/tv/TVChannelOfferV2.d.ts +0 -1
  21. package/dist/cjs/components/ResponsiveRow/row.d.ts +1 -1
  22. package/dist/cjs/components/StaticLineTable/ExsistingSubscriptionCards.d.ts +0 -1
  23. package/dist/cjs/components/StaticLineTable/ExsistingSubscriptionModal.d.ts +0 -1
  24. package/dist/cjs/components/StaticLineTable/StaticProductDatatypes.d.ts +0 -1
  25. package/dist/cjs/components/ToolTip/ToolTip.d.ts +0 -1
  26. package/dist/cjs/components/freshProductBanner/FreshProductDetails.d.ts +4 -0
  27. package/dist/cjs/components/freshProductBanner/ProductDetailsModal.d.ts +15 -0
  28. package/dist/cjs/components/freshProductBanner/Timer/ExpiredTimer.d.ts +18 -0
  29. package/dist/cjs/components/freshProductBanner/Timer/Timer.d.ts +30 -0
  30. package/dist/cjs/components/freshProductBanner/Timer/Timer.types.d.ts +5 -0
  31. package/dist/cjs/components/freshProductBanner/Timer/util.d.ts +4 -0
  32. package/dist/cjs/components/freshProductBanner/freshBanner.types.d.ts +30 -0
  33. package/dist/cjs/components/freshProductBanner/freshProductBanner.d.ts +5 -0
  34. package/dist/cjs/components/freshProductBanner/offerResponse.d.ts +130 -0
  35. package/dist/cjs/components/index.d.ts +2 -0
  36. package/dist/cjs/components/lineTable/OrderButton.d.ts +0 -1
  37. package/dist/cjs/components/sharedCarousel/CarouselComponent.d.ts +0 -1
  38. package/dist/cjs/components/skeletonLoader/Skeletonloader.d.ts +0 -1
  39. package/dist/cjs/index.js +34 -3
  40. package/dist/cjs/services/DevicePropConfig.d.ts +12 -0
  41. package/dist/cjs/services/DeviceService.d.ts +11 -0
  42. package/dist/cjs/services/LineTableService.d.ts +1 -0
  43. package/dist/cjs/services/index.d.ts +2 -0
  44. package/dist/cjs/utils/DeviceUtils.d.ts +2 -0
  45. package/dist/cjs/utils/constants.d.ts +16 -0
  46. package/dist/esm/components/BenefitWrapper/BenefitsValidateWrapper.d.ts +0 -1
  47. package/dist/esm/components/DeviceCardWrapper/DeviceCards/DeviceCards.d.ts +4 -0
  48. package/dist/esm/components/DeviceCardWrapper/DeviceCards/index.d.ts +1 -0
  49. package/dist/esm/components/DeviceCardWrapper/DevicePrice/DevicePrice.d.ts +4 -0
  50. package/dist/esm/components/DeviceCardWrapper/DevicePriceWrapper/DevicePriceWrapper.d.ts +4 -0
  51. package/dist/esm/components/DeviceCardWrapper/DevicePriceWrapper/DevicePriceWrapper.types.d.ts +11 -0
  52. package/dist/esm/components/FalconButtonV2/FalconButtonV2.d.ts +0 -1
  53. package/dist/esm/components/FalconMessage/FalconMessage.d.ts +0 -1
  54. package/dist/esm/components/Gift/ChooseGiftV2.d.ts +2 -0
  55. package/dist/esm/components/Gift/GiftConfigV2.d.ts +2 -0
  56. package/dist/esm/components/LineCheckV3/LineCheckOverlay.d.ts +0 -1
  57. package/dist/esm/components/LineCheckV3/Success.d.ts +1 -1
  58. package/dist/esm/components/PretoPost/PreToPostSubsPopup.d.ts +0 -1
  59. package/dist/esm/components/ProductDetailsV3/BenefitsSectionV3.d.ts +0 -1
  60. package/dist/esm/components/ProductDetailsV3/CashBackV2/CashbackV2.d.ts +0 -1
  61. package/dist/esm/components/ProductDetailsV3/ChooseGiftV2.d.ts +0 -1
  62. package/dist/esm/components/ProductDetailsV3/GiftConfigV2.d.ts +0 -1
  63. package/dist/esm/components/ProductDetailsV3/ProductPriceV3.d.ts +0 -1
  64. package/dist/esm/components/ProductDetailsV3/tv/EntertainmentOptionsV2/EntertainmentOptionsV2.d.ts +0 -1
  65. package/dist/esm/components/ProductDetailsV3/tv/TVChannelOfferV2.d.ts +0 -1
  66. package/dist/esm/components/ResponsiveRow/row.d.ts +1 -1
  67. package/dist/esm/components/StaticLineTable/ExsistingSubscriptionCards.d.ts +0 -1
  68. package/dist/esm/components/StaticLineTable/ExsistingSubscriptionModal.d.ts +0 -1
  69. package/dist/esm/components/StaticLineTable/StaticProductDatatypes.d.ts +0 -1
  70. package/dist/esm/components/ToolTip/ToolTip.d.ts +0 -1
  71. package/dist/esm/components/freshProductBanner/FreshProductDetails.d.ts +4 -0
  72. package/dist/esm/components/freshProductBanner/ProductDetailsModal.d.ts +15 -0
  73. package/dist/esm/components/freshProductBanner/Timer/ExpiredTimer.d.ts +18 -0
  74. package/dist/esm/components/freshProductBanner/Timer/Timer.d.ts +30 -0
  75. package/dist/esm/components/freshProductBanner/Timer/Timer.types.d.ts +5 -0
  76. package/dist/esm/components/freshProductBanner/Timer/util.d.ts +4 -0
  77. package/dist/esm/components/freshProductBanner/freshBanner.types.d.ts +30 -0
  78. package/dist/esm/components/freshProductBanner/freshProductBanner.d.ts +5 -0
  79. package/dist/esm/components/freshProductBanner/offerResponse.d.ts +130 -0
  80. package/dist/esm/components/index.d.ts +2 -0
  81. package/dist/esm/components/lineTable/OrderButton.d.ts +0 -1
  82. package/dist/esm/components/sharedCarousel/CarouselComponent.d.ts +0 -1
  83. package/dist/esm/components/skeletonLoader/Skeletonloader.d.ts +0 -1
  84. package/dist/esm/index.js +34 -3
  85. package/dist/esm/services/DevicePropConfig.d.ts +12 -0
  86. package/dist/esm/services/DeviceService.d.ts +11 -0
  87. package/dist/esm/services/LineTableService.d.ts +1 -0
  88. package/dist/esm/services/index.d.ts +2 -0
  89. package/dist/esm/utils/DeviceUtils.d.ts +2 -0
  90. package/dist/esm/utils/constants.d.ts +16 -0
  91. package/dist/index.d.ts +63 -16
  92. package/package.json +17 -20
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const BenefitsValidateWrapper: ({ content, loginContent, metadata, createCartCall, fetchOfferData, basicConfigUrl, selectedExistingOption, setShowBenefit, setLoginSuccess, isProdEnv }: any) => JSX.Element;
3
2
  export default BenefitsValidateWrapper;
@@ -0,0 +1,4 @@
1
+ import { FC } from 'react';
2
+ import './DeviceCards.css';
3
+ declare const DeviceCards: FC<any>;
4
+ export default DeviceCards;
@@ -0,0 +1 @@
1
+ export { default } from './DeviceCards';
@@ -0,0 +1,4 @@
1
+ import { FC } from 'react';
2
+ import './DevicePrice.css';
3
+ declare const DevicePrice: FC<any>;
4
+ export default DevicePrice;
@@ -0,0 +1,4 @@
1
+ import { FC } from 'react';
2
+ import './DevicePriceWrapper.css';
3
+ declare const DevicePriceWrapper: FC<any>;
4
+ export default DevicePriceWrapper;
@@ -0,0 +1,11 @@
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,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const FalconButtonV2: ({ content, className, icon, iconClass, isLoading, wafIdentifier, ...restProps }: any) => JSX.Element;
3
2
  export default FalconButtonV2;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { Asset, ComponentWithContentProps, GenericSBProps } from '../types';
3
2
  import { FalconMessageTypes } from '../../utils/data-source';
4
3
  export interface SuccessMessageSchema extends GenericSBProps {
@@ -0,0 +1,2 @@
1
+ declare const ChooseGift: ({ content, selectedGiftItem, parentPoType }: any) => JSX.Element;
2
+ export default ChooseGift;
@@ -0,0 +1,2 @@
1
+ declare const GiftConfigV2: ({ content }: any) => JSX.Element;
2
+ export default GiftConfigV2;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface LineCheckOverlaySchema {
3
2
  props: any;
4
3
  productName: string;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import { JSX } from 'react';
2
2
  interface successInterface {
3
3
  content: string | JSX.Element;
4
4
  isLoading: boolean;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const PreToPostSubsPopup: ({ onClose, content, prepaid, }: any) => JSX.Element;
3
2
  export default PreToPostSubsPopup;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const BenefitsSectionV3: ({ content, priceCollection, sbStaticConstants }: any) => JSX.Element;
3
2
  export default BenefitsSectionV3;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const CashbackV2: ({ content }: any) => JSX.Element;
3
2
  export default CashbackV2;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const ChooseGift: ({ content, selectedGiftItem, parentPoType }: any) => JSX.Element;
3
2
  export default ChooseGift;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const GiftConfigV2: ({ content }: any) => JSX.Element;
3
2
  export default GiftConfigV2;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const ProductPriceV3: ({ content, priceCollection, toggleSwitch, sbStaticConstants }: any) => JSX.Element;
3
2
  export default ProductPriceV3;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const EntertainmentOptionsV2: ({ className, name, content, checked, options, setProduct, onclick, localeID, type, langSelected }: any) => JSX.Element;
3
2
  export default EntertainmentOptionsV2;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const TVChannelOfferV2: ({ content, showModal, setShowModal, setEntertainment, setTvChannelName, radioValue, setRadioValue, metadata }: any) => JSX.Element;
3
2
  export default TVChannelOfferV2;
@@ -1,4 +1,4 @@
1
- import { FC } from 'react';
1
+ import { FC, JSX } from 'react';
2
2
  import './row.css';
3
3
  interface RowInterface {
4
4
  children: JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface ExistingSubscriptionSchema {
3
2
  name?: string;
4
3
  subscriptionData: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface ExsistingModalSchema {
3
2
  exsistingSubscriptionData: any;
4
3
  onSubmit?: any;
@@ -134,7 +134,6 @@ export interface CheckoutButtonSchema {
134
134
  uniqueProductBenefits?: any;
135
135
  flexUpgradeFreePopup?: any;
136
136
  content?: any;
137
- deviceUltimateBundle?: boolean;
138
137
  }
139
138
  export interface toggleContentSchema {
140
139
  enableLoggedInPrice: string;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const ToolTip: ({ content, heading, tooltipClass, isBenefit }: any) => JSX.Element;
3
2
  export default ToolTip;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import './freshBanner.css';
3
+ declare const FreshProductDetails: ({ click, setClick, buttonLabel, content, priceSection, combineWithSmartphone, callCart, from, shoppingCart }: any) => JSX.Element;
4
+ export default FreshProductDetails;
@@ -0,0 +1,15 @@
1
+ import React 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;
@@ -0,0 +1,18 @@
1
+ import './TimerStyles.css';
2
+ import { NativeColorPicker } from './Timer.types';
3
+ interface RibbonComponentExpiredTimerSchema {
4
+ timerColor: string;
5
+ backgroundColor: string;
6
+ expiryLabel: string;
7
+ timerAlignment: string;
8
+ dayLabel: string;
9
+ hourLabel: string;
10
+ minuteLabel: string;
11
+ secondLabel: string;
12
+ expiryLabelColor: NativeColorPicker;
13
+ }
14
+ interface Expiry {
15
+ content: RibbonComponentExpiredTimerSchema;
16
+ }
17
+ declare const RibbonComponentExpiredTimer: ({ content }: Expiry) => JSX.Element;
18
+ export default RibbonComponentExpiredTimer;
@@ -0,0 +1,30 @@
1
+ import "./TimerStyles.css";
2
+ import { NativeColorPicker } from "./Timer.types";
3
+ export interface TimerSchema {
4
+ startTime: string;
5
+ endTime: string;
6
+ colorChangeTime?: string;
7
+ expiryLabel: string;
8
+ timerColor?: string;
9
+ backgroundColor: string;
10
+ timerAlignment: string;
11
+ dayLabel: string;
12
+ hourLabel: string;
13
+ minuteLabel: string;
14
+ secondLabel: string;
15
+ mainHeading: string;
16
+ expiryLabelColor: NativeColorPicker;
17
+ enableCounter: boolean;
18
+ isDarkMode?: boolean;
19
+ }
20
+ interface Timer {
21
+ content: TimerSchema;
22
+ }
23
+ export interface timeleft {
24
+ days: string;
25
+ hours: string;
26
+ mins: string;
27
+ sec: string;
28
+ }
29
+ declare const Timer: ({ content }: Timer) => JSX.Element;
30
+ export default Timer;
@@ -0,0 +1,5 @@
1
+ export declare interface NativeColorPicker {
2
+ color: string;
3
+ plugin: string;
4
+ _uid: string;
5
+ }
@@ -0,0 +1,4 @@
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;
@@ -0,0 +1,30 @@
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
+ }
@@ -0,0 +1,5 @@
1
+ import { FC } from 'react';
2
+ import './freshBanner.css';
3
+ import { FreshBannerSchema } from './freshBanner.types';
4
+ declare const FreshProductBannerHome: FC<FreshBannerSchema>;
5
+ export default FreshProductBannerHome;
@@ -0,0 +1,130 @@
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
+ };
@@ -15,6 +15,8 @@ export { default as HeroLogin } from './HeroLogin';
15
15
  export { default as CheckCoverage } from './NewLineCheck/CovercheckWrapper';
16
16
  export { default as DpLinetable } from './UltimateBundleLinetable';
17
17
  export { default as CoverageCheckModal } from './NewLineCheck/CoverageCheckModal';
18
+ export { default as FreshProductBannerHome } from './freshProductBanner/freshProductBanner';
19
+ export { default as DeviceCard } from './DeviceCardWrapper/DeviceCards/DeviceCards';
18
20
  export { default as StickyBottomSheet } from './StickyBottomSheet';
19
21
  export { default as ProgressionBar } from './ProgressionBar';
20
22
  export { default as OttServiceOptionsSmallPopup } from './StaticLineTable/OttServiceOptions/OttServiceOptionsSmallPopup';
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const OrderButton: ({ content, isMobileFlow, sbStaticConstants, address, isAvailable, showPrice, createCartCall, updatedContent }: any) => JSX.Element;
3
2
  export default OrderButton;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const CarouselComponent: (props: any) => JSX.Element;
3
2
  export default CarouselComponent;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Skeletonloader: ({ count, stylename }: any) => JSX.Element;
3
2
  export default Skeletonloader;