arky-sdk 0.7.92 → 0.7.93

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.cts CHANGED
@@ -172,7 +172,7 @@ declare function fetchSvgContent(mediaObject: any): Promise<string | null>;
172
172
  declare function getSvgContentForAstro(mediaObject: any): Promise<string>;
173
173
  declare function injectSvgIntoElement(mediaObject: any, targetElement: HTMLElement, className?: string): Promise<void>;
174
174
 
175
- declare const SDK_VERSION = "0.7.92";
175
+ declare const SDK_VERSION = "0.7.93";
176
176
  declare const SUPPORTED_FRAMEWORKS: readonly ["astro", "react", "vue", "svelte", "vanilla"];
177
177
  interface ApiConfig {
178
178
  httpClient: any;
@@ -617,8 +617,8 @@ declare function createStorefront(config: HttpClientConfig & {
617
617
  };
618
618
  };
619
619
  activity: {
620
- track(params: Parameters<(params: TrackParams) => Promise<void>>[0]): Promise<void>;
621
620
  COMMON_ACTIVITY_TYPES: readonly ["page_view", "product_view", "service_view", "provider_view", "cart_added", "cart_removed", "checkout_started", "purchase", "booking_created", "signin", "signup", "verified_email", "search", "share", "wishlist_added"];
621
+ track(params: TrackParams): Promise<void>;
622
622
  };
623
623
  ready: Promise<void>;
624
624
  automation: {
package/dist/index.d.ts CHANGED
@@ -172,7 +172,7 @@ declare function fetchSvgContent(mediaObject: any): Promise<string | null>;
172
172
  declare function getSvgContentForAstro(mediaObject: any): Promise<string>;
173
173
  declare function injectSvgIntoElement(mediaObject: any, targetElement: HTMLElement, className?: string): Promise<void>;
174
174
 
175
- declare const SDK_VERSION = "0.7.92";
175
+ declare const SDK_VERSION = "0.7.93";
176
176
  declare const SUPPORTED_FRAMEWORKS: readonly ["astro", "react", "vue", "svelte", "vanilla"];
177
177
  interface ApiConfig {
178
178
  httpClient: any;
@@ -617,8 +617,8 @@ declare function createStorefront(config: HttpClientConfig & {
617
617
  };
618
618
  };
619
619
  activity: {
620
- track(params: Parameters<(params: TrackParams) => Promise<void>>[0]): Promise<void>;
621
620
  COMMON_ACTIVITY_TYPES: readonly ["page_view", "product_view", "service_view", "provider_view", "cart_added", "cart_removed", "checkout_started", "purchase", "booking_created", "signin", "signup", "verified_email", "search", "share", "wishlist_added"];
621
+ track(params: TrackParams): Promise<void>;
622
622
  };
623
623
  ready: Promise<void>;
624
624
  automation: {
package/dist/index.js CHANGED
@@ -2678,7 +2678,7 @@ function getFirstAvailableFCId(variant, quantity = 1) {
2678
2678
  }
2679
2679
 
2680
2680
  // src/index.ts
2681
- var SDK_VERSION = "0.7.92";
2681
+ var SDK_VERSION = "0.7.93";
2682
2682
  var SUPPORTED_FRAMEWORKS = [
2683
2683
  "astro",
2684
2684
  "react",
@@ -3001,13 +3001,6 @@ function createStorefront(config) {
3001
3001
  });
3002
3002
  return sessionPromise;
3003
3003
  }
3004
- const activity = {
3005
- ...storefrontApi.activity,
3006
- async track(params) {
3007
- await ready;
3008
- return storefrontApi.activity.track(params);
3009
- }
3010
- };
3011
3004
  function setMarket(key) {
3012
3005
  sessionPromise = null;
3013
3006
  return session(key);
@@ -3020,7 +3013,7 @@ function createStorefront(config) {
3020
3013
  eshop: storefrontApi.eshop,
3021
3014
  booking: storefrontApi.booking,
3022
3015
  crm: storefrontApi.crm,
3023
- activity,
3016
+ activity: storefrontApi.activity,
3024
3017
  ready,
3025
3018
  automation: storefrontApi.automation,
3026
3019
  setBusinessId: (businessId) => {