@layers/react-native 3.3.0 → 3.3.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
@@ -1,4 +1,4 @@
1
1
  import { a as isATTAvailable, i as getVendorId, n as getATTStatus, o as requestTrackingAuthorization, r as getAdvertisingId, t as ATTStatus } from "./att-BFy6dcWE.js";
2
2
  import { i as SKANPresetConfig, n as SKANManager, r as SKANMetrics, t as SKANConversionRule } from "./skan-DnKHcXAj.js";
3
- import { $ as buildSubscribeEvent, $t as superwallTrackPresentation, A as LayersReactNative, At as syncRevenueCatAttributes, B as SurveyResponse, Bt as trackBeginCheckout, C as GroupsState, Ct as registerExpoBackgroundFlush, D as LayersEvent, Dt as connectRevenueCat, E as LayersError, Et as RevenueCatPackage, F as SurveyAnswer, Ft as PurchaseFailedParams, G as UserProperties, Gt as trackRemoveFromCart, H as SurveyTargetingContext, Ht as trackPurchase, I as SurveyDefinition, It as PurchaseParams, J as buildBeginCheckoutEvent, Jt as SuperwallEventInfo, K as ViewItemEventParams, Kt as trackSubscription, L as SurveyDisplay, Lt as RefundParams, M as RefundEventParams, Mt as CartItem, N as StartTrialEventParams, Nt as CommerceTracker, O as LayersEventName, Ot as isRevenueCatConnected, P as SubscribeEventParams, Pt as OrderParams, Q as buildStartTrialEvent, Qt as superwallTrackDismiss, R as SurveyPosition, Rt as SubscriptionParams, S as GoogleAdvertisingInfo, Sn as viewItemEvent, St as createBackgroundFlushHandler, T as InstallReferrerData, Tt as RevenueCatCustomerInfo, U as SurveyType, Ut as trackPurchaseFailed, V as SurveyTargeting, Vt as trackOrder, W as TypedEventPayload, Wt as trackRefund, X as buildPurchaseEvent, Xt as SuperwallProduct, Y as buildInstallReferrerProperties, Yt as SuperwallPaywallInfo, Z as buildRefundEvent, Zt as superwallOnEvent, _ as FeatureFlagCondition, _n as signUpEvent, _t as resolveActiveRoute, a as BeginCheckoutEventParams, an as StandardEvents, at as getInstallReferrer, b as FeatureFlagVariant, bn as tutorialCompleteEvent, bt as BACKGROUND_FLUSH_TASK_NAME, c as DeepLinkData, cn as initiateCheckoutEvent, ct as parseInstallReferrerUrl, d as EcommerceItem, dn as loginEvent, dt as shouldTreatAsNewInstall, en as superwallTrackPurchase, et as buildViewItemEvent, f as Environment, fn as purchaseEvent, ft as useLayersExpoRouterTracking, g as FeatureFlagBootstrapData, gn as shareEvent, gt as createNavigationListener, h as FeatureFlagBootstrap, hn as searchEvent, ht as NavigationTrackingHooks, i as BeforeSendHook, in as StandardEventPayload, it as getGoogleAdvertisingId, j as PurchaseEventParams, jt as trackRevenueCatPurchase, k as LayersRNConfig, kt as resetRevenueCatForTesting, l as DeviceContext, ln as levelCompleteEvent, lt as readClipboardAttribution, m as EventProperties, mn as screenViewEvent, mt as SurveysModuleOptions, n as AppStateLike, nn as superwallUserAttributes, nt as getAdServicesToken, o as ClipboardAttribution, on as addToCartEvent, ot as getOrSetInstallId, p as ErrorListener, pn as registerEvent, pt as SurveysModule, q as buildAddToCartEvent, qt as trackViewProduct, r as BeforeSendEvent, rn as StandardEventName, rt as getFirstInstallTime, s as ConsentState, sn as addToWishlistEvent, st as parseDeepLink, t as AddToCartEventParams, tn as superwallTrackSkip, tt as formatFbc, u as DeviceInfoUpdate, un as levelStartEvent, ut as setupDeepLinkListener, v as FeatureFlagDefinition, vn as startTrialEvent, vt as useLayersNavigationTracking, w as InitListener, wt as RevenueCatConfig, x as FeatureFlagsListener, xn as viewContentEvent, xt as BackgroundFlushResult, y as FeatureFlagValue, yn as subscribeEvent, yt as BACKGROUND_FLUSH_MIN_INTERVAL_MINUTES, z as SurveyQuestion, zt as trackAddToCart } from "./index-DjLsbUvy.js";
4
- export { ATTStatus, AddToCartEventParams, AppStateLike, BACKGROUND_FLUSH_MIN_INTERVAL_MINUTES, BACKGROUND_FLUSH_TASK_NAME, BackgroundFlushResult, BeforeSendEvent, BeforeSendHook, BeginCheckoutEventParams, CartItem, ClipboardAttribution, CommerceTracker, ConsentState, DeepLinkData, DeviceContext, DeviceInfoUpdate, EcommerceItem, Environment, ErrorListener, EventProperties, FeatureFlagBootstrap, FeatureFlagBootstrapData, FeatureFlagCondition, FeatureFlagDefinition, FeatureFlagValue, FeatureFlagVariant, FeatureFlagsListener, GoogleAdvertisingInfo, GroupsState, InitListener, InstallReferrerData, LayersError, LayersEvent, LayersEventName, LayersRNConfig, LayersReactNative, NavigationTrackingHooks, OrderParams, PurchaseEventParams, PurchaseFailedParams, PurchaseParams, RefundEventParams, RefundParams, RevenueCatConfig, RevenueCatCustomerInfo, RevenueCatPackage, SKANConversionRule, SKANManager, SKANMetrics, SKANPresetConfig, StandardEventName, StandardEventPayload, StandardEvents, StartTrialEventParams, SubscribeEventParams, SubscriptionParams, SuperwallEventInfo, SuperwallPaywallInfo, SuperwallProduct, SurveyAnswer, SurveyDefinition, SurveyDisplay, SurveyPosition, SurveyQuestion, SurveyResponse, SurveyTargeting, SurveyTargetingContext, SurveyType, SurveysModule, SurveysModuleOptions, TypedEventPayload, UserProperties, ViewItemEventParams, addToCartEvent, addToWishlistEvent, buildAddToCartEvent, buildBeginCheckoutEvent, buildInstallReferrerProperties, buildPurchaseEvent, buildRefundEvent, buildStartTrialEvent, buildSubscribeEvent, buildViewItemEvent, connectRevenueCat, createBackgroundFlushHandler, createNavigationListener, formatFbc, getATTStatus, getAdServicesToken, getAdvertisingId, getFirstInstallTime, getGoogleAdvertisingId, getInstallReferrer, getOrSetInstallId, getVendorId, initiateCheckoutEvent, isATTAvailable, isRevenueCatConnected, levelCompleteEvent, levelStartEvent, loginEvent, parseDeepLink, parseInstallReferrerUrl, purchaseEvent, readClipboardAttribution, registerEvent, registerExpoBackgroundFlush, requestTrackingAuthorization, resetRevenueCatForTesting, resolveActiveRoute, screenViewEvent, searchEvent, setupDeepLinkListener, shareEvent, shouldTreatAsNewInstall, signUpEvent, startTrialEvent, subscribeEvent, superwallOnEvent, superwallTrackDismiss, superwallTrackPresentation, superwallTrackPurchase, superwallTrackSkip, superwallUserAttributes, syncRevenueCatAttributes, trackAddToCart, trackBeginCheckout, trackOrder, trackPurchase, trackPurchaseFailed, trackRefund, trackRemoveFromCart, trackRevenueCatPurchase, trackSubscription, trackViewProduct, tutorialCompleteEvent, useLayersExpoRouterTracking, useLayersNavigationTracking, viewContentEvent, viewItemEvent };
3
+ import { $ as buildPaywallShowEvent, $t as trackRefund, A as LayersRNConfig, An as startTrialEvent, At as BackgroundFlushResult, B as SurveyQuestion, Bt as trackRevenueCatPurchase, C as GoogleAdvertisingInfo, Cn as paywallShowEvent, Ct as installExceptionAutoCapture, D as LayersError, Dn as searchEvent, Dt as useLayersNavigationTracking, E as InstallReferrerData, En as screenViewEvent, Et as resolveActiveRoute, F as SubscribeEventParams, Ft as RevenueCatPackage, G as TypedEventPayload, Gt as PurchaseParams, H as SurveyTargeting, Ht as CommerceTracker, I as SurveyAnswer, It as connectRevenueCat, J as buildAddToCartEvent, Jt as trackAddToCart, K as UserProperties, Kt as RefundParams, L as SurveyDefinition, Lt as isRevenueCatConnected, M as PurchaseEventParams, Mn as tutorialCompleteEvent, Mt as registerExpoBackgroundFlush, N as RefundEventParams, Nn as viewContentEvent, Nt as RevenueCatConfig, O as LayersEvent, On as shareEvent, Ot as BACKGROUND_FLUSH_MIN_INTERVAL_MINUTES, P as StartTrialEventParams, Pn as viewItemEvent, Pt as RevenueCatCustomerInfo, Q as buildOnboardingStartEvent, Qt as trackPurchaseFailed, R as SurveyDisplay, Rt as resetRevenueCatForTesting, S as FeatureFlagsListener, Sn as onboardingStartEvent, St as buildExceptionProperties, T as InitListener, Tn as registerEvent, Tt as createNavigationListener, U as SurveyTargetingContext, Ut as OrderParams, V as SurveyResponse, Vt as CartItem, W as SurveyType, Wt as PurchaseFailedParams, X as buildInstallReferrerProperties, Xt as trackOrder, Y as buildBeginCheckoutEvent, Yt as trackBeginCheckout, Z as buildOnboardingCompleteEvent, Zt as trackPurchase, _ as FeatureFlagBootstrapData, _n as initiateCheckoutEvent, _t as SurveysModule, a as BeginCheckoutEventParams, an as SuperwallProduct, at as formatFbc, b as FeatureFlagValue, bn as loginEvent, bt as ExceptionProperties, c as DeepLinkData, cn as superwallTrackPresentation, ct as getGoogleAdvertisingId, d as EcommerceItem, dn as superwallUserAttributes, dt as parseDeepLink, en as trackRemoveFromCart, et as buildPurchaseEvent, f as Environment, fn as StandardEventName, ft as parseInstallReferrerUrl, g as FeatureFlagBootstrap, gn as addToWishlistEvent, gt as useLayersExpoRouterTracking, h as ExpoRouterTrackingOptions, hn as addToCartEvent, ht as shouldTreatAsNewInstall, i as BeforeSendHook, in as SuperwallPaywallInfo, it as buildViewItemEvent, j as LayersReactNative, jn as subscribeEvent, jt as createBackgroundFlushHandler, k as LayersEventName, kn as signUpEvent, kt as BACKGROUND_FLUSH_TASK_NAME, l as DeviceContext, ln as superwallTrackPurchase, lt as getInstallReferrer, m as EventProperties, mn as StandardEvents, mt as setupDeepLinkListener, n as AppStateLike, nn as trackViewProduct, nt as buildStartTrialEvent, o as ClipboardAttribution, on as superwallOnEvent, ot as getAdServicesToken, p as ErrorListener, pn as StandardEventPayload, pt as readClipboardAttribution, q as ViewItemEventParams, qt as SubscriptionParams, r as BeforeSendEvent, rn as SuperwallEventInfo, rt as buildSubscribeEvent, s as ConsentState, sn as superwallTrackDismiss, st as getFirstInstallTime, t as AddToCartEventParams, tn as trackSubscription, tt as buildRefundEvent, u as DeviceInfoUpdate, un as superwallTrackSkip, ut as getOrSetInstallId, v as FeatureFlagCondition, vn as levelCompleteEvent, vt as SurveysModuleOptions, w as GroupsState, wn as purchaseEvent, wt as NavigationTrackingHooks, x as FeatureFlagVariant, xn as onboardingCompleteEvent, xt as ExceptionSink, y as FeatureFlagDefinition, yn as levelStartEvent, yt as ExceptionInstallOptions, z as SurveyPosition, zt as syncRevenueCatAttributes } from "./index-BJbKdiVm.js";
4
+ export { ATTStatus, AddToCartEventParams, AppStateLike, BACKGROUND_FLUSH_MIN_INTERVAL_MINUTES, BACKGROUND_FLUSH_TASK_NAME, BackgroundFlushResult, BeforeSendEvent, BeforeSendHook, BeginCheckoutEventParams, CartItem, ClipboardAttribution, CommerceTracker, ConsentState, DeepLinkData, DeviceContext, DeviceInfoUpdate, EcommerceItem, Environment, ErrorListener, EventProperties, ExceptionInstallOptions, ExceptionProperties, ExceptionSink, ExpoRouterTrackingOptions, FeatureFlagBootstrap, FeatureFlagBootstrapData, FeatureFlagCondition, FeatureFlagDefinition, FeatureFlagValue, FeatureFlagVariant, FeatureFlagsListener, GoogleAdvertisingInfo, GroupsState, InitListener, InstallReferrerData, LayersError, LayersEvent, LayersEventName, LayersRNConfig, LayersReactNative, NavigationTrackingHooks, OrderParams, PurchaseEventParams, PurchaseFailedParams, PurchaseParams, RefundEventParams, RefundParams, RevenueCatConfig, RevenueCatCustomerInfo, RevenueCatPackage, SKANConversionRule, SKANManager, SKANMetrics, SKANPresetConfig, StandardEventName, StandardEventPayload, StandardEvents, StartTrialEventParams, SubscribeEventParams, SubscriptionParams, SuperwallEventInfo, SuperwallPaywallInfo, SuperwallProduct, SurveyAnswer, SurveyDefinition, SurveyDisplay, SurveyPosition, SurveyQuestion, SurveyResponse, SurveyTargeting, SurveyTargetingContext, SurveyType, SurveysModule, SurveysModuleOptions, TypedEventPayload, UserProperties, ViewItemEventParams, addToCartEvent, addToWishlistEvent, buildAddToCartEvent, buildBeginCheckoutEvent, buildExceptionProperties, buildInstallReferrerProperties, buildOnboardingCompleteEvent, buildOnboardingStartEvent, buildPaywallShowEvent, buildPurchaseEvent, buildRefundEvent, buildStartTrialEvent, buildSubscribeEvent, buildViewItemEvent, connectRevenueCat, createBackgroundFlushHandler, createNavigationListener, formatFbc, getATTStatus, getAdServicesToken, getAdvertisingId, getFirstInstallTime, getGoogleAdvertisingId, getInstallReferrer, getOrSetInstallId, getVendorId, initiateCheckoutEvent, installExceptionAutoCapture, isATTAvailable, isRevenueCatConnected, levelCompleteEvent, levelStartEvent, loginEvent, onboardingCompleteEvent, onboardingStartEvent, parseDeepLink, parseInstallReferrerUrl, paywallShowEvent, purchaseEvent, readClipboardAttribution, registerEvent, registerExpoBackgroundFlush, requestTrackingAuthorization, resetRevenueCatForTesting, resolveActiveRoute, screenViewEvent, searchEvent, setupDeepLinkListener, shareEvent, shouldTreatAsNewInstall, signUpEvent, startTrialEvent, subscribeEvent, superwallOnEvent, superwallTrackDismiss, superwallTrackPresentation, superwallTrackPurchase, superwallTrackSkip, superwallUserAttributes, syncRevenueCatAttributes, trackAddToCart, trackBeginCheckout, trackOrder, trackPurchase, trackPurchaseFailed, trackRefund, trackRemoveFromCart, trackRevenueCatPurchase, trackSubscription, trackViewProduct, tutorialCompleteEvent, useLayersExpoRouterTracking, useLayersNavigationTracking, viewContentEvent, viewItemEvent };
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  const require_chunk = require('./chunk-nOFOJqeH.js');
2
2
  const require_att = require('./att-CauvkIKr.js');
