@ikas/storefront 0.0.81 → 0.0.83

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.
@@ -0,0 +1,38 @@
1
+ import { IkasProductDetail, IkasOrderLineItem, IkasCheckout } from "../models/index";
2
+ import { CheckoutStep } from "../components/checkout/model";
3
+ export declare class Analytics {
4
+ constructor();
5
+ static pageView(url: string): {
6
+ event: string;
7
+ page: string;
8
+ } | undefined;
9
+ static productView(productDetail: IkasProductDetail): any;
10
+ static addToCart(item: IkasProductDetail | IkasOrderLineItem, quantity: number): any;
11
+ static removeFromCart(item: IkasProductDetail | IkasOrderLineItem, quantity: number): any;
12
+ static beginCheckout(checkout: IkasCheckout): any;
13
+ static purchase(checkout: IkasCheckout, orderId: string): any;
14
+ static checkoutStep(checkout: IkasCheckout, step: CheckoutStep): {
15
+ event: string;
16
+ ecommerce: {
17
+ items: {
18
+ item_name: string;
19
+ item_id: string;
20
+ price: string;
21
+ item_brand: string;
22
+ item_category: string;
23
+ item_category_2: string;
24
+ item_category_3: string;
25
+ item_category_4: string;
26
+ item_variant: string;
27
+ item_list_name: string;
28
+ item_list_id: string;
29
+ index: number;
30
+ quantity: number;
31
+ }[] | undefined;
32
+ };
33
+ } | undefined;
34
+ static disableHTML(): void;
35
+ static addToWishlist(id: string): any;
36
+ static search(searchKeyword: string): any;
37
+ static completeRegistration(): any;
38
+ }
@@ -0,0 +1,7 @@
1
+ import * as React from "react";
2
+ declare type HeadProps = {
3
+ blockHTML?: boolean;
4
+ };
5
+ export declare const AnalyticsHead: React.FC<HeadProps>;
6
+ export declare const AnalyticsBody: React.FC;
7
+ export {};
@@ -0,0 +1,2 @@
1
+ export { Analytics } from "./analytics";
2
+ export * from "./head/index";
@@ -3,5 +3,3 @@ export { IkasPage } from "./page/index";
3
3
  export { IkasPageHead } from "./page/head";
4
4
  export { IkasPageEditor } from "./page-editor/index";
5
5
  export { Image } from "./image/index";
6
- export * from "./gtm/index";
7
- export * from "./gtm/functions";
package/build/index.d.ts CHANGED
@@ -5,3 +5,4 @@ export * from "./pages/index";
5
5
  export * from "./store/index";
6
6
  export * from "./storefront/index";
7
7
  export * from "./utils/index";
8
+ export * from "./analytics/index";