@sunrise-upc/mobile-prod-card 1.2.4-beta.7 → 1.2.4-beta.9
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/components/LineCheckV3/APIResourceConstants.d.ts +8 -0
- package/dist/cjs/components/LineCheckV3/AutoComplete.d.ts +7 -0
- package/dist/cjs/components/LineCheckV3/GenericModal.d.ts +17 -0
- package/dist/cjs/components/LineCheckV3/IndividualLineCheck.d.ts +2 -0
- package/dist/cjs/components/LineCheckV3/LineCheck.types.d.ts +46 -0
- package/dist/cjs/components/LineCheckV3/LineCheckInput.d.ts +3 -0
- package/dist/cjs/components/LineCheckV3/LineCheckLoader.d.ts +3 -0
- package/dist/cjs/components/LineCheckV3/LineCheckOverlay.d.ts +6 -0
- package/dist/cjs/components/LineCheckV3/LineCheckV3.d.ts +5 -0
- package/dist/cjs/components/LineCheckV3/LinecheckBasicPropConfig.d.ts +12 -0
- package/dist/cjs/components/LineCheckV3/LinecheckModal.d.ts +3 -0
- package/dist/cjs/components/LineCheckV3/LinecheckService.d.ts +12 -0
- package/dist/cjs/components/LineCheckV3/Success.d.ts +18 -0
- package/dist/cjs/components/LineCheckV3/api-constants.d.ts +1 -0
- package/dist/cjs/components/ProductDetailsV3/BenefitsSectionV3.d.ts +1 -0
- package/dist/cjs/components/ProductDetailsV3/CashBackV2/CashbackV2.d.ts +1 -0
- package/dist/cjs/components/ProductDetailsV3/ChooseGiftV2.d.ts +1 -0
- package/dist/cjs/components/ProductDetailsV3/GiftConfigV2.d.ts +1 -0
- package/dist/cjs/components/ProductDetailsV3/ProductPriceV3.d.ts +1 -0
- package/dist/cjs/components/ProductDetailsV3/tv/EntertainmentOptionsV2/EntertainmentOptionsV2.d.ts +1 -0
- package/dist/cjs/components/ProductDetailsV3/tv/TVChannelOfferV2.d.ts +1 -0
- package/dist/cjs/components/StickyProductAnchor/StickyProductAnchor.d.ts +1 -0
- package/dist/cjs/components/ToolTip/ToolTip.d.ts +1 -0
- package/dist/cjs/components/lineTable/OrderButton.d.ts +1 -0
- package/dist/cjs/components/sharedCarousel/CarouselComponent.d.ts +1 -0
- package/dist/cjs/components/skeletonLoader/Skeletonloader.d.ts +1 -0
- package/dist/cjs/index.js +8 -1
- package/dist/esm/components/LineCheckV3/APIResourceConstants.d.ts +8 -0
- package/dist/esm/components/LineCheckV3/AutoComplete.d.ts +7 -0
- package/dist/esm/components/LineCheckV3/GenericModal.d.ts +17 -0
- package/dist/esm/components/LineCheckV3/IndividualLineCheck.d.ts +2 -0
- package/dist/esm/components/LineCheckV3/LineCheck.types.d.ts +46 -0
- package/dist/esm/components/LineCheckV3/LineCheckInput.d.ts +3 -0
- package/dist/esm/components/LineCheckV3/LineCheckLoader.d.ts +3 -0
- package/dist/esm/components/LineCheckV3/LineCheckOverlay.d.ts +6 -0
- package/dist/esm/components/LineCheckV3/LineCheckV3.d.ts +5 -0
- package/dist/esm/components/LineCheckV3/LinecheckBasicPropConfig.d.ts +12 -0
- package/dist/esm/components/LineCheckV3/LinecheckModal.d.ts +3 -0
- package/dist/esm/components/LineCheckV3/LinecheckService.d.ts +12 -0
- package/dist/esm/components/LineCheckV3/Success.d.ts +18 -0
- package/dist/esm/components/LineCheckV3/api-constants.d.ts +1 -0
- package/dist/esm/components/ProductDetailsV3/BenefitsSectionV3.d.ts +1 -0
- package/dist/esm/components/ProductDetailsV3/CashBackV2/CashbackV2.d.ts +1 -0
- package/dist/esm/components/ProductDetailsV3/ChooseGiftV2.d.ts +1 -0
- package/dist/esm/components/ProductDetailsV3/GiftConfigV2.d.ts +1 -0
- package/dist/esm/components/ProductDetailsV3/ProductPriceV3.d.ts +1 -0
- package/dist/esm/components/ProductDetailsV3/tv/EntertainmentOptionsV2/EntertainmentOptionsV2.d.ts +1 -0
- package/dist/esm/components/ProductDetailsV3/tv/TVChannelOfferV2.d.ts +1 -0
- package/dist/esm/components/StickyProductAnchor/StickyProductAnchor.d.ts +1 -0
- package/dist/esm/components/ToolTip/ToolTip.d.ts +1 -0
- package/dist/esm/components/lineTable/OrderButton.d.ts +1 -0
- package/dist/esm/components/sharedCarousel/CarouselComponent.d.ts +1 -0
- package/dist/esm/components/skeletonLoader/Skeletonloader.d.ts +1 -0
- package/dist/esm/index.js +8 -1
- package/dist/index.d.ts +1 -0
- package/package.json +4 -4
@@ -0,0 +1,7 @@
|
|
1
|
+
/**
|
2
|
+
* A candidate for common component.
|
3
|
+
*/
|
4
|
+
import React from "react";
|
5
|
+
import "./LineCheck.css";
|
6
|
+
declare const AutoComplete: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<HTMLInputElement>>;
|
7
|
+
export default AutoComplete;
|
@@ -0,0 +1,17 @@
|
|
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
|
+
fixedWidth?: string;
|
13
|
+
backgroundColor?: string;
|
14
|
+
bodyPadding?: string;
|
15
|
+
}
|
16
|
+
declare const GenericModal: ({ modalState, handler, showFooter, footerNode, children, width, height, noCloseButton, backDrop, fixedWidth, backgroundColor, bodyPadding }: GenericModalSchema) => JSX.Element;
|
17
|
+
export default GenericModal;
|
@@ -0,0 +1,46 @@
|
|
1
|
+
export interface LineCheckProps {
|
2
|
+
checkoutButtonUrl: any;
|
3
|
+
linecheck: any;
|
4
|
+
showModemTitle: string;
|
5
|
+
modemTitle: string;
|
6
|
+
component: 'linecheck';
|
7
|
+
shouldAutomateLineCheck: boolean;
|
8
|
+
regexp: string;
|
9
|
+
uploadText: string;
|
10
|
+
downloadText: string;
|
11
|
+
title: string;
|
12
|
+
placeholder: string;
|
13
|
+
buttonvalue: string;
|
14
|
+
errorMsg: string;
|
15
|
+
noAddressFoundErrorMsg: string;
|
16
|
+
changeText?: string;
|
17
|
+
requiredFieldText: string;
|
18
|
+
changeTextMob?: string;
|
19
|
+
linecheckIcons?: any;
|
20
|
+
speedTooltip: string;
|
21
|
+
dataText: string;
|
22
|
+
speedUpgradeToolTip: string;
|
23
|
+
upgradeText: string;
|
24
|
+
reference?: any;
|
25
|
+
maximumSpeedText?: string;
|
26
|
+
checkoutButtonLabel?: string;
|
27
|
+
}
|
28
|
+
interface ShippingAddressProps {
|
29
|
+
address: string;
|
30
|
+
address2: string;
|
31
|
+
building: string;
|
32
|
+
city: string;
|
33
|
+
country: string;
|
34
|
+
countryCode: string;
|
35
|
+
floor: string;
|
36
|
+
room: string;
|
37
|
+
zipcode: string;
|
38
|
+
}
|
39
|
+
export interface LineCheckSchema {
|
40
|
+
content: LineCheckProps;
|
41
|
+
metadata?: any;
|
42
|
+
shippingAddress?: ShippingAddressProps;
|
43
|
+
onSuccess: () => void;
|
44
|
+
onModemDetailsClick?: () => any;
|
45
|
+
}
|
46
|
+
export {};
|
@@ -0,0 +1,12 @@
|
|
1
|
+
export interface LinecheckBasicPropConfigSchema {
|
2
|
+
baseURL: string | '';
|
3
|
+
}
|
4
|
+
export declare class LinecheckBasicPropConfig {
|
5
|
+
private static instance;
|
6
|
+
config: LinecheckBasicPropConfigSchema;
|
7
|
+
private constructor();
|
8
|
+
getConfig: () => LinecheckBasicPropConfigSchema;
|
9
|
+
getBaseUrl: () => string;
|
10
|
+
static getInstance: () => LinecheckBasicPropConfig;
|
11
|
+
static create: (p_config: LinecheckBasicPropConfigSchema) => void;
|
12
|
+
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
export declare const fetchAddress: (address: any, isValid: boolean) => Promise<any>;
|
2
|
+
export declare const getLineCheckService: (selectedAdd: any) => unknown;
|
3
|
+
export declare const fetchLineCheck: (payload: any) => Promise<{
|
4
|
+
corelationaId: any;
|
5
|
+
lineCheckResponse: any;
|
6
|
+
eligibleBundle: any;
|
7
|
+
maxUploadDownloadSpeed: any;
|
8
|
+
configEligibleBundle: string[];
|
9
|
+
plannedUpgrade: any;
|
10
|
+
}>;
|
11
|
+
export declare const getCustomerData: () => string | Promise<any>;
|
12
|
+
export declare const automateLineCheck: (setFetchingLineCheck: any, setlinecheckResponse: any, shippingAddress: any, onSuccess?: () => void) => Promise<any>;
|
@@ -0,0 +1,18 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import "./LineCheck.css";
|
3
|
+
interface successInterface {
|
4
|
+
content: string | JSX.Element;
|
5
|
+
isLoading: boolean;
|
6
|
+
uploadDownload: MaxDownloadUploadSpeed | Partial<MaxDownloadUploadSpeed>;
|
7
|
+
textContent: any;
|
8
|
+
eligibleBundle: any;
|
9
|
+
tooltipcontent: string | JSX.Element;
|
10
|
+
onModemDetailsClick?: () => any;
|
11
|
+
onSuccess?: any;
|
12
|
+
}
|
13
|
+
interface MaxDownloadUploadSpeed {
|
14
|
+
maxBandwidthDown: number;
|
15
|
+
maxBandwidthUp: number;
|
16
|
+
}
|
17
|
+
declare const Success: ({ content, uploadDownload, textContent, eligibleBundle, tooltipcontent, onModemDetailsClick, onSuccess, }: successInterface) => JSX.Element;
|
18
|
+
export default Success;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const API_BASE_BASEPOINT: any;
|