@active-reach/web-sdk 1.33.0 → 1.34.0

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
@@ -14228,13 +14228,25 @@ class AegisLoyaltyManager {
14228
14228
  this.giftCards = new GiftCardsClient(http);
14229
14229
  }
14230
14230
  }
14231
- class AegisMessageRuntime {
14231
+ const _AegisMessageRuntime = class _AegisMessageRuntime {
14232
14232
  // Context is held in ONE place — `intentRuleEvaluator.namespaces` (fed via
14233
14233
  // updateContext). The renderer cart reader + the cart_value signal are DERIVED
14234
14234
  // from it; there is no parallel cart/context store on the runtime.
14235
14235
  constructor(config) {
14236
14236
  var _a;
14237
14237
  this.initialized = false;
14238
+ if (!_AegisMessageRuntime._bannerPrinted) {
14239
+ _AegisMessageRuntime._bannerPrinted = true;
14240
+ try {
14241
+ const v = true ? "1.34.0" : "unknown";
14242
+ console.info(
14243
+ `%c[Aegis SDK]%c v${v} loaded`,
14244
+ "color:#fff;background:#7c3aed;padding:1px 6px;border-radius:4px;font-weight:700",
14245
+ "color:#7c3aed;font-weight:600"
14246
+ );
14247
+ } catch {
14248
+ }
14249
+ }
14238
14250
  const triggerEngine = config.triggerEngine ?? new TriggerEngine();
14239
14251
  const ownsTriggerEngine = !config.triggerEngine;
14240
14252
  this.contactId = config.contactId;
@@ -14559,7 +14571,9 @@ class AegisMessageRuntime {
14559
14571
  getCampaigns() {
14560
14572
  return this.inApp.campaigns ?? [];
14561
14573
  }
14562
- }
14574
+ };
14575
+ _AegisMessageRuntime._bannerPrinted = false;
14576
+ let AegisMessageRuntime = _AegisMessageRuntime;
14563
14577
  const COOKIE_NAME = "aegis_fpc";
14564
14578
  const COOKIE_MAX_AGE_DAYS = 365 * 2;
14565
14579
  class BootstrapError extends Error {