ainamika-sdk 1.2.0 → 1.2.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/ainamika-sdk.js +1 -1
- package/dist/ainamika-sdk.js.map +1 -1
- package/dist/sdk.d.ts +8 -0
- package/package.json +1 -1
package/dist/sdk.d.ts
CHANGED
|
@@ -88,6 +88,8 @@ declare class AInamikaSDKPro {
|
|
|
88
88
|
private mutationDebounceMs;
|
|
89
89
|
private attachedListeners;
|
|
90
90
|
private knownElementSelectors;
|
|
91
|
+
private handledClicks;
|
|
92
|
+
private readonly CLICK_DEDUP_WINDOW_MS;
|
|
91
93
|
private mergedConfig;
|
|
92
94
|
constructor(config: AnalyticsConfig);
|
|
93
95
|
private initialize;
|
|
@@ -133,6 +135,7 @@ declare class AInamikaSDKPro {
|
|
|
133
135
|
cachedDomHashes: string[];
|
|
134
136
|
hasSamplingCache: boolean;
|
|
135
137
|
hasUserIdentifier: boolean;
|
|
138
|
+
hasLastKnownConfig: boolean;
|
|
136
139
|
};
|
|
137
140
|
private initializeErrorTracking;
|
|
138
141
|
captureException(error: Error, context?: Record<string, any>): void;
|
|
@@ -179,9 +182,12 @@ declare class AInamikaSDKPro {
|
|
|
179
182
|
*/
|
|
180
183
|
getEngagementMetrics(): EngagementMetrics | null;
|
|
181
184
|
private setupAutoConfiguration;
|
|
185
|
+
private setupAutoConfigurationBackground;
|
|
182
186
|
private fetchAndMergeFreshConfig;
|
|
183
187
|
private getDOMStructure;
|
|
184
188
|
private fetchGeneratedConfig;
|
|
189
|
+
private transformEventNameForType;
|
|
190
|
+
private sanitizeSelector;
|
|
185
191
|
private applyGeneratedConfig;
|
|
186
192
|
private extractElementData;
|
|
187
193
|
private sendToWorker;
|
|
@@ -241,6 +247,8 @@ declare class AInamikaSDKPro {
|
|
|
241
247
|
*/
|
|
242
248
|
private hashString;
|
|
243
249
|
private readonly MAX_CACHED_CONFIGS;
|
|
250
|
+
private getLastKnownConfig;
|
|
251
|
+
private setLastKnownConfig;
|
|
244
252
|
private getCachedConfigForDomHash;
|
|
245
253
|
private setCachedConfigForDomHash;
|
|
246
254
|
private clearOldConfigCache;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ainamika-sdk",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.2",
|
|
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",
|