3
- const require_skan = require('./skan-BRhw9sPC.js');
4
- const require_src = require('./src-oJF9UfKf.js');
3
+ const require_src = require('./src-B_cCCgWM.js');
4
+ const require_skan = require('./skan-qcOYJKzP.js');
5
5
  let __layers_core_wasm = require("@layers/core-wasm");
6
6
  __layers_core_wasm = require_chunk.__toESM(__layers_core_wasm);
7
7
 
@@ -37,7 +37,26 @@ Object.defineProperty(exports, 'buildBeginCheckoutEvent', {
37
37
  return __layers_core_wasm.beginCheckoutEvent;
38
38
  }
39
39
  });
40
+ exports.buildExceptionProperties = require_src.buildExceptionProperties;
40
41
  exports.buildInstallReferrerProperties = require_src.buildInstallReferrerProperties;
42
+ Object.defineProperty(exports, 'buildOnboardingCompleteEvent', {
43
+ enumerable: true,
44
+ get: function () {
45
+ return __layers_core_wasm.onboardingCompleteEvent;
46
+ }
47
+ });
48
+ Object.defineProperty(exports, 'buildOnboardingStartEvent', {
49
+ enumerable: true,
50
+ get: function () {
51
+ return __layers_core_wasm.onboardingStartEvent;
52
+ }
53
+ });
54
+ Object.defineProperty(exports, 'buildPaywallShowEvent', {
55
+ enumerable: true,
56
+ get: function () {
57
+ return __layers_core_wasm.paywallShowEvent;
58
+ }
59
+ });
41
60
  Object.defineProperty(exports, 'buildPurchaseEvent', {
42
61
  enumerable: true,
43
62
  get: function () {
@@ -81,13 +100,17 @@ exports.getInstallReferrer = require_src.getInstallReferrer;
81
100
  exports.getOrSetInstallId = require_src.getOrSetInstallId;
82
101
  exports.getVendorId = require_att.getVendorId;
83
102
  exports.initiateCheckoutEvent = require_src.initiateCheckoutEvent;
103
+ exports.installExceptionAutoCapture = require_src.installExceptionAutoCapture;
84
104
  exports.isATTAvailable = require_att.isATTAvailable;
85
105
  exports.isRevenueCatConnected = require_src.isRevenueCatConnected;
86
106
  exports.levelCompleteEvent = require_src.levelCompleteEvent;
87
107
  exports.levelStartEvent = require_src.levelStartEvent;
88
108
  exports.loginEvent = require_src.loginEvent;
109
+ exports.onboardingCompleteEvent = require_src.onboardingCompleteEvent;
110
+ exports.onboardingStartEvent = require_src.onboardingStartEvent;
89
111
  exports.parseDeepLink = require_src.parseDeepLink;
90
112
  exports.parseInstallReferrerUrl = require_src.parseInstallReferrerUrl;
113
+ exports.paywallShowEvent = require_src.paywallShowEvent;
91
114
  exports.purchaseEvent = require_src.purchaseEvent;
92
115
  exports.readClipboardAttribution = require_src.readClipboardAttribution;
93
116
  exports.registerEvent = require_src.registerEvent;
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { a as requestTrackingAuthorization, i as isATTAvailable, n as getAdvertisingId, r as getVendorId, t as getATTStatus } from "./att-CnlG_CuV.mjs";
2
- import { t as SKANManager } from "./skan-B0F6AX7g.mjs";
3
- import { $ as addToCartEvent, A as createBackgroundFlushHandler, B as trackPurchase, C as useLayersExpoRouterTracking, D as useLayersNavigationTracking, E as resolveActiveRoute, F as syncRevenueCatAttributes, G as trackViewProduct, H as trackRefund, I as trackRevenueCatPurchase, J as superwallTrackPresentation, K as superwallOnEvent, L as trackAddToCart, M as connectRevenueCat, N as isRevenueCatConnected, O as BACKGROUND_FLUSH_MIN_INTERVAL_MINUTES, P as resetRevenueCatForTesting, Q as StandardEvents, R as trackBeginCheckout, S as shouldTreatAsNewInstall, T as createNavigationListener, U as trackRemoveFromCart, V as trackPurchaseFailed, W as trackSubscription, X as superwallTrackSkip, Y as superwallTrackPurchase, Z as superwallUserAttributes, _ as getOrSetInstallId, a as buildBeginCheckoutEvent, at as purchaseEvent, b as readClipboardAttribution, c as buildRefundEvent, ct as searchEvent, d as buildViewItemEvent, dt as startTrialEvent, et as addToWishlistEvent, f as formatFbc, ft as subscribeEvent, g as getInstallReferrer, h as getGoogleAdvertisingId, ht as viewItemEvent, i as buildAddToCartEvent, it as loginEvent, j as registerExpoBackgroundFlush, k as BACKGROUND_FLUSH_TASK_NAME, l as buildStartTrialEvent, lt as shareEvent, m as getFirstInstallTime, mt as viewContentEvent, n as LayersEvent, nt as levelCompleteEvent, o as buildInstallReferrerProperties, ot as registerEvent, p as getAdServicesToken, pt as tutorialCompleteEvent, q as superwallTrackDismiss, r as LayersReactNative, rt as levelStartEvent, s as buildPurchaseEvent, st as screenViewEvent, t as LayersError, tt as initiateCheckoutEvent, u as buildSubscribeEvent, ut as signUpEvent, v as parseDeepLink, w as SurveysModule, x as setupDeepLinkListener, y as parseInstallReferrerUrl, z as trackOrder } from "./src-Dd76louH.mjs";
2
+ import { $ as superwallTrackSkip, A as useLayersNavigationTracking, B as trackAddToCart, C as readClipboardAttribution, Ct as installExceptionAutoCapture, D as SurveysModule, E as useLayersExpoRouterTracking, F as connectRevenueCat, G as trackRefund, H as trackOrder, I as isRevenueCatConnected, J as trackViewProduct, K as trackRemoveFromCart, L as resetRevenueCatForTesting, M as BACKGROUND_FLUSH_TASK_NAME, N as createBackgroundFlushHandler, O as createNavigationListener, P as registerExpoBackgroundFlush, Q as superwallTrackPurchase, R as syncRevenueCatAttributes, S as parseInstallReferrerUrl, St as buildExceptionProperties, T as shouldTreatAsNewInstall, U as trackPurchase, V as trackBeginCheckout, W as trackPurchaseFailed, X as superwallTrackDismiss, Y as superwallOnEvent, Z as superwallTrackPresentation, _ as getFirstInstallTime, _t as startTrialEvent, a as buildBeginCheckoutEvent, at as levelCompleteEvent, b as getOrSetInstallId, bt as viewContentEvent, c as buildOnboardingStartEvent, ct as onboardingCompleteEvent, d as buildRefundEvent, dt as purchaseEvent, et as superwallUserAttributes, f as buildStartTrialEvent, ft as registerEvent, g as getAdServicesToken, gt as signUpEvent, h as formatFbc, ht as shareEvent, i as buildAddToCartEvent, it as initiateCheckoutEvent, j as BACKGROUND_FLUSH_MIN_INTERVAL_MINUTES, k as resolveActiveRoute, l as buildPaywallShowEvent, lt as onboardingStartEvent, m as buildViewItemEvent, mt as searchEvent, n as LayersEvent, nt as addToCartEvent, o as buildInstallReferrerProperties, ot as levelStartEvent, p as buildSubscribeEvent, pt as screenViewEvent, q as trackSubscription, r as LayersReactNative, rt as addToWishlistEvent, s as buildOnboardingCompleteEvent, st as loginEvent, t as LayersError, tt as StandardEvents, u as buildPurchaseEvent, ut as paywallShowEvent, v as getGoogleAdvertisingId, vt as subscribeEvent, w as setupDeepLinkListener, x as parseDeepLink, xt as viewItemEvent, y as getInstallReferrer, yt as tutorialCompleteEvent, z as trackRevenueCatPurchase } from "./src-DL5bdg2R.mjs";
3
+ import { t as SKANManager } from "./skan-DO7MLv2w.mjs";
4
4
 
5
- export { BACKGROUND_FLUSH_MIN_INTERVAL_MINUTES, BACKGROUND_FLUSH_TASK_NAME, LayersError, LayersEvent, LayersReactNative, SKANManager, StandardEvents, SurveysModule, addToCartEvent, addToWishlistEvent, buildAddToCartEvent, buildBeginCheckoutEvent, buildInstallReferrerProperties, buildPurchaseEvent, buildRefundEvent, buildStartTrialEvent, buildSubscribeEvent, buildViewItemEvent, connectRevenueCat, createBackgroundFlushHandler, createNavigationListener, formatFbc, getATTStatus, getAdServicesToken, getAdvertisingId, getFirstInstallTime, getGoogleAdvertisingId, getInstallReferrer, getOrSetInstallId, getVendorId, initiateCheckoutEvent, isATTAvailable, isRevenueCatConnected, levelCompleteEvent, levelStartEvent, loginEvent, parseDeepLink, parseInstallReferrerUrl, purchaseEvent, readClipboardAttribution, registerEvent, registerExpoBackgroundFlush, requestTrackingAuthorization, resetRevenueCatForTesting, resolveActiveRoute, screenViewEvent, searchEvent, setupDeepLinkListener, shareEvent, shouldTreatAsNewInstall, signUpEvent, startTrialEvent, subscribeEvent, superwallOnEvent, superwallTrackDismiss, superwallTrackPresentation, superwallTrackPurchase, superwallTrackSkip, superwallUserAttributes, syncRevenueCatAttributes, trackAddToCart, trackBeginCheckout, trackOrder, trackPurchase, trackPurchaseFailed, trackRefund, trackRemoveFromCart, trackRevenueCatPurchase, trackSubscription, trackViewProduct, tutorialCompleteEvent, useLayersExpoRouterTracking, useLayersNavigationTracking, viewContentEvent, viewItemEvent };
5
+ export { BACKGROUND_FLUSH_MIN_INTERVAL_MINUTES, BACKGROUND_FLUSH_TASK_NAME, LayersError, LayersEvent, LayersReactNative, SKANManager, StandardEvents, SurveysModule, addToCartEvent, addToWishlistEvent, buildAddToCartEvent, buildBeginCheckoutEvent, buildExceptionProperties, buildInstallReferrerProperties, buildOnboardingCompleteEvent, buildOnboardingStartEvent, buildPaywallShowEvent, buildPurchaseEvent, buildRefundEvent, buildStartTrialEvent, buildSubscribeEvent, buildViewItemEvent, connectRevenueCat, createBackgroundFlushHandler, createNavigationListener, formatFbc, getATTStatus, getAdServicesToken, getAdvertisingId, getFirstInstallTime, getGoogleAdvertisingId, getInstallReferrer, getOrSetInstallId, getVendorId, initiateCheckoutEvent, installExceptionAutoCapture, isATTAvailable, isRevenueCatConnected, levelCompleteEvent, levelStartEvent, loginEvent, onboardingCompleteEvent, onboardingStartEvent, parseDeepLink, parseInstallReferrerUrl, paywallShowEvent, purchaseEvent, readClipboardAttribution, registerEvent, registerExpoBackgroundFlush, requestTrackingAuthorization, resetRevenueCatForTesting, resolveActiveRoute, screenViewEvent, searchEvent, setupDeepLinkListener, shareEvent, shouldTreatAsNewInstall, signUpEvent, startTrialEvent, subscribeEvent, superwallOnEvent, superwallTrackDismiss, superwallTrackPresentation, superwallTrackPurchase, superwallTrackSkip, superwallUserAttributes, syncRevenueCatAttributes, trackAddToCart, trackBeginCheckout, trackOrder, trackPurchase, trackPurchaseFailed, trackRefund, trackRemoveFromCart, trackRevenueCatPurchase, trackSubscription, trackViewProduct, tutorialCompleteEvent, useLayersExpoRouterTracking, useLayersNavigationTracking, viewContentEvent, viewItemEvent };
package/dist/react.d.mts CHANGED
@@ -1,6 +1,6 @@
1
1
  import "./att-BDPyE-Gs.mjs";
2
2
  import "./skan-BljOFaeU.mjs";
3
- import { A as LayersReactNative, k as LayersRNConfig, m as EventProperties, s as ConsentState } from "./index-v9kql0wu.mjs";
3
+ import { A as LayersRNConfig, j as LayersReactNative, m as EventProperties, s as ConsentState } from "./index-CQN7IdfN.mjs";
4
4
  import { ReactNode } from "react";
5
5
  import * as react_jsx_runtime0 from "react/jsx-runtime";
6
6
 
package/dist/react.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import "./att-BFy6dcWE.js";
2
2
  import "./skan-DnKHcXAj.js";
3
- import { A as LayersReactNative, k as LayersRNConfig, m as EventProperties, s as ConsentState } from "./index-DjLsbUvy.js";
3
+ import { A as LayersRNConfig, j as LayersReactNative, m as EventProperties, s as ConsentState } from "./index-BJbKdiVm.js";
4
4
  import * as react_jsx_runtime0 from "react/jsx-runtime";
5
5
  import { ReactNode } from "react";
6
6
 
package/dist/react.js CHANGED
@@ -1,7 +1,7 @@
1
1
  const require_chunk = require('./chunk-nOFOJqeH.js');
2
2
  require('./att-CauvkIKr.js');
3
- require('./skan-BRhw9sPC.js');
4
- const require_src = require('./src-oJF9UfKf.js');
3
+ const require_src = require('./src-B_cCCgWM.js');
4
+ require('./skan-qcOYJKzP.js');
5
5
  let react = require("react");
6
6
  react = require_chunk.__toESM(react);
7
7
  let react_jsx_runtime = require("react/jsx-runtime");
package/dist/react.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import "./att-CnlG_CuV.mjs";
2
- import "./skan-B0F6AX7g.mjs";
3
- import { r as LayersReactNative } from "./src-Dd76louH.mjs";
2
+ import { r as LayersReactNative } from "./src-DL5bdg2R.mjs";
3
+ import "./skan-DO7MLv2w.mjs";
4
4
  import { createContext, useCallback, useContext, useEffect, useRef } from "react";
5
5
  import { jsx } from "react/jsx-runtime";
6
6
 
@@ -128,4 +128,4 @@ var SKANManager = class {
128
128
 
129
129
  //#endregion
130
130
  export { applySkanDecision as n, setSkanCore as r, SKANManager as t };
131
- //# sourceMappingURL=skan-B0F6AX7g.mjs.map
131
+ //# sourceMappingURL=skan-DO7MLv2w.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"skan-B0F6AX7g.mjs","names":["sharedCore: SkanCore | null"],"sources":["../src/skan.ts"],"sourcesContent":["// SKAN Module — iOS-only SKAdNetwork conversion value management.\n//\n// Thin facade over the Rust core's SKAN engine, which is the single source of\n// truth for rule evaluation, presets, the monotonic floor, and persistence. This\n// wrapper only bridges to the native iOS SKAdNetwork APIs (which the core cannot\n// call) and reports the native apply outcome back to the core via\n// `skanRecordConversionResult`. There is no parallel JS rule engine.\n\nexport interface SKANConversionRule {\n eventName: string;\n conditions?: Record<string, unknown>;\n conversionValue: number; // 0-63 for SKAN 3.0, 0-7 fine values in SKAN 4.0\n coarseValue?: 'low' | 'medium' | 'high'; // SKAN 4.0 only\n lockWindow?: boolean; // SKAN 4.0 only\n priority?: number;\n description?: string;\n}\n\nexport interface SKANPresetConfig {\n name: 'subscriptions' | 'engagement' | 'iap';\n rules: SKANConversionRule[];\n description: string;\n maxValue: number;\n}\n\nexport interface SKANMetrics {\n isSupported: boolean;\n version: string;\n currentValue: number | null;\n currentPreset: string | null;\n ruleCount: number;\n evaluationCount: number;\n}\n\n/**\n * The subset of the Rust core (`LayersCore`) the SKAN facade delegates to. The\n * core owns all rule evaluation, presets, and the monotonic floor.\n */\nexport interface SkanCore {\n skanSetPreset(preset: string): void;\n skanSetRules(rulesJson: string): void;\n skanProcessEvent(\n eventName: string,\n properties: Record<string, unknown> | null\n ): { fineValue: number; coarseValue: string | null; lockWindow: boolean } | null;\n skanRecordConversionResult(value: number, success: boolean): void;\n skanCurrentValue(): number;\n skanCurrentPreset(): string | null;\n skanIsEnabled(): boolean;\n}\n\ninterface NativeSKANModule {\n isAvailable(): Promise<boolean>;\n getVersion(): Promise<string>;\n registerAppForAdNetworkAttribution(): Promise<void>;\n updateConversionValue(value: number): Promise<void>;\n updatePostbackConversionValue(\n value: number,\n coarseValue?: string,\n lockWindow?: boolean\n ): Promise<void>;\n getCurrentConversionValue(): Promise<number | null>;\n}\n\nfunction getNativeModule(): NativeSKANModule | null {\n try {\n const { NativeModules, Platform } = require('react-native');\n if (Platform.OS === 'ios' && NativeModules.LayersSKAN) {\n return NativeModules.LayersSKAN as NativeSKANModule;\n }\n } catch {\n // Not available\n }\n return null;\n}\n\nlet sharedCore: SkanCore | null = null;\n\n/**\n * Wire the SKAN facade to the SDK's Rust core. Called by the SDK on init so that\n * a directly-constructed `new SKANManager()` and the SDK's own auto-config both\n * delegate to the same core engine.\n */\nexport function setSkanCore(core: SkanCore | null): void {\n sharedCore = core;\n}\n\n/**\n * Apply a native SKAN conversion update returned by the core, then report the\n * outcome so the core commits its monotonic floor only on success. Shared by the\n * facade and the SDK's track/screen forwarding.\n */\nexport async function applySkanDecision(\n core: SkanCore,\n native: NativeSKANModule | null,\n decision: { fineValue: number; coarseValue: string | null; lockWindow: boolean }\n): Promise<boolean> {\n if (!native) {\n // No native module (Android, or an iOS build without the LayersSKAN\n // bridge): nothing was posted to Apple. Committing the floor here recorded\n // conversion values that never left the device, and because the floor is\n // monotonic it then blocked the real postback if the bridge showed up\n // later. Report the failure so the core leaves the floor where it is.\n core.skanRecordConversionResult(decision.fineValue, false);\n return false;\n }\n try {\n if (decision.coarseValue) {\n await native.updatePostbackConversionValue(\n decision.fineValue,\n decision.coarseValue,\n decision.lockWindow\n );\n } else {\n await native.updateConversionValue(decision.fineValue);\n }\n core.skanRecordConversionResult(decision.fineValue, true);\n return true;\n } catch {\n // Native update failed — the core leaves the floor unchanged so the next\n // matching event re-issues it (no silently-lost value).\n core.skanRecordConversionResult(decision.fineValue, false);\n return false;\n }\n}\n\nexport class SKANManager {\n private nativeModule: NativeSKANModule | null;\n private core: SkanCore | null;\n private evaluationCount = 0;\n private onConversionUpdate?: (data: {\n event: string;\n previousValue: number;\n newValue: number;\n rule: SKANConversionRule;\n }) => void;\n\n constructor(\n onConversionUpdate?: (data: {\n event: string;\n previousValue: number;\n newValue: number;\n rule: SKANConversionRule;\n }) => void,\n core?: SkanCore | null\n ) {\n this.nativeModule = getNativeModule();\n this.core = core ?? sharedCore;\n if (onConversionUpdate) {\n this.onConversionUpdate = onConversionUpdate;\n }\n }\n\n /**\n * Initialize the manager. `arm` controls whether Apple's postback window is\n * registered — pass `false` on re-config so we don't re-arm mid-session\n * (re-registering would reset the OS conversion value). Returns `true` only if\n * the native register was attempted and succeeded (a rejection throws; an\n * unavailable/no-module case returns false).\n */\n async initialize(arm = true): Promise<boolean> {\n if (!this.nativeModule) return false;\n const available = await this.nativeModule.isAvailable();\n if (!available) return false;\n if (arm) {\n await this.nativeModule.registerAppForAdNetworkAttribution();\n return true;\n }\n return false;\n }\n\n isSupported(): boolean {\n return this.nativeModule !== null;\n }\n\n /** Load a built-in preset in the core (subscriptions/engagement/iap). */\n setPreset(preset: string): void {\n this.core?.skanSetPreset(preset);\n }\n\n /** Replace the core's active rules with a custom set. */\n setCustomRules(rules: SKANConversionRule[]): void {\n this.core?.skanSetRules(JSON.stringify(rules));\n }\n\n /**\n * Evaluate an event via the core. If the core returns an update, apply it to\n * native SKAdNetwork and report the result back so the core commits its floor\n * only on success.\n */\n async processEvent(eventName: string, properties: Record<string, unknown>): Promise<void> {\n this.evaluationCount += 1;\n const core = this.core;\n if (!core) return;\n const previousValue = core.skanCurrentValue();\n const decision = core.skanProcessEvent(eventName, properties ?? {});\n if (!decision) return;\n const applied = await applySkanDecision(core, this.nativeModule, decision);\n // Only notify on a confirmed apply — a failed native postback leaves the\n // core's floor un-advanced, so the consumer must not see it as posted.\n if (!applied) return;\n this.onConversionUpdate?.({\n event: eventName,\n previousValue,\n newValue: decision.fineValue,\n rule: {\n eventName,\n conversionValue: decision.fineValue,\n lockWindow: decision.lockWindow,\n ...(decision.coarseValue\n ? { coarseValue: decision.coarseValue as 'low' | 'medium' | 'high' }\n : {})\n }\n });\n }\n\n /** The highest SKAN conversion value posted so far (from the core). */\n getCurrentValue(): number {\n return this.core?.skanCurrentValue() ?? 0;\n }\n\n /** The active preset name (from the core), or null. */\n getCurrentPreset(): string | null {\n return this.core?.skanCurrentPreset() ?? null;\n }\n\n /**\n * The active rules. The core owns the rule set and does not expose it, so this\n * returns an empty array; use the core's metrics for introspection.\n */\n getCurrentRules(): SKANConversionRule[] {\n return [];\n }\n\n getMetrics(): SKANMetrics {\n return {\n isSupported: this.isSupported(),\n version: '4.0',\n currentValue: this.core?.skanCurrentValue() ?? 0,\n currentPreset: this.core?.skanCurrentPreset() ?? null,\n ruleCount: 0,\n evaluationCount: this.evaluationCount\n };\n }\n}\n"],"mappings":";;;AAgEA,SAAS,kBAA2C;AAClD,KAAI;EACF,MAAM,EAAE,eAAe,uBAAqB,eAAe;AAC3D,MAAI,SAAS,OAAO,SAAS,cAAc,WACzC,QAAO,cAAc;SAEjB;AAGR,QAAO;;AAGT,IAAIA,aAA8B;;;;;;AAOlC,SAAgB,YAAY,MAA6B;AACvD,cAAa;;;;;;;AAQf,eAAsB,kBACpB,MACA,QACA,UACkB;AAClB,KAAI,CAAC,QAAQ;AAMX,OAAK,2BAA2B,SAAS,WAAW,MAAM;AAC1D,SAAO;;AAET,KAAI;AACF,MAAI,SAAS,YACX,OAAM,OAAO,8BACX,SAAS,WACT,SAAS,aACT,SAAS,WACV;MAED,OAAM,OAAO,sBAAsB,SAAS,UAAU;AAExD,OAAK,2BAA2B,SAAS,WAAW,KAAK;AACzD,SAAO;SACD;AAGN,OAAK,2BAA2B,SAAS,WAAW,MAAM;AAC1D,SAAO;;;AAIX,IAAa,cAAb,MAAyB;CACvB,AAAQ;CACR,AAAQ;CACR,AAAQ,kBAAkB;CAC1B,AAAQ;CAOR,YACE,oBAMA,MACA;AACA,OAAK,eAAe,iBAAiB;AACrC,OAAK,OAAO,QAAQ;AACpB,MAAI,mBACF,MAAK,qBAAqB;;;;;;;;;CAW9B,MAAM,WAAW,MAAM,MAAwB;AAC7C,MAAI,CAAC,KAAK,aAAc,QAAO;AAE/B,MAAI,CADc,MAAM,KAAK,aAAa,aAAa,CACvC,QAAO;AACvB,MAAI,KAAK;AACP,SAAM,KAAK,aAAa,oCAAoC;AAC5D,UAAO;;AAET,SAAO;;CAGT,cAAuB;AACrB,SAAO,KAAK,iBAAiB;;;CAI/B,UAAU,QAAsB;AAC9B,OAAK,MAAM,cAAc,OAAO;;;CAIlC,eAAe,OAAmC;AAChD,OAAK,MAAM,aAAa,KAAK,UAAU,MAAM,CAAC;;;;;;;CAQhD,MAAM,aAAa,WAAmB,YAAoD;AACxF,OAAK,mBAAmB;EACxB,MAAM,OAAO,KAAK;AAClB,MAAI,CAAC,KAAM;EACX,MAAM,gBAAgB,KAAK,kBAAkB;EAC7C,MAAM,WAAW,KAAK,iBAAiB,WAAW,cAAc,EAAE,CAAC;AACnE,MAAI,CAAC,SAAU;AAIf,MAAI,CAHY,MAAM,kBAAkB,MAAM,KAAK,cAAc,SAAS,CAG5D;AACd,OAAK,qBAAqB;GACxB,OAAO;GACP;GACA,UAAU,SAAS;GACnB,MAAM;IACJ;IACA,iBAAiB,SAAS;IAC1B,YAAY,SAAS;IACrB,GAAI,SAAS,cACT,EAAE,aAAa,SAAS,aAA0C,GAClE,EAAE;IACP;GACF,CAAC;;;CAIJ,kBAA0B;AACxB,SAAO,KAAK,MAAM,kBAAkB,IAAI;;;CAI1C,mBAAkC;AAChC,SAAO,KAAK,MAAM,mBAAmB,IAAI;;;;;;CAO3C,kBAAwC;AACtC,SAAO,EAAE;;CAGX,aAA0B;AACxB,SAAO;GACL,aAAa,KAAK,aAAa;GAC/B,SAAS;GACT,cAAc,KAAK,MAAM,kBAAkB,IAAI;GAC/C,eAAe,KAAK,MAAM,mBAAmB,IAAI;GACjD,WAAW;GACX,iBAAiB,KAAK;GACvB"}
1
+ {"version":3,"file":"skan-DO7MLv2w.mjs","names":["sharedCore: SkanCore | null"],"sources":["../src/skan.ts"],"sourcesContent":["// SKAN Module — iOS-only SKAdNetwork conversion value management.\n//\n// Thin facade over the Rust core's SKAN engine, which is the single source of\n// truth for rule evaluation, presets, the monotonic floor, and persistence. This\n// wrapper only bridges to the native iOS SKAdNetwork APIs (which the core cannot\n// call) and reports the native apply outcome back to the core via\n// `skanRecordConversionResult`. There is no parallel JS rule engine.\n\nexport interface SKANConversionRule {\n eventName: string;\n conditions?: Record<string, unknown>;\n conversionValue: number; // 0-63 for SKAN 3.0, 0-7 fine values in SKAN 4.0\n coarseValue?: 'low' | 'medium' | 'high'; // SKAN 4.0 only\n lockWindow?: boolean; // SKAN 4.0 only\n priority?: number;\n description?: string;\n}\n\nexport interface SKANPresetConfig {\n name: 'subscriptions' | 'engagement' | 'iap';\n rules: SKANConversionRule[];\n description: string;\n maxValue: number;\n}\n\nexport interface SKANMetrics {\n isSupported: boolean;\n version: string;\n currentValue: number | null;\n currentPreset: string | null;\n ruleCount: number;\n evaluationCount: number;\n}\n\n/**\n * The subset of the Rust core (`LayersCore`) the SKAN facade delegates to. The\n * core owns all rule evaluation, presets, and the monotonic floor.\n */\nexport interface SkanCore {\n skanSetPreset(preset: string): void;\n skanSetRules(rulesJson: string): void;\n skanProcessEvent(\n eventName: string,\n properties: Record<string, unknown> | null\n ): { fineValue: number; coarseValue: string | null; lockWindow: boolean } | null;\n skanRecordConversionResult(value: number, success: boolean): void;\n skanCurrentValue(): number;\n skanCurrentPreset(): string | null;\n skanIsEnabled(): boolean;\n}\n\ninterface NativeSKANModule {\n isAvailable(): Promise<boolean>;\n getVersion(): Promise<string>;\n registerAppForAdNetworkAttribution(): Promise<void>;\n updateConversionValue(value: number): Promise<void>;\n updatePostbackConversionValue(\n value: number,\n coarseValue?: string,\n lockWindow?: boolean\n ): Promise<void>;\n getCurrentConversionValue(): Promise<number | null>;\n}\n\nfunction getNativeModule(): NativeSKANModule | null {\n try {\n const { NativeModules, Platform } = require('react-native');\n if (Platform.OS === 'ios' && NativeModules.LayersSKAN) {\n return NativeModules.LayersSKAN as NativeSKANModule;\n }\n } catch {\n // Not available\n }\n return null;\n}\n\nlet sharedCore: SkanCore | null = null;\n\n/**\n * Wire the SKAN facade to the SDK's Rust core. Called by the SDK on init so that\n * a directly-constructed `new SKANManager()` and the SDK's own auto-config both\n * delegate to the same core engine.\n */\nexport function setSkanCore(core: SkanCore | null): void {\n sharedCore = core;\n}\n\n/**\n * Apply a native SKAN conversion update returned by the core, then report the\n * outcome so the core commits its monotonic floor only on success. Shared by the\n * facade and the SDK's track/screen forwarding.\n */\nexport async function applySkanDecision(\n core: SkanCore,\n native: NativeSKANModule | null,\n decision: { fineValue: number; coarseValue: string | null; lockWindow: boolean }\n): Promise<boolean> {\n if (!native) {\n // No native module (Android, or an iOS build without the LayersSKAN\n // bridge): nothing was posted to Apple. Committing the floor here recorded\n // conversion values that never left the device, and because the floor is\n // monotonic it then blocked the real postback if the bridge showed up\n // later. Report the failure so the core leaves the floor where it is.\n core.skanRecordConversionResult(decision.fineValue, false);\n return false;\n }\n try {\n if (decision.coarseValue) {\n await native.updatePostbackConversionValue(\n decision.fineValue,\n decision.coarseValue,\n decision.lockWindow\n );\n } else {\n await native.updateConversionValue(decision.fineValue);\n }\n core.skanRecordConversionResult(decision.fineValue, true);\n return true;\n } catch {\n // Native update failed — the core leaves the floor unchanged so the next\n // matching event re-issues it (no silently-lost value).\n core.skanRecordConversionResult(decision.fineValue, false);\n return false;\n }\n}\n\nexport class SKANManager {\n private nativeModule: NativeSKANModule | null;\n private core: SkanCore | null;\n private evaluationCount = 0;\n private onConversionUpdate?: (data: {\n event: string;\n previousValue: number;\n newValue: number;\n rule: SKANConversionRule;\n }) => void;\n\n constructor(\n onConversionUpdate?: (data: {\n event: string;\n previousValue: number;\n newValue: number;\n rule: SKANConversionRule;\n }) => void,\n core?: SkanCore | null\n ) {\n this.nativeModule = getNativeModule();\n this.core = core ?? sharedCore;\n if (onConversionUpdate) {\n this.onConversionUpdate = onConversionUpdate;\n }\n }\n\n /**\n * Initialize the manager. `arm` controls whether Apple's postback window is\n * registered — pass `false` on re-config so we don't re-arm mid-session\n * (re-registering would reset the OS conversion value). Returns `true` only if\n * the native register was attempted and succeeded (a rejection throws; an\n * unavailable/no-module case returns false).\n */\n async initialize(arm = true): Promise<boolean> {\n if (!this.nativeModule) return false;\n const available = await this.nativeModule.isAvailable();\n if (!available) return false;\n if (arm) {\n await this.nativeModule.registerAppForAdNetworkAttribution();\n return true;\n }\n return false;\n }\n\n isSupported(): boolean {\n return this.nativeModule !== null;\n }\n\n /** Load a built-in preset in the core (subscriptions/engagement/iap). */\n setPreset(preset: string): void {\n this.core?.skanSetPreset(preset);\n }\n\n /** Replace the core's active rules with a custom set. */\n setCustomRules(rules: SKANConversionRule[]): void {\n this.core?.skanSetRules(JSON.stringify(rules));\n }\n\n /**\n * Evaluate an event via the core. If the core returns an update, apply it to\n * native SKAdNetwork and report the result back so the core commits its floor\n * only on success.\n */\n async processEvent(eventName: string, properties: Record<string, unknown>): Promise<void> {\n this.evaluationCount += 1;\n const core = this.core;\n if (!core) return;\n const previousValue = core.skanCurrentValue();\n const decision = core.skanProcessEvent(eventName, properties ?? {});\n if (!decision) return;\n const applied = await applySkanDecision(core, this.nativeModule, decision);\n // Only notify on a confirmed apply — a failed native postback leaves the\n // core's floor un-advanced, so the consumer must not see it as posted.\n if (!applied) return;\n this.onConversionUpdate?.({\n event: eventName,\n previousValue,\n newValue: decision.fineValue,\n rule: {\n eventName,\n conversionValue: decision.fineValue,\n lockWindow: decision.lockWindow,\n ...(decision.coarseValue\n ? { coarseValue: decision.coarseValue as 'low' | 'medium' | 'high' }\n : {})\n }\n });\n }\n\n /** The highest SKAN conversion value posted so far (from the core). */\n getCurrentValue(): number {\n return this.core?.skanCurrentValue() ?? 0;\n }\n\n /** The active preset name (from the core), or null. */\n getCurrentPreset(): string | null {\n return this.core?.skanCurrentPreset() ?? null;\n }\n\n /**\n * The active rules. The core owns the rule set and does not expose it, so this\n * returns an empty array; use the core's metrics for introspection.\n */\n getCurrentRules(): SKANConversionRule[] {\n return [];\n }\n\n getMetrics(): SKANMetrics {\n return {\n isSupported: this.isSupported(),\n version: '4.0',\n currentValue: this.core?.skanCurrentValue() ?? 0,\n currentPreset: this.core?.skanCurrentPreset() ?? null,\n ruleCount: 0,\n evaluationCount: this.evaluationCount\n };\n }\n}\n"],"mappings":";;;AAgEA,SAAS,kBAA2C;AAClD,KAAI;EACF,MAAM,EAAE,eAAe,uBAAqB,eAAe;AAC3D,MAAI,SAAS,OAAO,SAAS,cAAc,WACzC,QAAO,cAAc;SAEjB;AAGR,QAAO;;AAGT,IAAIA,aAA8B;;;;;;AAOlC,SAAgB,YAAY,MAA6B;AACvD,cAAa;;;;;;;AAQf,eAAsB,kBACpB,MACA,QACA,UACkB;AAClB,KAAI,CAAC,QAAQ;AAMX,OAAK,2BAA2B,SAAS,WAAW,MAAM;AAC1D,SAAO;;AAET,KAAI;AACF,MAAI,SAAS,YACX,OAAM,OAAO,8BACX,SAAS,WACT,SAAS,aACT,SAAS,WACV;MAED,OAAM,OAAO,sBAAsB,SAAS,UAAU;AAExD,OAAK,2BAA2B,SAAS,WAAW,KAAK;AACzD,SAAO;SACD;AAGN,OAAK,2BAA2B,SAAS,WAAW,MAAM;AAC1D,SAAO;;;AAIX,IAAa,cAAb,MAAyB;CACvB,AAAQ;CACR,AAAQ;CACR,AAAQ,kBAAkB;CAC1B,AAAQ;CAOR,YACE,oBAMA,MACA;AACA,OAAK,eAAe,iBAAiB;AACrC,OAAK,OAAO,QAAQ;AACpB,MAAI,mBACF,MAAK,qBAAqB;;;;;;;;;CAW9B,MAAM,WAAW,MAAM,MAAwB;AAC7C,MAAI,CAAC,KAAK,aAAc,QAAO;AAE/B,MAAI,CADc,MAAM,KAAK,aAAa,aAAa,CACvC,QAAO;AACvB,MAAI,KAAK;AACP,SAAM,KAAK,aAAa,oCAAoC;AAC5D,UAAO;;AAET,SAAO;;CAGT,cAAuB;AACrB,SAAO,KAAK,iBAAiB;;;CAI/B,UAAU,QAAsB;AAC9B,OAAK,MAAM,cAAc,OAAO;;;CAIlC,eAAe,OAAmC;AAChD,OAAK,MAAM,aAAa,KAAK,UAAU,MAAM,CAAC;;;;;;;CAQhD,MAAM,aAAa,WAAmB,YAAoD;AACxF,OAAK,mBAAmB;EACxB,MAAM,OAAO,KAAK;AAClB,MAAI,CAAC,KAAM;EACX,MAAM,gBAAgB,KAAK,kBAAkB;EAC7C,MAAM,WAAW,KAAK,iBAAiB,WAAW,cAAc,EAAE,CAAC;AACnE,MAAI,CAAC,SAAU;AAIf,MAAI,CAHY,MAAM,kBAAkB,MAAM,KAAK,cAAc,SAAS,CAG5D;AACd,OAAK,qBAAqB;GACxB,OAAO;GACP;GACA,UAAU,SAAS;GACnB,MAAM;IACJ;IACA,iBAAiB,SAAS;IAC1B,YAAY,SAAS;IACrB,GAAI,SAAS,cACT,EAAE,aAAa,SAAS,aAA0C,GAClE,EAAE;IACP;GACF,CAAC;;;CAIJ,kBAA0B;AACxB,SAAO,KAAK,MAAM,kBAAkB,IAAI;;;CAI1C,mBAAkC;AAChC,SAAO,KAAK,MAAM,mBAAmB,IAAI;;;;;;CAO3C,kBAAwC;AACtC,SAAO,EAAE;;CAGX,aAA0B;AACxB,SAAO;GACL,aAAa,KAAK,aAAa;GAC/B,SAAS;GACT,cAAc,KAAK,MAAM,kBAAkB,IAAI;GAC/C,eAAe,KAAK,MAAM,mBAAmB,IAAI;GACjD,WAAW;GACX,iBAAiB,KAAK;GACvB"}
package/dist/skan.js CHANGED
@@ -1,4 +1,4 @@
1
- const require_skan = require('./skan-BRhw9sPC.js');
1
+ const require_skan = require('./skan-qcOYJKzP.js');
2
2
 
3
3
  exports.SKANManager = require_skan.SKANManager;
4
4
  exports.applySkanDecision = require_skan.applySkanDecision;
package/dist/skan.mjs CHANGED
@@ -1,3 +1,3 @@
1
- import { n as applySkanDecision, r as setSkanCore, t as SKANManager } from "./skan-B0F6AX7g.mjs";
1
+ import { n as applySkanDecision, r as setSkanCore, t as SKANManager } from "./skan-DO7MLv2w.mjs";
2
2
 
3
3
  export { SKANManager, applySkanDecision, setSkanCore };