@active-reach/web-sdk 1.7.1 → 1.7.2

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.js CHANGED
@@ -6017,6 +6017,27 @@ class AegisMessageRuntime {
6017
6017
  var _a, _b;
6018
6018
  (_b = (_a = this.inApp).onClientEvent) == null ? void 0 : _b.call(_a, eventName, eventData);
6019
6019
  }
6020
+ /**
6021
+ * Conversion-aware suppression — call when the host app observes a
6022
+ * goal event (purchase / order_completed / checkout_completed / custom).
6023
+ *
6024
+ * Forwards to AegisInAppManager.notifyConversion() which:
6025
+ * - Persists the conversion in sessionStorage so subsequent page loads
6026
+ * in the same tab keep armed campaigns silenced.
6027
+ * - For every armed campaign whose
6028
+ * `frequency.suppress_after_conversion_seconds` is set, computes an
6029
+ * expiry epoch_ms and silences it until then.
6030
+ *
6031
+ * Storefronts integrate via the React provider's useCommerceEvents
6032
+ * helper which calls this after `ecom.orderCompleted(...)`. Direct SDK
6033
+ * users call it themselves.
6034
+ *
6035
+ * Added by Micro-Intent Engine P0a Task 6 (2026-04-30).
6036
+ */
6037
+ notifyConversion(goalName) {
6038
+ var _a, _b;
6039
+ (_b = (_a = this.inApp).notifyConversion) == null ? void 0 : _b.call(_a, goalName);
6040
+ }
6020
6041
  /**
6021
6042
  * Tear down both managers. Used by React component unmounts + during
6022
6043
  * identity switches where we want a full reset. If the facade created