@sunrise-upc/mobile-prod-card 8.9.10 → 8.9.12
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 +2 -0
- package/dist/cjs/components/LineCheckV3/APIResourceConstants.d.ts +1 -0
- package/dist/cjs/components/RecommendedOptions/RecommendedOptions.d.ts +10 -0
- package/dist/cjs/components/RecommendedOptions/RecommendedOptionsUtils.d.ts +14 -0
- package/dist/cjs/components/RecommendedOptions/ServiceOption/ServiceOptionCard/ItemsCounter.d.ts +3 -0
- package/dist/cjs/components/RecommendedOptions/ServiceOption/ServiceOptionCard/ServiceDetailSection.d.ts +20 -0
- package/dist/cjs/components/RecommendedOptions/ServiceOption/ServiceOptionCard/ServiceOptionCard.d.ts +17 -0
- package/dist/cjs/components/RecommendedOptions/ServiceOption/ServiceOptionLoader.d.ts +3 -0
- package/dist/cjs/components/RecommendedOptions/ServiceOption/ServiceOptionPrice/ServiceOptionPrice.d.ts +11 -0
- package/dist/cjs/components/RecommendedOptions/index.d.ts +1 -0
- package/dist/cjs/components/RecommendedOptions/types.d.ts +102 -0
- package/dist/cjs/components/index.d.ts +1 -0
- package/dist/cjs/index.js +3 -3
- package/dist/cjs/services/ServiceOptionsPropConfig.d.ts +16 -0
- package/dist/cjs/services/index.d.ts +1 -0
- package/dist/cjs/utils/AnalyticsUtils.d.ts +1 -0
- package/dist/cjs/utils/constants.d.ts +2 -0
- package/dist/cjs/utils/utils.d.ts +1 -0
- package/dist/esm/Analytics/AnalyticsConstants.d.ts +2 -0
- package/dist/esm/components/LineCheckV3/APIResourceConstants.d.ts +1 -0
- package/dist/esm/components/RecommendedOptions/RecommendedOptions.d.ts +10 -0
- package/dist/esm/components/RecommendedOptions/RecommendedOptionsUtils.d.ts +14 -0
- package/dist/esm/components/RecommendedOptions/ServiceOption/ServiceOptionCard/ItemsCounter.d.ts +3 -0
- package/dist/esm/components/RecommendedOptions/ServiceOption/ServiceOptionCard/ServiceDetailSection.d.ts +20 -0
- package/dist/esm/components/RecommendedOptions/ServiceOption/ServiceOptionCard/ServiceOptionCard.d.ts +17 -0
- package/dist/esm/components/RecommendedOptions/ServiceOption/ServiceOptionLoader.d.ts +3 -0
- package/dist/esm/components/RecommendedOptions/ServiceOption/ServiceOptionPrice/ServiceOptionPrice.d.ts +11 -0
- package/dist/esm/components/RecommendedOptions/index.d.ts +1 -0
- package/dist/esm/components/RecommendedOptions/types.d.ts +102 -0
- package/dist/esm/components/index.d.ts +1 -0
- package/dist/esm/index.js +3 -3
- package/dist/esm/services/ServiceOptionsPropConfig.d.ts +16 -0
- package/dist/esm/services/index.d.ts +1 -0
- package/dist/esm/utils/AnalyticsUtils.d.ts +1 -0
- package/dist/esm/utils/constants.d.ts +2 -0
- package/dist/esm/utils/utils.d.ts +1 -0
- package/dist/index.d.ts +87 -2
- package/package.json +1 -1
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface ServiceOptionsPropConfigSchema {
|
|
2
|
+
baseURL: string | '';
|
|
3
|
+
cartURL: string | '';
|
|
4
|
+
storyBlokURL: string | '';
|
|
5
|
+
}
|
|
6
|
+
export declare class ServiceOptionsPropConfig {
|
|
7
|
+
private static instance;
|
|
8
|
+
config: ServiceOptionsPropConfigSchema;
|
|
9
|
+
private constructor();
|
|
10
|
+
getConfig: () => ServiceOptionsPropConfigSchema;
|
|
11
|
+
getBaseUrl: () => string;
|
|
12
|
+
getCartUrl: () => string;
|
|
13
|
+
getSBUrl: () => string;
|
|
14
|
+
static getInstance: () => ServiceOptionsPropConfig;
|
|
15
|
+
static create: (p_config: ServiceOptionsPropConfigSchema) => void;
|
|
16
|
+
}
|
|
@@ -55,6 +55,8 @@ export declare const BREADCRUMB = "...";
|
|
|
55
55
|
export declare const PRE_TO_POST = "PRE_TO_POST";
|
|
56
56
|
export declare const P2PSUBSCRIBEDPLAN = "Sunrise Prepaid Unlimited";
|
|
57
57
|
export declare const TV_SERVICE_OPTION = "TV_SERVICE_OPTION";
|
|
58
|
+
export declare const INTERNET_SERVICE_OPTION = "INTERNET_SERVICE_OPTION";
|
|
59
|
+
export declare const VOICE_SERVICE_OPTION = "VOICE_SERVICE_OPTION";
|
|
58
60
|
export declare const ERROR_BORDER = "#BF0760";
|
|
59
61
|
export declare const DISABLED_BACKGROUND = "#E6E3DF";
|
|
60
62
|
export declare const LOGIN_MFA = "LOGIN_MFA";
|
|
@@ -15,6 +15,7 @@ export declare const isModemPresent: () => boolean;
|
|
|
15
15
|
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
|
+
export declare const getCompressedImage: (wafIdentifier: any, imageUrl: string) => string;
|
|
18
19
|
export declare const getNoteValues: (hardwareProducts: any, key: string) => undefined;
|
|
19
20
|
/**US 349849 - MIA migration
|
|
20
21
|
* price model
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { MouseEventHandler, FC } from 'react';
|
|
2
|
+
import React, { MouseEventHandler, FC } from 'react';
|
|
3
3
|
import { ApiServiceV2 } from '@sunrise-upc/ajax-lib';
|
|
4
4
|
|
|
5
5
|
interface ButtonProps {
|
|
@@ -329,6 +329,74 @@ interface NotificationToastProps {
|
|
|
329
329
|
}
|
|
330
330
|
declare const NotificationToast: ({ title, message, show, onClose, delay }: NotificationToastProps) => JSX.Element;
|
|
331
331
|
|
|
332
|
+
type StoryblokReferenceBlock = {
|
|
333
|
+
component?: string;
|
|
334
|
+
reference?: {
|
|
335
|
+
content?: {
|
|
336
|
+
body?: any;
|
|
337
|
+
};
|
|
338
|
+
};
|
|
339
|
+
};
|
|
340
|
+
interface RecommendedOptionsTabItem extends GenericSBProps {
|
|
341
|
+
tabKey: string;
|
|
342
|
+
tabLabel: string;
|
|
343
|
+
active: boolean;
|
|
344
|
+
optionsList: string[];
|
|
345
|
+
filterOptions?: StoryblokReferenceBlock | StoryblokReferenceBlock[];
|
|
346
|
+
}
|
|
347
|
+
interface OptionCardData extends GenericSBProps {
|
|
348
|
+
id: string;
|
|
349
|
+
title: string;
|
|
350
|
+
description: string | Array<Object>;
|
|
351
|
+
price?: string;
|
|
352
|
+
priceUnit?: string;
|
|
353
|
+
priceHelpText?: string;
|
|
354
|
+
isQuantifiable?: boolean;
|
|
355
|
+
maxQuantity?: number;
|
|
356
|
+
moreDetailsLink?: string;
|
|
357
|
+
productImage?: Asset;
|
|
358
|
+
}
|
|
359
|
+
interface TranslationItem extends GenericSBProps {
|
|
360
|
+
key: string;
|
|
361
|
+
label: string;
|
|
362
|
+
component: 'translationItem';
|
|
363
|
+
}
|
|
364
|
+
type RecommendedOptionsTranslations = TranslationItem[];
|
|
365
|
+
interface RecommendedOptionsSchema extends GenericSBProps {
|
|
366
|
+
listHeightDesktop: number;
|
|
367
|
+
categories: any;
|
|
368
|
+
optionCatalogPath: string;
|
|
369
|
+
headline: string;
|
|
370
|
+
description: string | Array<Object>;
|
|
371
|
+
tabs: RecommendedOptionsTabItem[];
|
|
372
|
+
translations: RecommendedOptionsTranslations;
|
|
373
|
+
updateCartData: (cartData: any) => void;
|
|
374
|
+
}
|
|
375
|
+
type ServiceOptionSelectionPayload = {
|
|
376
|
+
id: string;
|
|
377
|
+
isSelected: boolean;
|
|
378
|
+
quantity: number;
|
|
379
|
+
category: string;
|
|
380
|
+
tabKey: string;
|
|
381
|
+
offer: any;
|
|
382
|
+
product: any;
|
|
383
|
+
};
|
|
384
|
+
interface RecommendedOptionsCallbacks {
|
|
385
|
+
onAddToPlan?: (optionId: string, quantity?: number) => void;
|
|
386
|
+
onQuantityChange?: (optionId: string, quantity: number) => void;
|
|
387
|
+
onServiceOptionSelect?: (payload: ServiceOptionSelectionPayload) => void;
|
|
388
|
+
className?: string;
|
|
389
|
+
'aria-label'?: string;
|
|
390
|
+
optionDataResolver?: (optionIds: string[]) => OptionCardData[];
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
declare const RecommendedOptions: React.FC<ComponentWithContentProps<RecommendedOptionsSchema> & RecommendedOptionsCallbacks & {
|
|
394
|
+
cartItem?: any;
|
|
395
|
+
activelocaleId?: string;
|
|
396
|
+
updateCartData?: (cartData: unknown) => void;
|
|
397
|
+
isPartialFetching?: boolean;
|
|
398
|
+
}>;
|
|
399
|
+
|
|
332
400
|
interface LineTableBasicPropConfigSchema {
|
|
333
401
|
baseURL: string | '';
|
|
334
402
|
cartURL?: string | '';
|
|
@@ -418,4 +486,21 @@ declare class LoginBasicPropConfig {
|
|
|
418
486
|
getAPIServiceObject: () => ApiServiceV2;
|
|
419
487
|
}
|
|
420
488
|
|
|
421
|
-
|
|
489
|
+
interface ServiceOptionsPropConfigSchema {
|
|
490
|
+
baseURL: string | '';
|
|
491
|
+
cartURL: string | '';
|
|
492
|
+
storyBlokURL: string | '';
|
|
493
|
+
}
|
|
494
|
+
declare class ServiceOptionsPropConfig {
|
|
495
|
+
private static instance;
|
|
496
|
+
config: ServiceOptionsPropConfigSchema;
|
|
497
|
+
private constructor();
|
|
498
|
+
getConfig: () => ServiceOptionsPropConfigSchema;
|
|
499
|
+
getBaseUrl: () => string;
|
|
500
|
+
getCartUrl: () => string;
|
|
501
|
+
getSBUrl: () => string;
|
|
502
|
+
static getInstance: () => ServiceOptionsPropConfig;
|
|
503
|
+
static create: (p_config: ServiceOptionsPropConfigSchema) => void;
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
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, MultiItemAccessoriesWithProvider, NotificationToast, OttServiceOptionsSmallPopup, PreToPostSubsPopup as PretoPostSubsPopup, ProductTableV3, ProductTeaser, ProductTeaserPropConfig, ProductTeaserPropConfigSchema, ProgressionBar, RecommendedOptions, ServiceOptionsPropConfig, ServiceOptionsPropConfigSchema, StaticLineTable, StickyBottomSheet, StickyBottomSheetPropConfig, StickyBottomSheetPropConfigSchema, StickyProductAnchor };
|