ainamika-sdk 1.2.1 → 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/sdk.d.ts CHANGED
@@ -135,6 +135,7 @@ declare class AInamikaSDKPro {
135
135
  cachedDomHashes: string[];
136
136
  hasSamplingCache: boolean;
137
137
  hasUserIdentifier: boolean;
138
+ hasLastKnownConfig: boolean;
138
139
  };
139
140
  private initializeErrorTracking;
140
141
  captureException(error: Error, context?: Record<string, any>): void;
@@ -181,9 +182,12 @@ declare class AInamikaSDKPro {
181
182
  */
182
183
  getEngagementMetrics(): EngagementMetrics | null;
183
184
  private setupAutoConfiguration;
185
+ private setupAutoConfigurationBackground;
184
186
  private fetchAndMergeFreshConfig;
185
187
  private getDOMStructure;
186
188
  private fetchGeneratedConfig;
189
+ private transformEventNameForType;
190
+ private sanitizeSelector;
187
191
  private applyGeneratedConfig;
188
192
  private extractElementData;
189
193
  private sendToWorker;
@@ -243,6 +247,8 @@ declare class AInamikaSDKPro {
243
247
  */
244
248
  private hashString;
245
249
  private readonly MAX_CACHED_CONFIGS;
250
+ private getLastKnownConfig;
251
+ private setLastKnownConfig;
246
252
  private getCachedConfigForDomHash;
247
253
  private setCachedConfigForDomHash;
248
254
  private clearOldConfigCache;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ainamika-sdk",
3
- "version": "1.2.1",
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",