@active-reach/web-sdk 1.4.0 → 1.6.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.
Files changed (38) hide show
  1. package/dist/aegis.min.js +1 -1
  2. package/dist/aegis.min.js.map +1 -1
  3. package/dist/{analytics-D9BAnJAu.mjs → analytics-C00PJUSy.mjs} +7 -2
  4. package/dist/{analytics-D9BAnJAu.mjs.map → analytics-C00PJUSy.mjs.map} +1 -1
  5. package/dist/core/prefetch-bundle-client.d.ts +150 -0
  6. package/dist/core/prefetch-bundle-client.d.ts.map +1 -0
  7. package/dist/governance/name-governor.d.ts +10 -0
  8. package/dist/governance/name-governor.d.ts.map +1 -1
  9. package/dist/inapp/AegisInAppManager.d.ts +26 -1
  10. package/dist/inapp/AegisInAppManager.d.ts.map +1 -1
  11. package/dist/inapp/renderers/carousel-cards.d.ts +15 -0
  12. package/dist/inapp/renderers/carousel-cards.d.ts.map +1 -0
  13. package/dist/inapp/renderers/coachmark-tour.d.ts +24 -0
  14. package/dist/inapp/renderers/coachmark-tour.d.ts.map +1 -0
  15. package/dist/inapp/renderers/index.d.ts +12 -0
  16. package/dist/inapp/renderers/index.d.ts.map +1 -0
  17. package/dist/inapp/renderers/product-recommendation.d.ts +23 -0
  18. package/dist/inapp/renderers/product-recommendation.d.ts.map +1 -0
  19. package/dist/inapp/renderers/progress-bar.d.ts +24 -0
  20. package/dist/inapp/renderers/progress-bar.d.ts.map +1 -0
  21. package/dist/inapp/renderers/sticky-bar.d.ts +14 -0
  22. package/dist/inapp/renderers/sticky-bar.d.ts.map +1 -0
  23. package/dist/inapp/renderers/types.d.ts +27 -0
  24. package/dist/inapp/renderers/types.d.ts.map +1 -0
  25. package/dist/inbox/AegisInbox.d.ts +103 -0
  26. package/dist/inbox/AegisInbox.d.ts.map +1 -0
  27. package/dist/inbox/index.d.ts +3 -0
  28. package/dist/inbox/index.d.ts.map +1 -0
  29. package/dist/index.d.ts +6 -0
  30. package/dist/index.d.ts.map +1 -1
  31. package/dist/index.js +1382 -3
  32. package/dist/index.js.map +1 -1
  33. package/dist/react.js +1 -1
  34. package/dist/runtime/AegisMessageRuntime.d.ts +88 -0
  35. package/dist/runtime/AegisMessageRuntime.d.ts.map +1 -0
  36. package/dist/runtime/index.d.ts +3 -0
  37. package/dist/runtime/index.d.ts.map +1 -0
  38. package/package.json +1 -1
@@ -1864,6 +1864,7 @@ class NameGovernor {
1864
1864
  constructor() {
1865
1865
  this.bloom = null;
1866
1866
  this.remainingNewNames = Infinity;
1867
+ this.graceActive = false;
1867
1868
  this.localNovelNames = /* @__PURE__ */ new Set();
1868
1869
  this.droppedSinceLastReport = /* @__PURE__ */ new Map();
1869
1870
  this.reportWindowStart = Date.now();
@@ -1877,6 +1878,7 @@ class NameGovernor {
1877
1878
  if (!hint || hint.bloom_algo !== SUPPORTED_ALGO) {
1878
1879
  this.bloom = null;
1879
1880
  this.remainingNewNames = Infinity;
1881
+ this.graceActive = false;
1880
1882
  this.localNovelNames.clear();
1881
1883
  return;
1882
1884
  }
@@ -1891,6 +1893,7 @@ class NameGovernor {
1891
1893
  this.bloom = null;
1892
1894
  }
1893
1895
  this.remainingNewNames = hint.remaining_new_names ?? Infinity;
1896
+ this.graceActive = hint.grace_active === true;
1894
1897
  this.localNovelNames.clear();
1895
1898
  }
1896
1899
  /**
@@ -1901,6 +1904,7 @@ class NameGovernor {
1901
1904
  */
1902
1905
  shouldSend(eventName) {
1903
1906
  if (!this.bloom) return true;
1907
+ if (this.graceActive) return true;
1904
1908
  if (this.bloom.has(eventName)) return true;
1905
1909
  if (this.localNovelNames.has(eventName)) return true;
1906
1910
  if (this.remainingNewNames > 0) {
@@ -1942,7 +1946,8 @@ class NameGovernor {
1942
1946
  return {
1943
1947
  hasBloom: this.bloom !== null,
1944
1948
  remaining: this.remainingNewNames,
1945
- localNovel: this.localNovelNames.size
1949
+ localNovel: this.localNovelNames.size,
1950
+ graceActive: this.graceActive
1946
1951
  };
1947
1952
  }
1948
1953
  }
@@ -2480,4 +2485,4 @@ export {
2480
2485
  logger as l,
2481
2486
  murmurhash3_x86_32 as m
2482
2487
  };
2483
- //# sourceMappingURL=analytics-D9BAnJAu.mjs.map
2488
+ //# sourceMappingURL=analytics-C00PJUSy.mjs.map