@v-tilt/browser 1.1.1 → 1.1.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/module.d.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * - 'identified_only': Only create profiles when user is identified
5
5
  * - 'never': Never create person profiles (events only)
6
6
  */
7
- type PersonProfilesMode = 'always' | 'identified_only' | 'never';
7
+ type PersonProfilesMode = "always" | "identified_only" | "never";
8
8
 
9
9
  /**
10
10
  * VTilt Types
@@ -50,9 +50,9 @@ interface VTiltConfig {
50
50
  /** Enable web vitals tracking */
51
51
  capture_performance?: boolean;
52
52
  /** Enable page view tracking */
53
- capture_pageview?: boolean | 'auto';
53
+ capture_pageview?: boolean | "auto";
54
54
  /** Enable page leave tracking */
55
- capture_pageleave?: boolean | 'if_capture_pageview';
55
+ capture_pageleave?: boolean | "if_capture_pageview";
56
56
  /** Disable compression */
57
57
  disable_compression?: boolean;
58
58
  /** Whether to stringify payload before sending */
@@ -132,7 +132,7 @@ interface SessionData {
132
132
  * - 'sessionStorage': Stores all data in sessionStorage
133
133
  * - 'memory': Stores all data in memory only (no persistence)
134
134
  */
135
- type PersistenceMethod = 'localStorage+cookie' | 'cookie' | 'localStorage' | 'sessionStorage' | 'memory';
135
+ type PersistenceMethod = "localStorage+cookie" | "cookie" | "localStorage" | "sessionStorage" | "memory";
136
136
  /** User identity state */
137
137
  interface UserIdentity {
138
138
  /** Current distinct ID (null if anonymous) */
@@ -144,7 +144,7 @@ interface UserIdentity {
144
144
  /** User properties */
145
145
  properties: Properties;
146
146
  /** Identity state */
147
- user_state: 'anonymous' | 'identified';
147
+ user_state: "anonymous" | "identified";
148
148
  }
149
149
  interface UserProperties {
150
150
  [key: string]: any;
@@ -157,7 +157,7 @@ interface WebVitalMetric {
157
157
  name: string;
158
158
  value: number;
159
159
  delta: number;
160
- rating: 'good' | 'needs-improvement' | 'poor';
160
+ rating: "good" | "needs-improvement" | "poor";
161
161
  id: string;
162
162
  navigationType: string;
163
163
  }
@@ -172,10 +172,10 @@ interface FeatureFlagsConfig {
172
172
  [flagKey: string]: boolean | string;
173
173
  }
174
174
  type SessionIdChangedCallback = (newSessionId: string, previousSessionId: string | null, changeInfo: {
175
- reason: 'timeout' | 'new_session' | 'reset';
175
+ reason: "timeout" | "new_session" | "reset";
176
176
  }) => void;
177
177
  interface RequestOptions {
178
- method?: 'POST' | 'GET';
178
+ method?: "POST" | "GET";
179
179
  headers?: Record<string, string>;
180
180
  timeout?: number;
181
181
  retry?: boolean;