@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.
- package/dist/aegis.min.js +1 -1
- package/dist/aegis.min.js.map +1 -1
- package/dist/{analytics-D9BAnJAu.mjs → analytics-C00PJUSy.mjs} +7 -2
- package/dist/{analytics-D9BAnJAu.mjs.map → analytics-C00PJUSy.mjs.map} +1 -1
- package/dist/core/prefetch-bundle-client.d.ts +150 -0
- package/dist/core/prefetch-bundle-client.d.ts.map +1 -0
- package/dist/governance/name-governor.d.ts +10 -0
- package/dist/governance/name-governor.d.ts.map +1 -1
- package/dist/inapp/AegisInAppManager.d.ts +26 -1
- package/dist/inapp/AegisInAppManager.d.ts.map +1 -1
- package/dist/inapp/renderers/carousel-cards.d.ts +15 -0
- package/dist/inapp/renderers/carousel-cards.d.ts.map +1 -0
- package/dist/inapp/renderers/coachmark-tour.d.ts +24 -0
- package/dist/inapp/renderers/coachmark-tour.d.ts.map +1 -0
- package/dist/inapp/renderers/index.d.ts +12 -0
- package/dist/inapp/renderers/index.d.ts.map +1 -0
- package/dist/inapp/renderers/product-recommendation.d.ts +23 -0
- package/dist/inapp/renderers/product-recommendation.d.ts.map +1 -0
- package/dist/inapp/renderers/progress-bar.d.ts +24 -0
- package/dist/inapp/renderers/progress-bar.d.ts.map +1 -0
- package/dist/inapp/renderers/sticky-bar.d.ts +14 -0
- package/dist/inapp/renderers/sticky-bar.d.ts.map +1 -0
- package/dist/inapp/renderers/types.d.ts +27 -0
- package/dist/inapp/renderers/types.d.ts.map +1 -0
- package/dist/inbox/AegisInbox.d.ts +103 -0
- package/dist/inbox/AegisInbox.d.ts.map +1 -0
- package/dist/inbox/index.d.ts +3 -0
- package/dist/inbox/index.d.ts.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1382 -3
- package/dist/index.js.map +1 -1
- package/dist/react.js +1 -1
- package/dist/runtime/AegisMessageRuntime.d.ts +88 -0
- package/dist/runtime/AegisMessageRuntime.d.ts.map +1 -0
- package/dist/runtime/index.d.ts +3 -0
- package/dist/runtime/index.d.ts.map +1 -0
- 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-
|
|
2488
|
+
//# sourceMappingURL=analytics-C00PJUSy.mjs.map
|