@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.
- package/dist/cjs/components/BenefitWrapper/BenefitsValidateWrapper.d.ts +0 -1
- package/dist/cjs/components/DeviceCardWrapper/DeviceCards/DeviceCards.d.ts +4 -0
- package/dist/cjs/components/DeviceCardWrapper/DeviceCards/index.d.ts +1 -0
- package/dist/cjs/components/DeviceCardWrapper/DevicePrice/DevicePrice.d.ts +4 -0
- package/dist/cjs/components/DeviceCardWrapper/DevicePriceWrapper/DevicePriceWrapper.d.ts +4 -0
- package/dist/cjs/components/DeviceCardWrapper/DevicePriceWrapper/DevicePriceWrapper.types.d.ts +11 -0
- package/dist/cjs/components/FalconButtonV2/FalconButtonV2.d.ts +0 -1
- package/dist/cjs/components/FalconMessage/FalconMessage.d.ts +0 -1
- package/dist/cjs/components/Gift/ChooseGiftV2.d.ts +2 -0
- package/dist/cjs/components/Gift/GiftConfigV2.d.ts +2 -0
- package/dist/cjs/components/LineCheckV3/LineCheckOverlay.d.ts +0 -1
- package/dist/cjs/components/LineCheckV3/Success.d.ts +1 -1
- package/dist/cjs/components/PretoPost/PreToPostSubsPopup.d.ts +0 -1
- package/dist/cjs/components/ProductDetailsV3/BenefitsSectionV3.d.ts +0 -1
- package/dist/cjs/components/ProductDetailsV3/CashBackV2/CashbackV2.d.ts +0 -1
- package/dist/cjs/components/ProductDetailsV3/ChooseGiftV2.d.ts +0 -1
- package/dist/cjs/components/ProductDetailsV3/GiftConfigV2.d.ts +0 -1
- package/dist/cjs/components/ProductDetailsV3/ProductPriceV3.d.ts +0 -1
- package/dist/cjs/components/ProductDetailsV3/tv/EntertainmentOptionsV2/EntertainmentOptionsV2.d.ts +0 -1
- package/dist/cjs/components/ProductDetailsV3/tv/TVChannelOfferV2.d.ts +0 -1
- package/dist/cjs/components/ResponsiveRow/row.d.ts +1 -1
- package/dist/cjs/components/StaticLineTable/ExsistingSubscriptionCards.d.ts +0 -1
- package/dist/cjs/components/StaticLineTable/ExsistingSubscriptionModal.d.ts +0 -1
- package/dist/cjs/components/StaticLineTable/StaticProductDatatypes.d.ts +0 -1
- package/dist/cjs/components/ToolTip/ToolTip.d.ts +0 -1
- package/dist/cjs/components/freshProductBanner/FreshProductDetails.d.ts +4 -0
- package/dist/cjs/components/freshProductBanner/ProductDetailsModal.d.ts +15 -0
- package/dist/cjs/components/freshProductBanner/Timer/ExpiredTimer.d.ts +18 -0
- package/dist/cjs/components/freshProductBanner/Timer/Timer.d.ts +30 -0
- package/dist/cjs/components/freshProductBanner/Timer/Timer.types.d.ts +5 -0
- package/dist/cjs/components/freshProductBanner/Timer/util.d.ts +4 -0
- package/dist/cjs/components/freshProductBanner/freshBanner.types.d.ts +30 -0
- package/dist/cjs/components/freshProductBanner/freshProductBanner.d.ts +5 -0
- package/dist/cjs/components/freshProductBanner/offerResponse.d.ts +130 -0
- package/dist/cjs/components/index.d.ts +2 -0
- package/dist/cjs/components/lineTable/OrderButton.d.ts +0 -1
- package/dist/cjs/components/sharedCarousel/CarouselComponent.d.ts +0 -1
- package/dist/cjs/components/skeletonLoader/Skeletonloader.d.ts +0 -1
- package/dist/cjs/index.js +34 -3
- package/dist/cjs/services/DevicePropConfig.d.ts +12 -0
- package/dist/cjs/services/DeviceService.d.ts +11 -0
- package/dist/cjs/services/LineTableService.d.ts +1 -0
- package/dist/cjs/services/index.d.ts +2 -0
- package/dist/cjs/utils/DeviceUtils.d.ts +2 -0
- package/dist/cjs/utils/constants.d.ts +16 -0
- package/dist/esm/components/BenefitWrapper/BenefitsValidateWrapper.d.ts +0 -1
- package/dist/esm/components/DeviceCardWrapper/DeviceCards/DeviceCards.d.ts +4 -0
- package/dist/esm/components/DeviceCardWrapper/DeviceCards/index.d.ts +1 -0
- package/dist/esm/components/DeviceCardWrapper/DevicePrice/DevicePrice.d.ts +4 -0
- package/dist/esm/components/DeviceCardWrapper/DevicePriceWrapper/DevicePriceWrapper.d.ts +4 -0
- package/dist/esm/components/DeviceCardWrapper/DevicePriceWrapper/DevicePriceWrapper.types.d.ts +11 -0
- package/dist/esm/components/FalconButtonV2/FalconButtonV2.d.ts +0 -1
- package/dist/esm/components/FalconMessage/FalconMessage.d.ts +0 -1
- package/dist/esm/components/Gift/ChooseGiftV2.d.ts +2 -0
- package/dist/esm/components/Gift/GiftConfigV2.d.ts +2 -0
- package/dist/esm/components/LineCheckV3/LineCheckOverlay.d.ts +0 -1
- package/dist/esm/components/LineCheckV3/Success.d.ts +1 -1
- package/dist/esm/components/PretoPost/PreToPostSubsPopup.d.ts +0 -1
- package/dist/esm/components/ProductDetailsV3/BenefitsSectionV3.d.ts +0 -1
- package/dist/esm/components/ProductDetailsV3/CashBackV2/CashbackV2.d.ts +0 -1
- package/dist/esm/components/ProductDetailsV3/ChooseGiftV2.d.ts +0 -1
- package/dist/esm/components/ProductDetailsV3/GiftConfigV2.d.ts +0 -1
- package/dist/esm/components/ProductDetailsV3/ProductPriceV3.d.ts +0 -1
- package/dist/esm/components/ProductDetailsV3/tv/EntertainmentOptionsV2/EntertainmentOptionsV2.d.ts +0 -1
- package/dist/esm/components/ProductDetailsV3/tv/TVChannelOfferV2.d.ts +0 -1
- package/dist/esm/components/ResponsiveRow/row.d.ts +1 -1
- package/dist/esm/components/StaticLineTable/ExsistingSubscriptionCards.d.ts +0 -1
- package/dist/esm/components/StaticLineTable/ExsistingSubscriptionModal.d.ts +0 -1
- package/dist/esm/components/StaticLineTable/StaticProductDatatypes.d.ts +0 -1
- package/dist/esm/components/ToolTip/ToolTip.d.ts +0 -1
- package/dist/esm/components/freshProductBanner/FreshProductDetails.d.ts +4 -0
- package/dist/esm/components/freshProductBanner/ProductDetailsModal.d.ts +15 -0
- package/dist/esm/components/freshProductBanner/Timer/ExpiredTimer.d.ts +18 -0
- package/dist/esm/components/freshProductBanner/Timer/Timer.d.ts +30 -0
- package/dist/esm/components/freshProductBanner/Timer/Timer.types.d.ts +5 -0
- package/dist/esm/components/freshProductBanner/Timer/util.d.ts +4 -0
- package/dist/esm/components/freshProductBanner/freshBanner.types.d.ts +30 -0
- package/dist/esm/components/freshProductBanner/freshProductBanner.d.ts +5 -0
- package/dist/esm/components/freshProductBanner/offerResponse.d.ts +130 -0
- package/dist/esm/components/index.d.ts +2 -0
- package/dist/esm/components/lineTable/OrderButton.d.ts +0 -1
- package/dist/esm/components/sharedCarousel/CarouselComponent.d.ts +0 -1
- package/dist/esm/components/skeletonLoader/Skeletonloader.d.ts +0 -1
- package/dist/esm/index.js +34 -3
- package/dist/esm/services/DevicePropConfig.d.ts +12 -0
- package/dist/esm/services/DeviceService.d.ts +11 -0
- package/dist/esm/services/LineTableService.d.ts +1 -0
- package/dist/esm/services/index.d.ts +2 -0
- package/dist/esm/utils/DeviceUtils.d.ts +2 -0
- package/dist/esm/utils/constants.d.ts +16 -0
- package/dist/index.d.ts +63 -16
- package/package.json +17 -20
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
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>;
|
|
@@ -10,4 +10,5 @@ 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>;
|
|
13
14
|
export declare const fetchOttServiceOptions: () => Promise<any>;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export * from './LineTableBasicPropConfig';
|
|
2
2
|
export * from './ProductTeaserPropsConfig';
|
|
3
3
|
export * from './LinecheckBasicPropConfig';
|
|
4
|
+
export * from './LoginBasicPropConfig';
|
|
5
|
+
export * from './DevicePropConfig';
|
|
4
6
|
export * from './StickyBottomSheetConfig';
|
|
5
7
|
export * from './LoginBasicPropConfig';
|
|
@@ -37,10 +37,19 @@ 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 CODE = "code__";
|
|
41
|
+
export declare const DPSUBSIDYPROMOTION = "dPSubsidyPromotion";
|
|
42
|
+
export declare const PROMO = "PROMO";
|
|
43
|
+
export declare const PROCEED_BUTTON = "proceedButton";
|
|
40
44
|
export declare const MOBILE = "mobile";
|
|
41
45
|
export declare const DESKTOP = "desktop";
|
|
42
46
|
export declare const LARGE_DESKTOP = "large-desktop";
|
|
43
47
|
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";
|
|
44
53
|
export declare const AVAILABLE_LANGUAGES: {
|
|
45
54
|
EN: string;
|
|
46
55
|
FR: string;
|
|
@@ -52,6 +61,13 @@ export declare const BREADCRUMB = "...";
|
|
|
52
61
|
export declare const PRE_TO_POST = "PRE_TO_POST";
|
|
53
62
|
export declare const P2PSUBSCRIBEDPLAN = "Sunrise Prepaid Unlimited";
|
|
54
63
|
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";
|
|
55
71
|
export declare const ERROR_BORDER = "#BF0760";
|
|
56
72
|
export declare const DISABLED_BACKGROUND = "#E6E3DF";
|
|
57
73
|
export declare const LOGIN_MFA = "LOGIN_MFA";
|
package/dist/index.d.ts
CHANGED
|
@@ -202,6 +202,40 @@ declare const DpLinetableContainer: ({ content, metadata, isProdEnv }: any) => J
|
|
|
202
202
|
|
|
203
203
|
declare const CoverageCheckModal: FC<any>;
|
|
204
204
|
|
|
205
|
+
interface FreshBannerProps {
|
|
206
|
+
image: Asset;
|
|
207
|
+
}
|
|
208
|
+
interface AuthDataSchema {
|
|
209
|
+
firstName: string;
|
|
210
|
+
lastName: string;
|
|
211
|
+
personalisedName?: string;
|
|
212
|
+
authenticationtype: string;
|
|
213
|
+
hashedId: string;
|
|
214
|
+
lastLoginDate: string;
|
|
215
|
+
siteId: string;
|
|
216
|
+
focusFunction: (code: string, uniqueId: string) => void;
|
|
217
|
+
}
|
|
218
|
+
interface AuthserviceSchema {
|
|
219
|
+
authvalues: AuthDataSchema | undefined;
|
|
220
|
+
setAuthService: (authService: boolean) => void;
|
|
221
|
+
checklogin: () => void;
|
|
222
|
+
modalData: boolean;
|
|
223
|
+
}
|
|
224
|
+
interface FreshBannerSchema {
|
|
225
|
+
content: FreshBannerProps;
|
|
226
|
+
metadata?: any;
|
|
227
|
+
lineCheckCallBack?: () => void;
|
|
228
|
+
lineCheckSuccessCallBack?: () => void;
|
|
229
|
+
tableSelectedTab?: string;
|
|
230
|
+
baseConfig?: string;
|
|
231
|
+
authData?: AuthserviceSchema | undefined;
|
|
232
|
+
lineCheckOnClear?: () => void;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
declare const FreshProductBannerHome: FC<FreshBannerSchema>;
|
|
236
|
+
|
|
237
|
+
declare const DeviceCards: FC<any>;
|
|
238
|
+
|
|
205
239
|
declare const StickyBottomSheet: FC<any>;
|
|
206
240
|
|
|
207
241
|
type ProgressionBarProps = {
|
|
@@ -285,21 +319,6 @@ declare class LinecheckBasicPropConfig {
|
|
|
285
319
|
static create: (p_config: LinecheckBasicPropConfigSchema) => void;
|
|
286
320
|
}
|
|
287
321
|
|
|
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
|
-
|
|
303
322
|
interface LoginBasicPropConfigSchema {
|
|
304
323
|
baseURL: string | "";
|
|
305
324
|
}
|
|
@@ -316,4 +335,32 @@ declare class LoginBasicPropConfig {
|
|
|
316
335
|
getAPIServiceObject: () => ApiServiceV2;
|
|
317
336
|
}
|
|
318
337
|
|
|
319
|
-
|
|
338
|
+
interface DevicePropSchema {
|
|
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 };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sunrise-upc/mobile-prod-card",
|
|
3
|
-
"version": "8.2.
|
|
3
|
+
"version": "8.2.2-beta.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,12 +39,20 @@
|
|
|
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": "^
|
|
43
|
-
"@types/react": "^
|
|
44
|
-
"@types/react-dom": "^
|
|
45
|
-
"@types/uuid": "^
|
|
42
|
+
"@types/node": "^18.19.75",
|
|
43
|
+
"@types/react": "^19.0.8",
|
|
44
|
+
"@types/react-dom": "^19.0.3",
|
|
45
|
+
"@types/uuid": "^10.0.0",
|
|
46
46
|
"axios": "^0.21.4",
|
|
47
|
-
"
|
|
47
|
+
"cookies-next": "^4.3.0",
|
|
48
|
+
"js-cookie": "^3.0.1",
|
|
49
|
+
"postcss": "^8.4.49",
|
|
50
|
+
"react": "18.2.0",
|
|
51
|
+
"react-bootstrap": "^2.0.0-beta.4",
|
|
52
|
+
"react-dom": "18.2.0",
|
|
53
|
+
"react-loading-skeleton": "^3.4.0",
|
|
54
|
+
"react-multi-carousel": "^2.8.4",
|
|
55
|
+
"react-select": "^5.2.2",
|
|
48
56
|
"rimraf": "^3.0.2",
|
|
49
57
|
"rollup": "^3.9.1",
|
|
50
58
|
"rollup-plugin-dts": "^5.1.0",
|
|
@@ -55,21 +63,10 @@
|
|
|
55
63
|
"semver": "^7.3.8",
|
|
56
64
|
"tslib": "^2.4.1",
|
|
57
65
|
"typescript": "^4.9.4",
|
|
58
|
-
"
|
|
66
|
+
"uuid": "^11.0.5"
|
|
59
67
|
},
|
|
60
68
|
"peerDependencies": {
|
|
61
|
-
"@sunrise-upc/ajax-lib": "^
|
|
62
|
-
"
|
|
63
|
-
"react": "^17.0.2",
|
|
64
|
-
"react-bootstrap": "^2.0.0-beta.4",
|
|
65
|
-
"react-dom": "^17.0.2",
|
|
66
|
-
"react-multi-carousel": "^2.8.4",
|
|
67
|
-
"storyblok-rich-text-react-renderer-ts": "^3.2.0",
|
|
68
|
-
"uuid": "^8.3.2",
|
|
69
|
-
"react-select": "^5.2.2",
|
|
70
|
-
"react-loading-skeleton": "^3.4.0"
|
|
71
|
-
},
|
|
72
|
-
"dependencies": {
|
|
73
|
-
"moment": "^2.30.1"
|
|
69
|
+
"@sunrise-upc/ajax-lib": "^2.2.0",
|
|
70
|
+
"storyblok-rich-text-react-renderer-ts": "^3.2.0"
|
|
74
71
|
}
|
|
75
72
|
}
|