@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.
- package/dist/cjs/Analytics/AnalyticsConstants.d.ts +15 -0
- package/dist/cjs/Analytics/items.d.ts +32 -0
- package/dist/cjs/components/ProductDetailsV3/CashBackV2/CashbackV2.d.ts +3 -0
- package/dist/cjs/components/ProductDetailsV3/ProductDetailsModal/ProductDetailsV2.d.ts +2 -1
- package/dist/cjs/components/ProductTeaser/ProductTeaserSlides.d.ts +1 -0
- package/dist/cjs/components/ResponsiveRow/row.d.ts +1 -0
- package/dist/cjs/components/lineTable/OrderButton.d.ts +1 -1
- package/dist/cjs/components/lineTable/lineTable.types.d.ts +1 -0
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/models/Analytics/items.d.ts +40 -0
- package/dist/cjs/services/LineTableService.d.ts +1 -1
- package/dist/cjs/utils/AnalyticsUtils.d.ts +1 -0
- package/dist/cjs/utils/global.d.ts +6 -0
- package/dist/esm/Analytics/AnalyticsConstants.d.ts +15 -0
- package/dist/esm/Analytics/items.d.ts +32 -0
- package/dist/esm/components/ProductDetailsV3/CashBackV2/CashbackV2.d.ts +3 -0
- package/dist/esm/components/ProductDetailsV3/ProductDetailsModal/ProductDetailsV2.d.ts +2 -1
- package/dist/esm/components/ProductTeaser/ProductTeaserSlides.d.ts +1 -0
- package/dist/esm/components/ResponsiveRow/row.d.ts +1 -0
- package/dist/esm/components/lineTable/OrderButton.d.ts +1 -1
- package/dist/esm/components/lineTable/lineTable.types.d.ts +1 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/models/Analytics/items.d.ts +40 -0
- package/dist/esm/services/LineTableService.d.ts +1 -1
- package/dist/esm/utils/AnalyticsUtils.d.ts +1 -0
- package/dist/esm/utils/global.d.ts +6 -0
- package/dist/index.d.ts +1 -0
- package/package.json +2 -2
- package/dist/cjs/components/ProductDetailsV3/BundleEntitlementValueV3.d.ts +0 -3
- 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;
|
@@ -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;
|
@@ -1,3 +1,3 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
declare const OrderButton: ({ content, isMobileFlow, sbStaticConstants, address, isAvailable, showPrice,
|
2
|
+
declare const OrderButton: ({ content, isMobileFlow, sbStaticConstants, address, isAvailable, showPrice, createCartCall }: any) => JSX.Element;
|
3
3
|
export default OrderButton;
|