@sunrise-upc/mobile-prod-card 8.2.1-beta.0 → 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/OttServiceOptions/OttServiceOptionsSmallPopup.d.ts +1 -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 -1
  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/OttServiceOptions/OttServiceOptionsSmallPopup.d.ts +1 -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 -1
  91. package/dist/index.d.ts +64 -17
  92. 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';
@@ -0,0 +1,2 @@
1
+ export declare const getDeviceSlugPath: (productId: any, pageContent: any) => string;
2
+ export declare const alterHardwarePriceFormat: (hardwarePrices: any[]) => void;
@@ -37,11 +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 ONE_ECOMMERCE_SUMMARY = "one-ecommerce-summary";
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";
41
44
  export declare const MOBILE = "mobile";
42
45
  export declare const DESKTOP = "desktop";
43
46
  export declare const LARGE_DESKTOP = "large-desktop";
44
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";
45
53
  export declare const AVAILABLE_LANGUAGES: {
46
54
  EN: string;
47
55
  FR: string;
@@ -53,6 +61,13 @@ export declare const BREADCRUMB = "...";
53
61
  export declare const PRE_TO_POST = "PRE_TO_POST";
54
62
  export declare const P2PSUBSCRIBEDPLAN = "Sunrise Prepaid Unlimited";
55
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";
56
71
  export declare const ERROR_BORDER = "#BF0760";
57
72
  export declare const DISABLED_BACKGROUND = "#E6E3DF";
58
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 = {
@@ -218,7 +252,7 @@ interface OttServiceOptionsSmallPopupProps {
218
252
  mainContent: any;
219
253
  preSelectedOptions: any[];
220
254
  optionsResponse: any[];
221
- updateResponseList?: (list: any) => void;
255
+ updateResponseList: (list: any) => void;
222
256
  showPrice?: any;
223
257
  productData?: any;
224
258
  offeringData?: any;
@@ -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
- 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, OttServiceOptionsSmallPopup, PreToPostSubsPopup as PretoPostSubsPopup, ProductTableV3, ProductTeaser, ProductTeaserPropConfig, ProductTeaserPropConfigSchema, ProgressionBar, StaticLineTable, StickyBottomSheet, StickyBottomSheetPropConfig, StickyBottomSheetPropConfigSchema, StickyProductAnchor };
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.1-beta.0",
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": "^16.18.11",
43
- "@types/react": "^18.0.26",
44
- "@types/react-dom": "^18.0.10",
45
- "@types/uuid": "^8.3.4",
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
- "postcss": "8.4.21",
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
- "cookies-next": "^2.1.1"
66
+ "uuid": "^11.0.5"
59
67
  },
60
68
  "peerDependencies": {
61
- "@sunrise-upc/ajax-lib": "^1.1.5",
62
- "js-cookie": "^3.0.1",
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
  }