@sunrise-upc/mobile-prod-card 1.0.26 → 1.0.27-beta.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (30) hide show
  1. package/dist/cjs/Analytics/AnalyticsConstants.d.ts +15 -0
  2. package/dist/cjs/Analytics/items.d.ts +32 -0
  3. package/dist/cjs/components/ProductDetailsV3/CashBackV2/CashbackV2.d.ts +3 -0
  4. package/dist/cjs/components/ProductDetailsV3/ProductDetailsModal/ProductDetailsV2.d.ts +2 -1
  5. package/dist/cjs/components/ProductTeaser/ProductTeaserSlides.d.ts +1 -0
  6. package/dist/cjs/components/ResponsiveRow/row.d.ts +1 -0
  7. package/dist/cjs/components/lineTable/OrderButton.d.ts +1 -1
  8. package/dist/cjs/components/lineTable/lineTable.types.d.ts +1 -0
  9. package/dist/cjs/index.js +1 -1
  10. package/dist/cjs/models/Analytics/items.d.ts +40 -0
  11. package/dist/cjs/services/LineTableService.d.ts +1 -1
  12. package/dist/cjs/utils/AnalyticsUtils.d.ts +1 -0
  13. package/dist/cjs/utils/global.d.ts +6 -0
  14. package/dist/esm/Analytics/AnalyticsConstants.d.ts +15 -0
  15. package/dist/esm/Analytics/items.d.ts +32 -0
  16. package/dist/esm/components/ProductDetailsV3/CashBackV2/CashbackV2.d.ts +3 -0
  17. package/dist/esm/components/ProductDetailsV3/ProductDetailsModal/ProductDetailsV2.d.ts +2 -1
  18. package/dist/esm/components/ProductTeaser/ProductTeaserSlides.d.ts +1 -0
  19. package/dist/esm/components/ResponsiveRow/row.d.ts +1 -0
  20. package/dist/esm/components/lineTable/OrderButton.d.ts +1 -1
  21. package/dist/esm/components/lineTable/lineTable.types.d.ts +1 -0
  22. package/dist/esm/index.js +1 -1
  23. package/dist/esm/models/Analytics/items.d.ts +40 -0
  24. package/dist/esm/services/LineTableService.d.ts +1 -1
  25. package/dist/esm/utils/AnalyticsUtils.d.ts +1 -0
  26. package/dist/esm/utils/global.d.ts +6 -0
  27. package/dist/index.d.ts +1 -0
  28. package/package.json +2 -2
  29. package/dist/cjs/components/ProductDetailsV3/BundleEntitlementValueV3.d.ts +0 -3
  30. package/dist/esm/components/ProductDetailsV3/BundleEntitlementValueV3.d.ts +0 -3
@@ -0,0 +1,15 @@
1
+ export declare const ADDTOCART = "addtocart";
2
+ export declare const BRAND = "Sunrise";
3
+ export declare const CURRENCY = "CHF";
4
+ export declare const STICKYLINETABLE = "Sticky Line Table";
5
+ export declare const SELECTPROMOTION = "select_promotion";
6
+ export declare const VIEWPROMOTION = "view_promotion";
7
+ export declare const DOWNLOADPRODUCT = "download_product_details";
8
+ export declare const BUNDLEPRODUCT = "BUNDLE";
9
+ export declare const GAEVENT = "gaEvent";
10
+ export declare const STAGETEASER = "Stage Teaser";
11
+ export declare const LINETABLE = "Line Table";
12
+ export declare const COMBINEDEVICE = "combine_with_device";
13
+ export declare const TABCLICK = "tab_click";
14
+ export declare const TOGGLE_ON_CONFIGURATOR = "toggle_on_configurator";
15
+ export declare const TOGGLE_OFF_CONFIGURATOR = "toggle_off_configurator";
@@ -0,0 +1,32 @@
1
+ export interface itemInfoEvent {
2
+ item_id: string;
3
+ item_name: string;
4
+ affiliation: string | number;
5
+ coupon: string | number;
6
+ discount: number;
7
+ index: number;
8
+ item_brand: string;
9
+ item_category: string;
10
+ item_category2: string;
11
+ item_category3: string;
12
+ item_category4: string;
13
+ item_category5: string;
14
+ item_list_id: string;
15
+ item_list_name: string;
16
+ item_variant: string;
17
+ location_id: string | number;
18
+ price: number;
19
+ quantity: number;
20
+ promotion_id: string;
21
+ }
22
+ export interface ecomAddCartInfo {
23
+ currency: string;
24
+ value: string | number;
25
+ items: itemInfoEvent[];
26
+ }
27
+ export declare const getItemData: (item: any, data?: any) => itemInfoEvent;
28
+ export declare const getEcomInfo: (items: any, category?: any, location?: any) => any;
29
+ export declare const getEcomCartInfo: (items: any, category: any, location: any) => ecomAddCartInfo;
30
+ export declare const trackEligibleItem: (type: string, prodData?: any, category?: any, location?: any) => void;
31
+ export declare const clickEvent: (eventName: string, text: string) => void;
32
+ export declare const toggleEvent: (eventName: string, headline: string, selection: string) => void;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const CashbackV2: ({ content }: any) => JSX.Element;
3
+ export default CashbackV2;
@@ -7,6 +7,7 @@ interface ProductDetailsSchema {
7
7
  addToCart: any;
8
8
  sbStaticConstants: any;
9
9
  createCartCall: any;
10
+ contractDuration: any;
10
11
  }
11
- declare const ProductDetailsV2: ({ products, showProductDetail, setShowProductDetail, content, priceCollection, addToCart, sbStaticConstants, createCartCall }: ProductDetailsSchema) => any;
12
+ declare const ProductDetailsV2: ({ products, showProductDetail, setShowProductDetail, content, priceCollection, addToCart, sbStaticConstants, createCartCall, contractDuration }: ProductDetailsSchema) => any;
12
13
  export default ProductDetailsV2;
@@ -6,6 +6,7 @@ export interface ProductTeaserSlidesSchema {
6
6
  index: number;
7
7
  offeringData: any;
8
8
  lineCheckCallBack?: () => void;
9
+ setEnableToggle?: any;
9
10
  }
10
11
  declare const ProductTeaserSlides: FC<ProductTeaserSlidesSchema>;
11
12
  export default ProductTeaserSlides;
@@ -2,6 +2,7 @@ import { FC } from 'react';
2
2
  import './row.css';
3
3
  interface RowInterface {
4
4
  children: JSX.Element;
5
+ resuablelineTable?: boolean;
5
6
  }
6
7
  declare const Row: FC<RowInterface>;
7
8
  export default Row;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- declare const OrderButton: ({ content, isMobileFlow, sbStaticConstants, address, isAvailable, showPrice, isSkeletonLoading, createCartCall }: any) => JSX.Element;
2
+ declare const OrderButton: ({ content, isMobileFlow, sbStaticConstants, address, isAvailable, showPrice, createCartCall }: any) => JSX.Element;
3
3
  export default OrderButton;
@@ -1,6 +1,7 @@
1
1
  export interface ProductTableSchema {
2
2
  content: any;
3
3
  metadata: any;
4
+ setGenericErrorModalDetails: any;
4
5
  lineCheckCallBack?: () => void;
5
6
  changeAddressClicked?: any;
6
7
  }