@ikas/storefront 0.0.122 → 0.0.124

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.
@@ -1,4 +1,4 @@
1
- import { IkasProductDetail, IkasOrderLineItem, IkasCheckout } from "../models/index";
1
+ import { IkasProductDetail, IkasOrderLineItem, IkasCheckout, IkasCategory } from "../models/index";
2
2
  import { CheckoutStep } from "../components/checkout/model";
3
3
  import { IkasCart } from "../models/data/cart/index";
4
4
  export declare class Analytics {
@@ -15,6 +15,6 @@ export declare class Analytics {
15
15
  static search(searchKeyword: string): void;
16
16
  static completeRegistration(): void;
17
17
  static viewCart(cart: IkasCart | null | undefined): void;
18
- static viewCategory(categoryPath: string): void;
18
+ static viewCategory(categoryPath: string, category: IkasCategory): void;
19
19
  static contactForm(): void;
20
20
  }
@@ -1,4 +1,4 @@
1
- import { IkasProductDetail, IkasOrderLineItem, IkasCheckout } from "../models/index";
1
+ import { IkasProductDetail, IkasOrderLineItem, IkasCheckout, IkasCategory } from "../models/index";
2
2
  import { CheckoutStep } from "../components/checkout/model";
3
3
  export declare class GoogleTagManager {
4
4
  constructor();
@@ -164,4 +164,24 @@ export declare class GoogleTagManager {
164
164
  };
165
165
  } | undefined;
166
166
  static disableHTML(): void;
167
+ static completeRegistration(): {
168
+ event: string;
169
+ } | undefined;
170
+ static search(searchKeyword: string): {
171
+ event: string;
172
+ search_string: string;
173
+ } | undefined;
174
+ static viewCategory(category: IkasCategory, categoryPath: string): {
175
+ event: string;
176
+ ecommerce: {
177
+ category: {
178
+ id: string;
179
+ name: string;
180
+ metaData: import("../models/index").IkasHTMLMetaData | null | undefined;
181
+ href: string;
182
+ image: import("../models/index").IkasImage | null | undefined;
183
+ path: string;
184
+ }[];
185
+ };
186
+ } | undefined;
167
187
  }
@@ -1,11 +1,10 @@
1
1
  import * as React from "react";
2
- import { IkasThemePageComponent } from "../../models/index";
2
+ import { IkasThemeSettings } from "../../models/index";
3
3
  import { IkasPageComponentPropValue } from "../../utils/index";
4
4
  declare type Props = {
5
5
  pageComponentPropValue: IkasPageComponentPropValue;
6
- pageComponent: IkasThemePageComponent;
7
6
  index: number;
8
- settingsStr: string;
7
+ settings: IkasThemeSettings;
9
8
  };
10
9
  export declare const ThemeComponent: React.FC<Props>;
11
10
  export {};
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- import { IkasThemePage } from "../../models/index";
2
+ import { IkasThemePage, IkasThemeSettings } from "../../models/index";
3
3
  import { IkasPageComponentPropValue } from "../../utils/index";
4
4
  declare type Props = {
5
5
  propValues: IkasPageComponentPropValue[];
@@ -10,4 +10,5 @@ declare type Props = {
10
10
  addOgpMetas?: boolean;
11
11
  };
12
12
  export declare const IkasPage: React.FC<Props>;
13
+ export declare const renderComponent: (pageComponentPropValue: IkasPageComponentPropValue, settings: IkasThemeSettings, index: number) => JSX.Element;
13
14
  export {};
@@ -25,7 +25,6 @@ export default class PageViewModel {
25
25
  onMouseOver: (id: string) => void;
26
26
  onMouseLeave: (id: string) => void;
27
27
  sendMessage: (type: BridgeMessageType, data?: any) => void;
28
- getComponentPropValues: (pageComponent: IkasThemePageComponent) => any;
29
28
  getPagePropValues: () => Promise<void>;
30
29
  setComponentRef: (element: React.ElementType, component: IkasThemePageComponent) => void;
31
30
  isScrolledIntoView: (el: HTMLElement) => boolean;