@sunrise-upc/mobile-prod-card 8.5.1 → 8.5.2
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/Analytics/AnalyticsConstants.d.ts +0 -5
- package/dist/cjs/components/Dotloader/Dotloader.d.ts +1 -1
- package/dist/cjs/components/StaticLineTable/OttServiceOptions/OttServiceOptionsSmallPopup.d.ts +1 -1
- package/dist/cjs/components/index.d.ts +0 -1
- package/dist/cjs/components/types.d.ts +0 -34
- package/dist/cjs/index.js +3 -3
- package/dist/cjs/services/api-constants.d.ts +0 -4
- package/dist/cjs/utils/AnalyticsUtils.d.ts +0 -2
- package/dist/cjs/utils/constants.d.ts +0 -16
- package/dist/cjs/utils/data-source.d.ts +1 -1
- package/dist/cjs/utils/utils.d.ts +0 -12
- package/dist/esm/Analytics/AnalyticsConstants.d.ts +0 -5
- package/dist/esm/components/Dotloader/Dotloader.d.ts +1 -1
- package/dist/esm/components/StaticLineTable/OttServiceOptions/OttServiceOptionsSmallPopup.d.ts +1 -1
- package/dist/esm/components/index.d.ts +0 -1
- package/dist/esm/components/types.d.ts +0 -34
- package/dist/esm/index.js +3 -3
- package/dist/esm/services/api-constants.d.ts +0 -4
- package/dist/esm/utils/AnalyticsUtils.d.ts +0 -2
- package/dist/esm/utils/constants.d.ts +0 -16
- package/dist/esm/utils/data-source.d.ts +1 -1
- package/dist/esm/utils/utils.d.ts +0 -12
- package/dist/index.d.ts +3 -91
- package/package.json +1 -1
- package/dist/cjs/components/Accessories/Accessory-card/AccessoryCard.d.ts +0 -10
- package/dist/cjs/components/Accessories/Accessory-card/AccessoryErrorModal.d.ts +0 -18
- package/dist/cjs/components/Accessories/AccessoryPreviewCardLoader/AccessoryPreviewCardLoader.d.ts +0 -3
- package/dist/cjs/components/Accessories/AccessoryPreviewCardSkeletonBody/AccessoryPreviewCardSkeletonBody.d.ts +0 -3
- package/dist/cjs/components/Accessories/DeviceCarouselComponent.d.ts +0 -3
- package/dist/cjs/components/Accessories/MultiItemAccessories/MultiItemAccessoriesPage.d.ts +0 -5
- package/dist/cjs/components/Accessories/MultiItemAccessories/MultiItemAccessoriesSchema.d.ts +0 -41
- package/dist/cjs/components/Accessories/PaymentTypeTabs/PaymentTypeTabs.d.ts +0 -14
- package/dist/cjs/components/Accessories/ProgressionBar/progressionBar.d.ts +0 -13
- package/dist/cjs/components/Accessories/index.d.ts +0 -1
- package/dist/cjs/components/Accessories/multiItemAccessoryStore/MultiAccessoryProvider.d.ts +0 -19
- package/dist/cjs/components/Accessories/multiItemAccessoryStore/types.d.ts +0 -71
- package/dist/cjs/components/Accessories/multiItemAccessoryStore/useMultiAccessoryActions.d.ts +0 -15
- package/dist/cjs/components/Accessories/multiItemAccessoryStore/useMultiAccessoryContext.d.ts +0 -32
- package/dist/cjs/components/Accessories/multiItemAccessoryStore/useMultiAccessoryUpdateCartActions.d.ts +0 -11
- package/dist/cjs/services/MultiItemAccessories/multiItemAccessoryService.d.ts +0 -8
- package/dist/cjs/services/MultiItemAccessories/multiitemAccessoriesUpdateCartService.d.ts +0 -8
- package/dist/cjs/services/MultiItemAccessories/storyBlokService.d.ts +0 -10
- package/dist/esm/components/Accessories/Accessory-card/AccessoryCard.d.ts +0 -10
- package/dist/esm/components/Accessories/Accessory-card/AccessoryErrorModal.d.ts +0 -18
- package/dist/esm/components/Accessories/AccessoryPreviewCardLoader/AccessoryPreviewCardLoader.d.ts +0 -3
- package/dist/esm/components/Accessories/AccessoryPreviewCardSkeletonBody/AccessoryPreviewCardSkeletonBody.d.ts +0 -3
- package/dist/esm/components/Accessories/DeviceCarouselComponent.d.ts +0 -3
- package/dist/esm/components/Accessories/MultiItemAccessories/MultiItemAccessoriesPage.d.ts +0 -5
- package/dist/esm/components/Accessories/MultiItemAccessories/MultiItemAccessoriesSchema.d.ts +0 -41
- package/dist/esm/components/Accessories/PaymentTypeTabs/PaymentTypeTabs.d.ts +0 -14
- package/dist/esm/components/Accessories/ProgressionBar/progressionBar.d.ts +0 -13
- package/dist/esm/components/Accessories/index.d.ts +0 -1
- package/dist/esm/components/Accessories/multiItemAccessoryStore/MultiAccessoryProvider.d.ts +0 -19
- package/dist/esm/components/Accessories/multiItemAccessoryStore/types.d.ts +0 -71
- package/dist/esm/components/Accessories/multiItemAccessoryStore/useMultiAccessoryActions.d.ts +0 -15
- package/dist/esm/components/Accessories/multiItemAccessoryStore/useMultiAccessoryContext.d.ts +0 -32
- package/dist/esm/components/Accessories/multiItemAccessoryStore/useMultiAccessoryUpdateCartActions.d.ts +0 -11
- package/dist/esm/services/MultiItemAccessories/multiItemAccessoryService.d.ts +0 -8
- package/dist/esm/services/MultiItemAccessories/multiitemAccessoriesUpdateCartService.d.ts +0 -8
- package/dist/esm/services/MultiItemAccessories/storyBlokService.d.ts +0 -10
|
@@ -11,9 +11,5 @@ export declare const APIResourceConstants: {
|
|
|
11
11
|
HARDWARE_DEVICES: string;
|
|
12
12
|
TV_SERVICE_OPTIONS_V2: string;
|
|
13
13
|
CUSTOMER_EVENTS: string;
|
|
14
|
-
THREE_SCALE_API_KEY: string;
|
|
15
|
-
STORIES: string;
|
|
16
|
-
RECOMMENDED_ACCESSORIES: string;
|
|
17
|
-
UPDATE_CART: string;
|
|
18
14
|
};
|
|
19
15
|
export declare const SBENDPOINT: any;
|
|
@@ -37,5 +37,3 @@ export interface UserInterface {
|
|
|
37
37
|
existingUser?: boolean;
|
|
38
38
|
}
|
|
39
39
|
export declare const trackUser: (loginType: string, accountID?: string, language?: string, lastLoginDate?: string, type?: string, existingUser?: boolean) => void;
|
|
40
|
-
export declare const trackViewItem: (event: string, eventName: string, product: any) => void;
|
|
41
|
-
export declare const setMmcItemTracker: (productList: any) => void;
|
|
@@ -38,8 +38,6 @@ 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
40
|
export declare const ONE_ECOMMERCE_SUMMARY = "one-ecommerce-summary";
|
|
41
|
-
export declare const WIN = "WIN";
|
|
42
|
-
export declare const HARDWAREGROUPNAME = "hardwareGroupName";
|
|
43
41
|
export declare const MOBILE = "mobile";
|
|
44
42
|
export declare const DESKTOP = "desktop";
|
|
45
43
|
export declare const LARGE_DESKTOP = "large-desktop";
|
|
@@ -76,17 +74,3 @@ export declare const OTP_NR_CHANGE = "OTP_NR_CHANGE";
|
|
|
76
74
|
export declare const OTP_CONTINUE = "OTP_CONTINUE";
|
|
77
75
|
export declare const OTP_RESEND = "OTP_RESEND";
|
|
78
76
|
export declare const PW_FORGOT = "PW_FORGOT";
|
|
79
|
-
export declare const MONTHLY = "monthly_24";
|
|
80
|
-
export declare const ACCESSORY = "ACCESSORY";
|
|
81
|
-
export declare const ADD = "ADD";
|
|
82
|
-
export declare const FLOWINTITIATED = "flowInitiated";
|
|
83
|
-
export declare const MONTHLYFLASHDISCOUNT = "monthlyFlashDiscount";
|
|
84
|
-
export declare const REMOVE = "REMOVE";
|
|
85
|
-
export declare const TOTALFLASHDISCOUNT = "totalFlashDiscount";
|
|
86
|
-
export declare const MOBILEACCESSORIES = "mobileaccessories";
|
|
87
|
-
export declare const ONETIME = "none";
|
|
88
|
-
export declare const LAZYLOAD = "lazy";
|
|
89
|
-
export declare const CONTAIN = "contain";
|
|
90
|
-
export declare const COVER = "cover";
|
|
91
|
-
export declare const ACCESSORYLABEL = "accessoriesLabel";
|
|
92
|
-
export declare const MULTIPLEITEMACCESSORIES = "MULTIPLE_ITEM_ACCESSORIES";
|
|
@@ -2,7 +2,7 @@ export type LocaleID = 'en' | 'de' | 'fr' | 'it' | 'default';
|
|
|
2
2
|
export type LinkTarget = '_blank' | '_parent' | '_self' | '_top';
|
|
3
3
|
export type Alignment = 'left' | 'center' | 'right';
|
|
4
4
|
export type AuraButtonTypes = 'Primary-V1' | 'Secondary-V1' | 'Secondary-V4';
|
|
5
|
-
export type FalconButtonTypes = 'Primary-V1' | 'Secondary-V1' | 'Secondary-V4' | 'Secondary-Dark'
|
|
5
|
+
export type FalconButtonTypes = 'Primary-V1' | 'Secondary-V1' | 'Secondary-V4' | 'Secondary-Dark';
|
|
6
6
|
export type QuoteBackgroundColor = 'pink' | 'blue' | 'grey' | 'iceWhite' | 'transparent';
|
|
7
7
|
export type FalconGradientTypes = 'rubyglow-diagonal' | 'rubyglow-vertical' | 'pinksky-diagonal' | 'pinksky-vertical' | 'bluehaze-diagonal' | 'bluehaze-vertical' | 'greencloud-diagonal' | 'greencloud-vertical' | 'peachfog-diagonal' | 'peachfog-vertical' | 'black' | 'skyfuel-vertical' | 'black-friday' | 'none';
|
|
8
8
|
export type ElementPosition = 'top-left' | 'top-right' | 'bottom-right' | 'bottom-left';
|
|
@@ -16,15 +16,3 @@ export declare const iconHandler: (type: string) => string;
|
|
|
16
16
|
export declare const checkLinkWithLang: (url: string) => string | undefined;
|
|
17
17
|
export declare const getSBAssetUrl: (wafIdentifier: any, image?: string) => string;
|
|
18
18
|
export declare const getNoteValues: (hardwareProducts: any, key: string) => undefined;
|
|
19
|
-
/**US 349849 - MIA migration
|
|
20
|
-
* price model
|
|
21
|
-
* @param value string | number
|
|
22
|
-
* @returns
|
|
23
|
-
* 2.0 -> 2.00
|
|
24
|
-
* 2.1 -> 2.10
|
|
25
|
-
* 2.15 -> 2.15
|
|
26
|
-
* 0.0 -> 0.00
|
|
27
|
-
* 0.5 -> 0.50
|
|
28
|
-
*/
|
|
29
|
-
export declare const countZeros: (value: any) => any;
|
|
30
|
-
export declare const viewportMultiItem: () => string;
|
package/dist/index.d.ts
CHANGED
|
@@ -25,8 +25,6 @@ interface LoginModalSchema {
|
|
|
25
25
|
|
|
26
26
|
declare const LoginModal: FC<LoginModalSchema>;
|
|
27
27
|
|
|
28
|
-
type FalconButtonTypes = 'Primary-V1' | 'Secondary-V1' | 'Secondary-V4' | 'Secondary-Dark' | 'Secondary-V5';
|
|
29
|
-
|
|
30
28
|
interface Link {
|
|
31
29
|
id: number;
|
|
32
30
|
slug: string;
|
|
@@ -49,7 +47,6 @@ interface LinkAlternate {
|
|
|
49
47
|
type Links = {
|
|
50
48
|
[key: string]: Link;
|
|
51
49
|
};
|
|
52
|
-
type Alignment = "left" | "center" | "right";
|
|
53
50
|
interface Asset {
|
|
54
51
|
id: number;
|
|
55
52
|
alt?: string;
|
|
@@ -74,44 +71,7 @@ interface ComponentMetadata {
|
|
|
74
71
|
appId?: string;
|
|
75
72
|
integrationId?: string;
|
|
76
73
|
}
|
|
77
|
-
type FalconGradientTypes = 'rubyglow-diagonal' | 'rubyglow-vertical' | 'pinksky-diagonal' | 'pinksky-vertical' | 'bluehaze-diagonal' | 'bluehaze-vertical' | 'greencloud-diagonal' | 'greencloud-vertical' | 'peachfog-diagonal' | 'peachfog-vertical' | 'darkblue-haze' | 'none';
|
|
78
|
-
interface ComponentWithContentProps<T extends GenericSBProps = GenericSBProps> {
|
|
79
|
-
content: T;
|
|
80
|
-
metadata?: ComponentMetadata | undefined;
|
|
81
|
-
}
|
|
82
|
-
interface FalconButtonSchema extends GenericSBProps {
|
|
83
|
-
buttonLabel?: string;
|
|
84
|
-
buttonIcon?: Asset;
|
|
85
|
-
buttonHoverIcon?: Asset;
|
|
86
|
-
buttonClickedIcon?: Asset;
|
|
87
|
-
buttonDisabledIcon?: Asset;
|
|
88
|
-
buttonLink: MultiLink;
|
|
89
|
-
linkTarget: LinkTarget;
|
|
90
|
-
buttonType: FalconButtonTypes;
|
|
91
|
-
iconPosition: string;
|
|
92
|
-
buttonAlignment: Alignment;
|
|
93
|
-
asset?: Asset;
|
|
94
|
-
id?: string;
|
|
95
|
-
bloks?: any;
|
|
96
|
-
minWidth: number;
|
|
97
|
-
enableScroll: boolean;
|
|
98
|
-
targetElement: componentsInStory;
|
|
99
|
-
blackFridayThemeIcon: Asset;
|
|
100
|
-
fromTallhero?: boolean;
|
|
101
|
-
}
|
|
102
|
-
interface MultiLink {
|
|
103
|
-
id: string;
|
|
104
|
-
url: string;
|
|
105
|
-
linktype: 'url' | 'story';
|
|
106
|
-
fieldtype: 'multilink';
|
|
107
|
-
cached_url: string;
|
|
108
|
-
}
|
|
109
|
-
type LinkTarget = '_self' | '_blank' | null;
|
|
110
|
-
interface componentsInStory {
|
|
111
|
-
_uid: string;
|
|
112
|
-
plugin: string;
|
|
113
|
-
blockIdentifier: string;
|
|
114
|
-
}
|
|
74
|
+
type FalconGradientTypes = 'rubyglow-diagonal' | 'rubyglow-vertical' | 'pinksky-diagonal' | 'pinksky-vertical' | 'bluehaze-diagonal' | 'bluehaze-vertical' | 'greencloud-diagonal' | 'greencloud-vertical' | 'peachfog-diagonal' | 'peachfog-vertical' | 'darkblue-haze' | 'none';
|
|
115
75
|
|
|
116
76
|
interface CardSchema {
|
|
117
77
|
content: any;
|
|
@@ -258,7 +218,7 @@ interface OttServiceOptionsSmallPopupProps {
|
|
|
258
218
|
mainContent: any;
|
|
259
219
|
preSelectedOptions: any[];
|
|
260
220
|
optionsResponse: any[];
|
|
261
|
-
updateResponseList
|
|
221
|
+
updateResponseList: (list: any) => void;
|
|
262
222
|
showPrice?: any;
|
|
263
223
|
productData?: any;
|
|
264
224
|
offeringData?: any;
|
|
@@ -276,54 +236,6 @@ interface NotificationToastProps {
|
|
|
276
236
|
}
|
|
277
237
|
declare const NotificationToast: ({ title, message, show, onClose, delay }: NotificationToastProps) => JSX.Element;
|
|
278
238
|
|
|
279
|
-
interface paymentOptionSchema {
|
|
280
|
-
paymentSubText: string;
|
|
281
|
-
paymentText: string;
|
|
282
|
-
type: string;
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
interface MultiItemAccessoriesSchema extends GenericSBProps {
|
|
286
|
-
component: '"AccessoriesRecommendationCards"';
|
|
287
|
-
accessoriesLabel: string;
|
|
288
|
-
addCartBtnIcon: any;
|
|
289
|
-
addCartBtntext: string;
|
|
290
|
-
checkoutBtnText: string;
|
|
291
|
-
checkoutLabel: string;
|
|
292
|
-
compatibleText: string;
|
|
293
|
-
customizeDeviceLabel: string;
|
|
294
|
-
monthlyPaymentLabel: string;
|
|
295
|
-
monthlyDownPaymentLabel: string;
|
|
296
|
-
oneTimePaymentLabel: string;
|
|
297
|
-
pickYourDeviceLabel: string;
|
|
298
|
-
recommendationLabel: any;
|
|
299
|
-
removeCartBtnIcon: any;
|
|
300
|
-
removeCartBtnText: string;
|
|
301
|
-
yourSubscriptionLabel: string;
|
|
302
|
-
progressionBar: any;
|
|
303
|
-
addtocartButton: FalconButtonSchema[];
|
|
304
|
-
removefromcartButton: FalconButtonSchema[];
|
|
305
|
-
proceedtocheckoutButton: FalconButtonSchema[];
|
|
306
|
-
parentSlugUrl: string;
|
|
307
|
-
multiItemCheckoutUrl: any;
|
|
308
|
-
accessoriesLimit: number;
|
|
309
|
-
accessoriesColorLabel: string;
|
|
310
|
-
totalText: string;
|
|
311
|
-
monthlyText: string;
|
|
312
|
-
errorModal: any;
|
|
313
|
-
retryButton: any;
|
|
314
|
-
cancelButtonLinkText: any;
|
|
315
|
-
cartLimitWarningText: any;
|
|
316
|
-
cartLimitModal: any;
|
|
317
|
-
cartLimitBtnText: string;
|
|
318
|
-
paymentOptions: paymentOptionSchema[];
|
|
319
|
-
paymentHeadingText: string;
|
|
320
|
-
winAccessoriesLimit: number;
|
|
321
|
-
winLimitWarningText: any;
|
|
322
|
-
winCheckoutUrl: any;
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
declare const MultiItemAccessoriesWithProvider: (props: ComponentWithContentProps<MultiItemAccessoriesSchema>) => JSX.Element;
|
|
326
|
-
|
|
327
239
|
interface LineTableBasicPropConfigSchema {
|
|
328
240
|
baseURL: string | '';
|
|
329
241
|
cartURL?: string | '';
|
|
@@ -413,4 +325,4 @@ declare class LoginBasicPropConfig {
|
|
|
413
325
|
getAPIServiceObject: () => ApiServiceV2;
|
|
414
326
|
}
|
|
415
327
|
|
|
416
|
-
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,
|
|
328
|
+
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, NotificationToast, OttServiceOptionsSmallPopup, PreToPostSubsPopup as PretoPostSubsPopup, ProductTableV3, ProductTeaser, ProductTeaserPropConfig, ProductTeaserPropConfigSchema, ProgressionBar, StaticLineTable, StickyBottomSheet, StickyBottomSheetPropConfig, StickyBottomSheetPropConfigSchema, StickyProductAnchor };
|
package/package.json
CHANGED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { MultiItemAccessoriesSchema } from '../MultiItemAccessories/MultiItemAccessoriesSchema';
|
|
3
|
-
type AccessoryCardProps = {
|
|
4
|
-
content: MultiItemAccessoriesSchema;
|
|
5
|
-
cards: number;
|
|
6
|
-
tabIndex: number;
|
|
7
|
-
checkingviewPort: any;
|
|
8
|
-
};
|
|
9
|
-
declare const AccessoryCard: ({ content, cards, tabIndex, }: AccessoryCardProps) => JSX.Element;
|
|
10
|
-
export default AccessoryCard;
|
|
@@ -1,18 +0,0 @@
|
|
|
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
|
-
bodyPadding?: string;
|
|
14
|
-
id?: string;
|
|
15
|
-
backgroundColor?: string;
|
|
16
|
-
}
|
|
17
|
-
declare const AccessoryErrorModal: ({ modalState, handler, showFooter, footerNode, children, width, height, noCloseButton, backDrop, fixedWidth, bodyPadding, id, backgroundColor }: GenericModalSchema) => JSX.Element;
|
|
18
|
-
export default AccessoryErrorModal;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ComponentWithContentProps } from '../../types';
|
|
3
|
-
import { MultiItemAccessoriesSchema } from './MultiItemAccessoriesSchema';
|
|
4
|
-
declare const MultiItemAccessoriesWithProvider: (props: ComponentWithContentProps<MultiItemAccessoriesSchema>) => JSX.Element;
|
|
5
|
-
export default MultiItemAccessoriesWithProvider;
|
package/dist/cjs/components/Accessories/MultiItemAccessories/MultiItemAccessoriesSchema.d.ts
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { GenericSBProps, FalconButtonSchema } from '../../types';
|
|
2
|
-
import { paymentOptionSchema } from '../PaymentTypeTabs/PaymentTypeTabs';
|
|
3
|
-
export interface MultiItemAccessoriesSchema extends GenericSBProps {
|
|
4
|
-
component: '"AccessoriesRecommendationCards"';
|
|
5
|
-
accessoriesLabel: string;
|
|
6
|
-
addCartBtnIcon: any;
|
|
7
|
-
addCartBtntext: string;
|
|
8
|
-
checkoutBtnText: string;
|
|
9
|
-
checkoutLabel: string;
|
|
10
|
-
compatibleText: string;
|
|
11
|
-
customizeDeviceLabel: string;
|
|
12
|
-
monthlyPaymentLabel: string;
|
|
13
|
-
monthlyDownPaymentLabel: string;
|
|
14
|
-
oneTimePaymentLabel: string;
|
|
15
|
-
pickYourDeviceLabel: string;
|
|
16
|
-
recommendationLabel: any;
|
|
17
|
-
removeCartBtnIcon: any;
|
|
18
|
-
removeCartBtnText: string;
|
|
19
|
-
yourSubscriptionLabel: string;
|
|
20
|
-
progressionBar: any;
|
|
21
|
-
addtocartButton: FalconButtonSchema[];
|
|
22
|
-
removefromcartButton: FalconButtonSchema[];
|
|
23
|
-
proceedtocheckoutButton: FalconButtonSchema[];
|
|
24
|
-
parentSlugUrl: string;
|
|
25
|
-
multiItemCheckoutUrl: any;
|
|
26
|
-
accessoriesLimit: number;
|
|
27
|
-
accessoriesColorLabel: string;
|
|
28
|
-
totalText: string;
|
|
29
|
-
monthlyText: string;
|
|
30
|
-
errorModal: any;
|
|
31
|
-
retryButton: any;
|
|
32
|
-
cancelButtonLinkText: any;
|
|
33
|
-
cartLimitWarningText: any;
|
|
34
|
-
cartLimitModal: any;
|
|
35
|
-
cartLimitBtnText: string;
|
|
36
|
-
paymentOptions: paymentOptionSchema[];
|
|
37
|
-
paymentHeadingText: string;
|
|
38
|
-
winAccessoriesLimit: number;
|
|
39
|
-
winLimitWarningText: any;
|
|
40
|
-
winCheckoutUrl: any;
|
|
41
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export interface paymentOptionSchema {
|
|
3
|
-
paymentSubText: string;
|
|
4
|
-
paymentText: string;
|
|
5
|
-
type: string;
|
|
6
|
-
}
|
|
7
|
-
interface PaymentTypeTabsProps {
|
|
8
|
-
content: {
|
|
9
|
-
paymentHeadingText: string;
|
|
10
|
-
paymentOptions: paymentOptionSchema[];
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
declare const PaymentTypeTabs: ({ content }: PaymentTypeTabsProps) => JSX.Element;
|
|
14
|
-
export default PaymentTypeTabs;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ComponentWithContentProps, GenericSBProps } from '../../types';
|
|
3
|
-
interface ProgressionBarProps extends GenericSBProps {
|
|
4
|
-
pickYourDeviceLabel: string;
|
|
5
|
-
customizeDeviceLabel: string;
|
|
6
|
-
yourSubscriptionLabel: string;
|
|
7
|
-
checkoutLabel: string;
|
|
8
|
-
accessoriesLabel: string;
|
|
9
|
-
selectedStep?: string;
|
|
10
|
-
optionalLabelText: string;
|
|
11
|
-
}
|
|
12
|
-
declare const ProgressionBar: ({ content }: ComponentWithContentProps<ProgressionBarProps>) => JSX.Element;
|
|
13
|
-
export default ProgressionBar;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './MultiItemAccessories/MultiItemAccessoriesPage';
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { AppProviderSchema, AppContextType } from './types';
|
|
3
|
-
export declare const actionTypes: {
|
|
4
|
-
recommendedAccessories: string;
|
|
5
|
-
multiItemAccessoriessList: string;
|
|
6
|
-
selectedAccessories: string;
|
|
7
|
-
deviceSessionValues: string;
|
|
8
|
-
removeSelectedCartAccessories: string;
|
|
9
|
-
selectedPaymentType: string;
|
|
10
|
-
recommendedAccessoriesStart: string;
|
|
11
|
-
RecommendedAccessoriesSuccess: string;
|
|
12
|
-
recommendedAccessoriesFailure: string;
|
|
13
|
-
updateAccessoryCartSuccess: string;
|
|
14
|
-
updateAccessoryCartFailure: string;
|
|
15
|
-
updateAccessoryCartStart: string;
|
|
16
|
-
};
|
|
17
|
-
export declare const AppContext: React.Context<AppContextType | undefined>;
|
|
18
|
-
declare const MultiAccessoryProvider: ({ children }: AppProviderSchema) => JSX.Element;
|
|
19
|
-
export default MultiAccessoryProvider;
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { GenericSBProps } from '../../types';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
3
|
-
export interface AppProviderSchema {
|
|
4
|
-
children: ReactNode;
|
|
5
|
-
}
|
|
6
|
-
export interface ActionSchema {
|
|
7
|
-
type: string;
|
|
8
|
-
payload: any;
|
|
9
|
-
}
|
|
10
|
-
export interface AppContextType {
|
|
11
|
-
store: recommendationSliceStore & UpdateCartSliceStore;
|
|
12
|
-
dispatch: React.Dispatch<ActionSchema>;
|
|
13
|
-
}
|
|
14
|
-
export interface recurringPriceSchema extends GenericSBProps {
|
|
15
|
-
upFront: string;
|
|
16
|
-
monthlyInstallement: string;
|
|
17
|
-
finalInsallement: string;
|
|
18
|
-
marketMonthlyInstallment: string;
|
|
19
|
-
marketFinalInstallement: string;
|
|
20
|
-
}
|
|
21
|
-
export interface oneTimePriceSchema extends GenericSBProps {
|
|
22
|
-
market: string;
|
|
23
|
-
base: string;
|
|
24
|
-
}
|
|
25
|
-
export interface multiAccessoryListSchema extends GenericSBProps {
|
|
26
|
-
id: string;
|
|
27
|
-
name: string;
|
|
28
|
-
inCart: boolean;
|
|
29
|
-
defaultVariantProductCode: string;
|
|
30
|
-
recurringPrice: recurringPriceSchema;
|
|
31
|
-
oneTimePrice: oneTimePriceSchema;
|
|
32
|
-
color: string;
|
|
33
|
-
baseProducts: string;
|
|
34
|
-
}
|
|
35
|
-
export interface recommendationSliceStore {
|
|
36
|
-
isFetchingRecommendedAccessories: boolean;
|
|
37
|
-
recommendedAccessories: multiAccessoryListSchema[];
|
|
38
|
-
multiItemAccessoriessList: any;
|
|
39
|
-
selectedAccessories: any;
|
|
40
|
-
deviceSessionValues: any;
|
|
41
|
-
removeSelectedCartAccessories: any;
|
|
42
|
-
selectedPaymentType: string;
|
|
43
|
-
}
|
|
44
|
-
export interface Note {
|
|
45
|
-
author: string;
|
|
46
|
-
text: string;
|
|
47
|
-
group?: string;
|
|
48
|
-
}
|
|
49
|
-
export interface updateCartItem {
|
|
50
|
-
id: string | number;
|
|
51
|
-
note?: Note[];
|
|
52
|
-
contractTerm?: number;
|
|
53
|
-
action: string;
|
|
54
|
-
}
|
|
55
|
-
export interface updateCartItemList {
|
|
56
|
-
itemType: string;
|
|
57
|
-
items: updateCartItem[];
|
|
58
|
-
}
|
|
59
|
-
export interface updateCart {
|
|
60
|
-
cartItem: updateCartItemList[];
|
|
61
|
-
}
|
|
62
|
-
export interface UpdateCartSliceStore {
|
|
63
|
-
loading: boolean;
|
|
64
|
-
cart: updateCart;
|
|
65
|
-
updateAccessoryCartSuccess: updateCart;
|
|
66
|
-
updateAccessoryCartFailure: any;
|
|
67
|
-
}
|
|
68
|
-
export interface updateCreatecartItemData {
|
|
69
|
-
id: any;
|
|
70
|
-
redirectUrl: string;
|
|
71
|
-
}
|
package/dist/cjs/components/Accessories/multiItemAccessoryStore/useMultiAccessoryActions.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ActionSchema } from './types';
|
|
2
|
-
/**
|
|
3
|
-
* Custom hook that provides action creators for Multi Accessory Context
|
|
4
|
-
* @param dispatch - Dispatch function from the MultiAccessoryContext
|
|
5
|
-
* @returns Object containing all action creator functions
|
|
6
|
-
*/
|
|
7
|
-
export declare const useMultiAccessoryActions: (dispatch: React.Dispatch<ActionSchema>) => {
|
|
8
|
-
setRecommendedAccessories: (payload: any) => void;
|
|
9
|
-
setSelectedAccessories: (payload: any) => void;
|
|
10
|
-
setMultiItemAccessoriessList: (payload: any) => void;
|
|
11
|
-
setDeviceSessionValues: (payload: any) => void;
|
|
12
|
-
setRemoveSelectedCartAccessories: (payload: any) => void;
|
|
13
|
-
setSelectedPaymentType: (payload: string) => void;
|
|
14
|
-
getRecommendedAccessory: (cartId: any) => Promise<any>;
|
|
15
|
-
};
|
package/dist/cjs/components/Accessories/multiItemAccessoryStore/useMultiAccessoryContext.d.ts
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { AppContextType } from './types';
|
|
3
|
-
/**
|
|
4
|
-
* Custom hook to consume the MultiAccessoryContext
|
|
5
|
-
* @returns Context value containing store (state) and dispatch
|
|
6
|
-
* @throws Error if used outside of MultiAccessoryProvider
|
|
7
|
-
* @example
|
|
8
|
-
* ```tsx
|
|
9
|
-
* const { store, dispatch } = useMultiAccessoryContext();
|
|
10
|
-
* const { recommendedAccessories, selectedAccessories } = store;
|
|
11
|
-
* ```
|
|
12
|
-
*/
|
|
13
|
-
export declare const useMultiAccessoryContext: () => AppContextType;
|
|
14
|
-
/**
|
|
15
|
-
* Custom hook that combines context and actions
|
|
16
|
-
* Provides both state and action creators in one hook for convenience
|
|
17
|
-
* @returns Object containing store (state), dispatch, and all action creators
|
|
18
|
-
* @example
|
|
19
|
-
* ```tsx
|
|
20
|
-
* const { store, actions } = useMultiAccessory();
|
|
21
|
-
* // Access state
|
|
22
|
-
* const { recommendedAccessories, selectedAccessories } = store;
|
|
23
|
-
* // Call actions
|
|
24
|
-
* actions.setSelectedAccessories(data);
|
|
25
|
-
* actions.getRecommendedAccessory(cartId);
|
|
26
|
-
* ```
|
|
27
|
-
*/
|
|
28
|
-
export declare const useMultiAccessory: () => {
|
|
29
|
-
store: import("./types").recommendationSliceStore & import("./types").UpdateCartSliceStore;
|
|
30
|
-
dispatch: import("react").Dispatch<import("./types").ActionSchema>;
|
|
31
|
-
actions: any;
|
|
32
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ActionSchema, updateCreatecartItemData } from './types';
|
|
2
|
-
/**
|
|
3
|
-
* Custom hook that provides action creators for Multi Accessory Context
|
|
4
|
-
* @param dispatch - Dispatch function from the MultiAccessoryContext
|
|
5
|
-
* @returns Object containing all action creator functions
|
|
6
|
-
*/
|
|
7
|
-
export declare const useMultiAccessoryUpdateCartActions: (dispatch: React.Dispatch<ActionSchema>) => {
|
|
8
|
-
setupdateAccessoryCartSuccess: (payload: any) => void;
|
|
9
|
-
setupdateAccessoryCartFailure: (payload: any) => void;
|
|
10
|
-
multiItemAccessorycreateCartRequest: (updateCreatecartItemData: updateCreatecartItemData, multiAccessoryState: any) => Promise<any>;
|
|
11
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ApiServiceV2 } from '@sunrise-upc/ajax-lib';
|
|
2
|
-
declare class multiItemAccessoryService {
|
|
3
|
-
apiServiceInstance: ApiServiceV2;
|
|
4
|
-
constructor();
|
|
5
|
-
getRecommendedAccessoryData: (cartId: string) => Promise<any>;
|
|
6
|
-
}
|
|
7
|
-
declare const multiItemAccessoryServices: multiItemAccessoryService;
|
|
8
|
-
export default multiItemAccessoryServices;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ApiServiceV2 } from '@sunrise-upc/ajax-lib';
|
|
2
|
-
declare class multiItemAccessoryUpdateCartService {
|
|
3
|
-
apiServiceInstance: ApiServiceV2;
|
|
4
|
-
constructor();
|
|
5
|
-
getUpdateCartData: (cartId: any, payload: any) => Promise<any>;
|
|
6
|
-
}
|
|
7
|
-
declare const multiItemAccessoryUpdateCartServices: multiItemAccessoryUpdateCartService;
|
|
8
|
-
export default multiItemAccessoryUpdateCartServices;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ApiServiceV2 } from '@sunrise-upc/ajax-lib';
|
|
2
|
-
declare class storyBlokServices {
|
|
3
|
-
apiServiceInstance: ApiServiceV2;
|
|
4
|
-
constructor();
|
|
5
|
-
getStoryBlokData: (lang: string | undefined, prodName: any, accessoryPath: string) => Promise<{
|
|
6
|
-
sbStory: any;
|
|
7
|
-
}>;
|
|
8
|
-
}
|
|
9
|
-
declare const storyBlokService: storyBlokServices;
|
|
10
|
-
export default storyBlokService;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { MultiItemAccessoriesSchema } from '../MultiItemAccessories/MultiItemAccessoriesSchema';
|
|
3
|
-
type AccessoryCardProps = {
|
|
4
|
-
content: MultiItemAccessoriesSchema;
|
|
5
|
-
cards: number;
|
|
6
|
-
tabIndex: number;
|
|
7
|
-
checkingviewPort: any;
|
|
8
|
-
};
|
|
9
|
-
declare const AccessoryCard: ({ content, cards, tabIndex, }: AccessoryCardProps) => JSX.Element;
|
|
10
|
-
export default AccessoryCard;
|
|
@@ -1,18 +0,0 @@
|
|
|
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
|
-
bodyPadding?: string;
|
|
14
|
-
id?: string;
|
|
15
|
-
backgroundColor?: string;
|
|
16
|
-
}
|
|
17
|
-
declare const AccessoryErrorModal: ({ modalState, handler, showFooter, footerNode, children, width, height, noCloseButton, backDrop, fixedWidth, bodyPadding, id, backgroundColor }: GenericModalSchema) => JSX.Element;
|
|
18
|
-
export default AccessoryErrorModal;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ComponentWithContentProps } from '../../types';
|
|
3
|
-
import { MultiItemAccessoriesSchema } from './MultiItemAccessoriesSchema';
|
|
4
|
-
declare const MultiItemAccessoriesWithProvider: (props: ComponentWithContentProps<MultiItemAccessoriesSchema>) => JSX.Element;
|
|
5
|
-
export default MultiItemAccessoriesWithProvider;
|
package/dist/esm/components/Accessories/MultiItemAccessories/MultiItemAccessoriesSchema.d.ts
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { GenericSBProps, FalconButtonSchema } from '../../types';
|
|
2
|
-
import { paymentOptionSchema } from '../PaymentTypeTabs/PaymentTypeTabs';
|
|
3
|
-
export interface MultiItemAccessoriesSchema extends GenericSBProps {
|
|
4
|
-
component: '"AccessoriesRecommendationCards"';
|
|
5
|
-
accessoriesLabel: string;
|
|
6
|
-
addCartBtnIcon: any;
|
|
7
|
-
addCartBtntext: string;
|
|
8
|
-
checkoutBtnText: string;
|
|
9
|
-
checkoutLabel: string;
|
|
10
|
-
compatibleText: string;
|
|
11
|
-
customizeDeviceLabel: string;
|
|
12
|
-
monthlyPaymentLabel: string;
|
|
13
|
-
monthlyDownPaymentLabel: string;
|
|
14
|
-
oneTimePaymentLabel: string;
|
|
15
|
-
pickYourDeviceLabel: string;
|
|
16
|
-
recommendationLabel: any;
|
|
17
|
-
removeCartBtnIcon: any;
|
|
18
|
-
removeCartBtnText: string;
|
|
19
|
-
yourSubscriptionLabel: string;
|
|
20
|
-
progressionBar: any;
|
|
21
|
-
addtocartButton: FalconButtonSchema[];
|
|
22
|
-
removefromcartButton: FalconButtonSchema[];
|
|
23
|
-
proceedtocheckoutButton: FalconButtonSchema[];
|
|
24
|
-
parentSlugUrl: string;
|
|
25
|
-
multiItemCheckoutUrl: any;
|
|
26
|
-
accessoriesLimit: number;
|
|
27
|
-
accessoriesColorLabel: string;
|
|
28
|
-
totalText: string;
|
|
29
|
-
monthlyText: string;
|
|
30
|
-
errorModal: any;
|
|
31
|
-
retryButton: any;
|
|
32
|
-
cancelButtonLinkText: any;
|
|
33
|
-
cartLimitWarningText: any;
|
|
34
|
-
cartLimitModal: any;
|
|
35
|
-
cartLimitBtnText: string;
|
|
36
|
-
paymentOptions: paymentOptionSchema[];
|
|
37
|
-
paymentHeadingText: string;
|
|
38
|
-
winAccessoriesLimit: number;
|
|
39
|
-
winLimitWarningText: any;
|
|
40
|
-
winCheckoutUrl: any;
|
|
41
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export interface paymentOptionSchema {
|
|
3
|
-
paymentSubText: string;
|
|
4
|
-
paymentText: string;
|
|
5
|
-
type: string;
|
|
6
|
-
}
|
|
7
|
-
interface PaymentTypeTabsProps {
|
|
8
|
-
content: {
|
|
9
|
-
paymentHeadingText: string;
|
|
10
|
-
paymentOptions: paymentOptionSchema[];
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
declare const PaymentTypeTabs: ({ content }: PaymentTypeTabsProps) => JSX.Element;
|
|
14
|
-
export default PaymentTypeTabs;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ComponentWithContentProps, GenericSBProps } from '../../types';
|
|
3
|
-
interface ProgressionBarProps extends GenericSBProps {
|
|
4
|
-
pickYourDeviceLabel: string;
|
|
5
|
-
customizeDeviceLabel: string;
|
|
6
|
-
yourSubscriptionLabel: string;
|
|
7
|
-
checkoutLabel: string;
|
|
8
|
-
accessoriesLabel: string;
|
|
9
|
-
selectedStep?: string;
|
|
10
|
-
optionalLabelText: string;
|
|
11
|
-
}
|
|
12
|
-
declare const ProgressionBar: ({ content }: ComponentWithContentProps<ProgressionBarProps>) => JSX.Element;
|
|
13
|
-
export default ProgressionBar;
|