ainamika-sdk 1.2.2 → 1.2.3
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/ainamika-sdk.js +1 -1
- package/dist/ainamika-sdk.js.map +1 -1
- package/dist/sdk.d.ts +15 -0
- package/package.json +1 -1
package/dist/sdk.d.ts
CHANGED
|
@@ -90,6 +90,8 @@ declare class AInamikaSDKPro {
|
|
|
90
90
|
private knownElementSelectors;
|
|
91
91
|
private handledClicks;
|
|
92
92
|
private readonly CLICK_DEDUP_WINDOW_MS;
|
|
93
|
+
private viewedElements;
|
|
94
|
+
private viewObservers;
|
|
93
95
|
private mergedConfig;
|
|
94
96
|
constructor(config: AnalyticsConfig);
|
|
95
97
|
private initialize;
|
|
@@ -253,6 +255,19 @@ declare class AInamikaSDKPro {
|
|
|
253
255
|
private setCachedConfigForDomHash;
|
|
254
256
|
private clearOldConfigCache;
|
|
255
257
|
private handleDomMutation;
|
|
258
|
+
/**
|
|
259
|
+
* Reset view tracking - call this when navigating to a new page (for SPAs)
|
|
260
|
+
* This allows elements to be tracked again on the new "page"
|
|
261
|
+
*/
|
|
262
|
+
resetViewTracking(): void;
|
|
263
|
+
/**
|
|
264
|
+
* Cleanup all SDK resources - call this when unmounting/destroying the SDK
|
|
265
|
+
*/
|
|
266
|
+
destroy(): void;
|
|
267
|
+
/**
|
|
268
|
+
* Flush pending events immediately (e.g., before page unload)
|
|
269
|
+
*/
|
|
270
|
+
flush(): void;
|
|
256
271
|
private mergeAndApplyConfig;
|
|
257
272
|
}
|
|
258
273
|
export default AInamikaSDKPro;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ainamika-sdk",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.3",
|
|
4
4
|
"description": "AI-powered analytics SDK with Web Vitals, engagement tracking, error monitoring, and real-time insights for web applications",
|
|
5
5
|
"main": "dist/ainamika-sdk.js",
|
|
6
6
|
"types": "dist/sdk.d.ts",
|