@wayke-se/ecom-web 1.0.2 → 1.0.3-beta.1

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.
package/dist/index.d.ts CHANGED
@@ -770,6 +770,7 @@ declare module '@wayke-se/ecom-web/src/Components/Gallery/Gallery' {
770
770
  interface GalleryProps {
771
771
  id: string;
772
772
  media: Media[];
773
+ onGalleryImagePaging?: () => void;
773
774
  }
774
775
  class Gallery extends HtmlNode {
775
776
  private readonly props;
@@ -1145,10 +1146,13 @@ declare module '@wayke-se/ecom-web/src/Components/OverflowGrid/OverflowGridItem'
1145
1146
  readonly selected?: boolean;
1146
1147
  readonly onClick: () => void;
1147
1148
  readonly onInfo?: () => void;
1149
+ readonly inViewPort?: () => void;
1148
1150
  }
1149
1151
  class GridItem extends HtmlNode {
1150
1152
  private readonly props;
1153
+ private hasBeenInViewPort;
1151
1154
  constructor(element: HTMLElement, props: GridItemProps, id: string);
1155
+ private attachInViewportTrigger;
1152
1156
  render(): void;
1153
1157
  }
1154
1158
  export default GridItem;
@@ -1774,10 +1778,13 @@ declare module '@wayke-se/ecom-web/src/Utils/ecomEvent' {
1774
1778
  DELIVERY_HOME_SET = "DELIVERY_HOME_SET",
1775
1779
  ACCESSORY_ACTIVE = "ACCESSORY_ACTIVE",
1776
1780
  ACCESSORY_EDIT = "ACCESSORY_EDIT",
1781
+ ACCESSORY_EXPOSURE = "ACCESSORY_EXPOSURE",
1777
1782
  ACCESSORY_SKIPPED = "ACCESSORY_SKIPPED",
1778
1783
  ACCESSORY_SELECTED = "ACCESSORY_SELECTED",
1779
1784
  ACCESSORY_UNSELECTED = "ACCESSORY_UNSELECTED",
1780
- ACCESSORY_INFORMATION_TOGGLE = "ACCESSORY_INFORMATION_TOGGLE",
1785
+ ACCESSORY_INFORMATION_OPEN = "ACCESSORY_INFORMATION_OPEN",
1786
+ ACCESSORY_INFORMATION_CLOSE = "ACCESSORY_INFORMATION_CLOSE",
1787
+ ACCESSORY_INFORMATION_GALLERY_IMAGE_PAGING = "ACCESSORY_INFORMATION_GALLERY_IMAGE_PAGING",
1781
1788
  ACCESSORY_ARROWS = "ACCESSORY_ARROWS",
1782
1789
  CONFIRMATION_BANKID_ABORTED = "CONFIRMATION_BANKID_ABORTED",
1783
1790
  CONFIRMATION_BANKID_INIT_REQUESTED = "CONFIRMATION_BANKID_INIT_REQUESTED",
@@ -1819,17 +1826,24 @@ declare module '@wayke-se/ecom-web/src/Utils/ecomEvent' {
1819
1826
  MAIN = "MAIN",
1820
1827
  SUMMARY = "SUMMARY"
1821
1828
  }
1822
- type Listner = (view: EcomView, ecomEvent: EcomEvent, currentStep?: EcomStep) => void;
1829
+ type Listner = (view: EcomView, ecomEvent: EcomEvent, currentStep?: EcomStep, data?: {
1830
+ [key: string]: any;
1831
+ }) => void;
1823
1832
  export const registerEventListner: (fn: Listner) => void;
1824
1833
  export const unregisterEventListner: (fn: Listner) => void;
1825
1834
  interface EventHistory {
1826
1835
  view: EcomView;
1827
1836
  ecomEvent: EcomEvent;
1828
1837
  currentStep?: EcomStep;
1838
+ data?: {
1839
+ [key: string]: any;
1840
+ };
1829
1841
  }
1830
1842
  export const eventHistory: EventHistory[];
1831
1843
  export const getLastHistory: () => EventHistory;
1832
- const ecomEvent: (view: EcomView, ecomEvent: EcomEvent, currentStep?: EcomStep) => void;
1844
+ const ecomEvent: (view: EcomView, ecomEvent: EcomEvent, currentStep?: EcomStep, data?: {
1845
+ [key: string]: any;
1846
+ } | undefined) => void;
1833
1847
  export default ecomEvent;
1834
1848
 
1835
1849
  }
@@ -1939,10 +1953,12 @@ declare module '@wayke-se/ecom-web/src/Views/Main/Accessories/AccessoryItem' {
1939
1953
  class AccessoryItem extends HtmlNode {
1940
1954
  private readonly props;
1941
1955
  private displayInfo;
1956
+ private exposureTracked;
1942
1957
  constructor(element: HTMLElement, props: AccessoryItemProps);
1943
1958
  private onInfoOpen;
1944
1959
  private onInfoClose;
1945
1960
  private onClick;
1961
+ private trackExposure;
1946
1962
  render(): void;
1947
1963
  }
1948
1964
  export default AccessoryItem;
@@ -1960,6 +1976,7 @@ declare module '@wayke-se/ecom-web/src/Views/Main/Accessories/AccessoryItemInfo'
1960
1976
  class AccessoryItemInfo extends HtmlNode {
1961
1977
  private readonly props;
1962
1978
  constructor(element: HTMLElement, props: AccessoryItemInfoProps);
1979
+ private onGalleryImagePaging;
1963
1980
  render(): void;
1964
1981
  }
1965
1982
  export default AccessoryItemInfo;