arky-sdk 0.7.91 → 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.cjs CHANGED
@@ -2477,17 +2477,10 @@ function createStores() {
2477
2477
  currencyDisplay: "narrowSymbol"
2478
2478
  }).formatToParts(0).find((p) => p.type === "currency")?.value || m.currency.toUpperCase();
2479
2479
  });
2480
- const $paymentMethods = nanostores.computed(
2481
- $market,
2482
- (m) => (m?.payment_methods || []).map((pm) => pm.id)
2483
- );
2484
- const $paymentMethodObjects = nanostores.computed(
2485
- $market,
2486
- (m) => m?.payment_methods || []
2487
- );
2480
+ const $paymentMethods = nanostores.computed($market, (m) => m?.payment_methods || []);
2488
2481
  const $paymentConfig = nanostores.computed([$business, $paymentMethods], (biz, methods) => {
2489
2482
  const payment = biz?.payment || null;
2490
- const hasCreditCard = methods.includes("credit_card");
2483
+ const hasCreditCard = methods.some((m) => m.id === "credit_card");
2491
2484
  return {
2492
2485
  provider: payment,
2493
2486
  enabled: hasCreditCard && !!payment
@@ -2504,7 +2497,6 @@ function createStores() {
2504
2497
  currency: $currency,
2505
2498
  currencySymbol: $currencySymbol,
2506
2499
  paymentMethods: $paymentMethods,
2507
- paymentMethodObjects: $paymentMethodObjects,
2508
2500
  paymentConfig: $paymentConfig,
2509
2501
  zones: $zones
2510
2502
  };
@@ -2688,7 +2680,7 @@ function getFirstAvailableFCId(variant, quantity = 1) {
2688
2680
  }
2689
2681
 
2690
2682
  // src/index.ts
2691
- var SDK_VERSION = "0.7.91";
2683
+ var SDK_VERSION = "0.7.93";
2692
2684
  var SUPPORTED_FRAMEWORKS = [
2693
2685
  "astro",
2694
2686
  "react",
@@ -3011,13 +3003,6 @@ function createStorefront(config) {
3011
3003
  });
3012
3004
  return sessionPromise;
3013
3005
  }
3014
- const activity = {
3015
- ...storefrontApi.activity,
3016
- async track(params) {
3017
- await ready;
3018
- return storefrontApi.activity.track(params);
3019
- }
3020
- };
3021
3006
  function setMarket(key) {
3022
3007
  sessionPromise = null;
3023
3008
  return session(key);
@@ -3030,7 +3015,7 @@ function createStorefront(config) {
3030
3015
  eshop: storefrontApi.eshop,
3031
3016
  booking: storefrontApi.booking,
3032
3017
  crm: storefrontApi.crm,
3033
- activity,
3018
+ activity: storefrontApi.activity,
3034
3019
  ready,
3035
3020
  automation: storefrontApi.automation,
3036
3021
  setBusinessId: (businessId) => {