sitepong 0.0.6 → 0.0.8

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/index.d.mts CHANGED
@@ -1,3 +1,6 @@
1
+ import { T as TrackProperties, U as UserTraits, G as GroupTraits } from './types-CLEYbaV8.mjs';
2
+ export { R as ReplayConfig, a as ReplayEvent } from './types-CLEYbaV8.mjs';
3
+
1
4
  interface CoreSignals {
2
5
  userAgent: string;
3
6
  language: string;
@@ -111,27 +114,6 @@ declare global {
111
114
  }
112
115
  }
113
116
 
114
- interface TrackProperties {
115
- [key: string]: unknown;
116
- }
117
- interface UserTraits {
118
- email?: string;
119
- name?: string;
120
- firstName?: string;
121
- lastName?: string;
122
- phone?: string;
123
- avatar?: string;
124
- createdAt?: string;
125
- [key: string]: unknown;
126
- }
127
- interface GroupTraits {
128
- name?: string;
129
- industry?: string;
130
- employees?: number;
131
- plan?: string;
132
- [key: string]: unknown;
133
- }
134
-
135
117
  interface PerformanceConfig {
136
118
  apiKey: string;
137
119
  endpoint?: string;
@@ -305,43 +287,6 @@ declare function clearAnonymousId(): void;
305
287
  */
306
288
  declare function setAnonymousId(id: string): void;
307
289
 
308
- interface ReplayConfig {
309
- apiKey: string;
310
- endpoint?: string;
311
- enabled?: boolean;
312
- /** Mask all text input values (default: true) */
313
- maskInputs?: boolean;
314
- /** CSS selector for elements to block from recording */
315
- blockSelector?: string;
316
- /** CSS selector for elements to mask content */
317
- maskSelector?: string;
318
- /** Maximum session duration in ms (default: 60 minutes) */
319
- maxSessionDuration?: number;
320
- /** Flush interval in ms (default: 5000) */
321
- flushInterval?: number;
322
- /** Maximum events per batch (default: 100) */
323
- maxBatchSize?: number;
324
- /** Sample rate 0-1 (default: 1.0 = record all sessions) */
325
- sampleRate?: number;
326
- /** Custom endpoint for replay data */
327
- replayEndpoint?: string;
328
- /** Record network requests (XHR/fetch) */
329
- recordNetwork?: boolean;
330
- /** Capture request/response headers in network recording */
331
- captureNetworkHeaders?: boolean;
332
- /** Record console logs */
333
- recordConsole?: boolean;
334
- /** Console levels to record (default: all) */
335
- consoleLevels?: Array<'log' | 'info' | 'warn' | 'error' | 'debug'>;
336
- debug?: boolean;
337
- }
338
- type ReplayEventType = 'snapshot' | 'mutation' | 'mouse_move' | 'mouse_click' | 'mouse_leave' | 'touch' | 'scroll' | 'input' | 'resize' | 'focus' | 'blur' | 'network' | 'console' | 'custom';
339
- interface ReplayEvent {
340
- type: ReplayEventType;
341
- timestamp: number;
342
- data: unknown;
343
- }
344
-
345
290
  /**
346
291
  * Database Query Tracking SDK Module
347
292
  *
@@ -654,4 +599,4 @@ declare const getProfiles: () => ProfileData[];
654
599
  declare const getLatestProfile: () => ProfileData | null;
655
600
  declare const flushProfiles: () => Promise<void>;
656
601
 
657
- export { type CapturedError, type CronCheckinOptions, type CronHandle, type DatabaseQueryEvent, type DatabaseTrackerConfig, type DeviceSignals, type ErrorContext, type FraudCheckResult, type GroupTraits, type MetricOptions, type PerformanceConfig, type PerformanceSpan, type PerformanceTransaction, type ProfileData, type ProfileFrame, type ProfilerConfig, type ReplayConfig, type ReplayEvent, type SitePongConfig, type SitePongInitConfig, type TraceContext, TracePropagator, type TrackProperties, type UserTraits, type VisitorIdResult, type WebVitals, areFlagsReady, captureError, captureMessage, clearAnonymousId, createTraceContext, cronCheckin, cronStart, cronWrap, dbTrack, dbTrackSync, sitepong as default, endSpan, endTransaction, extractTrace, flush, flushMetrics, flushProfiles, generateSpanId, generateTraceId, getAllFlags, getAnonymousId, getDbNPlusOnePatterns, getDbQueryCount, getDeviceSignals, getFlag, getFraudCheck, getLatestProfile, getProfiles, getReplaySessionId, getVariant, getVariantPayload, getVisitorId, getWebVitals, group, identify, init, isReplayRecording, metricDistribution, metricGauge, metricHistogram, metricIncrement, metricStartTimer, metricTime, profile, propagateTrace, refreshFlags, resetAnalytics, resetDbQueryCount, setAnonymousId, setContext, setTags, setUser, startProfileSpan, startReplay, startSpan, startTransaction, stopReplay, track, trackPageView, waitForFlags };
602
+ export { type CapturedError, type CronCheckinOptions, type CronHandle, type DatabaseQueryEvent, type DatabaseTrackerConfig, type DeviceSignals, type ErrorContext, type FraudCheckResult, GroupTraits, type MetricOptions, type PerformanceConfig, type PerformanceSpan, type PerformanceTransaction, type ProfileData, type ProfileFrame, type ProfilerConfig, type SitePongConfig, type SitePongInitConfig, type TraceContext, TracePropagator, TrackProperties, UserTraits, type VisitorIdResult, type WebVitals, areFlagsReady, captureError, captureMessage, clearAnonymousId, createTraceContext, cronCheckin, cronStart, cronWrap, dbTrack, dbTrackSync, sitepong as default, endSpan, endTransaction, extractTrace, flush, flushMetrics, flushProfiles, generateSpanId, generateTraceId, getAllFlags, getAnonymousId, getDbNPlusOnePatterns, getDbQueryCount, getDeviceSignals, getFlag, getFraudCheck, getLatestProfile, getProfiles, getReplaySessionId, getVariant, getVariantPayload, getVisitorId, getWebVitals, group, identify, init, isReplayRecording, metricDistribution, metricGauge, metricHistogram, metricIncrement, metricStartTimer, metricTime, profile, propagateTrace, refreshFlags, resetAnalytics, resetDbQueryCount, setAnonymousId, setContext, setTags, setUser, startProfileSpan, startReplay, startSpan, startTransaction, stopReplay, track, trackPageView, waitForFlags };
package/dist/index.d.ts CHANGED
@@ -1,3 +1,6 @@
1
+ import { T as TrackProperties, U as UserTraits, G as GroupTraits } from './types-CLEYbaV8.js';
2
+ export { R as ReplayConfig, a as ReplayEvent } from './types-CLEYbaV8.js';
3
+
1
4
  interface CoreSignals {
2
5
  userAgent: string;
3
6
  language: string;
@@ -111,27 +114,6 @@ declare global {
111
114
  }
112
115
  }
113
116
 
114
- interface TrackProperties {
115
- [key: string]: unknown;
116
- }
117
- interface UserTraits {
118
- email?: string;
119
- name?: string;
120
- firstName?: string;
121
- lastName?: string;
122
- phone?: string;
123
- avatar?: string;
124
- createdAt?: string;
125
- [key: string]: unknown;
126
- }
127
- interface GroupTraits {
128
- name?: string;
129
- industry?: string;
130
- employees?: number;
131
- plan?: string;
132
- [key: string]: unknown;
133
- }
134
-
135
117
  interface PerformanceConfig {
136
118
  apiKey: string;
137
119
  endpoint?: string;
@@ -305,43 +287,6 @@ declare function clearAnonymousId(): void;
305
287
  */
306
288
  declare function setAnonymousId(id: string): void;
307
289
 
308
- interface ReplayConfig {
309
- apiKey: string;
310
- endpoint?: string;
311
- enabled?: boolean;
312
- /** Mask all text input values (default: true) */
313
- maskInputs?: boolean;
314
- /** CSS selector for elements to block from recording */
315
- blockSelector?: string;
316
- /** CSS selector for elements to mask content */
317
- maskSelector?: string;
318
- /** Maximum session duration in ms (default: 60 minutes) */
319
- maxSessionDuration?: number;
320
- /** Flush interval in ms (default: 5000) */
321
- flushInterval?: number;
322
- /** Maximum events per batch (default: 100) */
323
- maxBatchSize?: number;
324
- /** Sample rate 0-1 (default: 1.0 = record all sessions) */
325
- sampleRate?: number;
326
- /** Custom endpoint for replay data */
327
- replayEndpoint?: string;
328
- /** Record network requests (XHR/fetch) */
329
- recordNetwork?: boolean;
330
- /** Capture request/response headers in network recording */
331
- captureNetworkHeaders?: boolean;
332
- /** Record console logs */
333
- recordConsole?: boolean;
334
- /** Console levels to record (default: all) */
335
- consoleLevels?: Array<'log' | 'info' | 'warn' | 'error' | 'debug'>;
336
- debug?: boolean;
337
- }
338
- type ReplayEventType = 'snapshot' | 'mutation' | 'mouse_move' | 'mouse_click' | 'mouse_leave' | 'touch' | 'scroll' | 'input' | 'resize' | 'focus' | 'blur' | 'network' | 'console' | 'custom';
339
- interface ReplayEvent {
340
- type: ReplayEventType;
341
- timestamp: number;
342
- data: unknown;
343
- }
344
-
345
290
  /**
346
291
  * Database Query Tracking SDK Module
347
292
  *
@@ -654,4 +599,4 @@ declare const getProfiles: () => ProfileData[];
654
599
  declare const getLatestProfile: () => ProfileData | null;
655
600
  declare const flushProfiles: () => Promise<void>;
656
601
 
657
- export { type CapturedError, type CronCheckinOptions, type CronHandle, type DatabaseQueryEvent, type DatabaseTrackerConfig, type DeviceSignals, type ErrorContext, type FraudCheckResult, type GroupTraits, type MetricOptions, type PerformanceConfig, type PerformanceSpan, type PerformanceTransaction, type ProfileData, type ProfileFrame, type ProfilerConfig, type ReplayConfig, type ReplayEvent, type SitePongConfig, type SitePongInitConfig, type TraceContext, TracePropagator, type TrackProperties, type UserTraits, type VisitorIdResult, type WebVitals, areFlagsReady, captureError, captureMessage, clearAnonymousId, createTraceContext, cronCheckin, cronStart, cronWrap, dbTrack, dbTrackSync, sitepong as default, endSpan, endTransaction, extractTrace, flush, flushMetrics, flushProfiles, generateSpanId, generateTraceId, getAllFlags, getAnonymousId, getDbNPlusOnePatterns, getDbQueryCount, getDeviceSignals, getFlag, getFraudCheck, getLatestProfile, getProfiles, getReplaySessionId, getVariant, getVariantPayload, getVisitorId, getWebVitals, group, identify, init, isReplayRecording, metricDistribution, metricGauge, metricHistogram, metricIncrement, metricStartTimer, metricTime, profile, propagateTrace, refreshFlags, resetAnalytics, resetDbQueryCount, setAnonymousId, setContext, setTags, setUser, startProfileSpan, startReplay, startSpan, startTransaction, stopReplay, track, trackPageView, waitForFlags };
602
+ export { type CapturedError, type CronCheckinOptions, type CronHandle, type DatabaseQueryEvent, type DatabaseTrackerConfig, type DeviceSignals, type ErrorContext, type FraudCheckResult, GroupTraits, type MetricOptions, type PerformanceConfig, type PerformanceSpan, type PerformanceTransaction, type ProfileData, type ProfileFrame, type ProfilerConfig, type SitePongConfig, type SitePongInitConfig, type TraceContext, TracePropagator, TrackProperties, UserTraits, type VisitorIdResult, type WebVitals, areFlagsReady, captureError, captureMessage, clearAnonymousId, createTraceContext, cronCheckin, cronStart, cronWrap, dbTrack, dbTrackSync, sitepong as default, endSpan, endTransaction, extractTrace, flush, flushMetrics, flushProfiles, generateSpanId, generateTraceId, getAllFlags, getAnonymousId, getDbNPlusOnePatterns, getDbQueryCount, getDeviceSignals, getFlag, getFraudCheck, getLatestProfile, getProfiles, getReplaySessionId, getVariant, getVariantPayload, getVisitorId, getWebVitals, group, identify, init, isReplayRecording, metricDistribution, metricGauge, metricHistogram, metricIncrement, metricStartTimer, metricTime, profile, propagateTrace, refreshFlags, resetAnalytics, resetDbQueryCount, setAnonymousId, setContext, setTags, setUser, startProfileSpan, startReplay, startSpan, startTransaction, stopReplay, track, trackPageView, waitForFlags };
package/dist/index.js CHANGED
@@ -4656,7 +4656,7 @@ var startProfileSpan = sitepong.startProfileSpan.bind(sitepong);
4656
4656
  var getProfiles = sitepong.getProfiles.bind(sitepong);
4657
4657
  var getLatestProfile = sitepong.getLatestProfile.bind(sitepong);
4658
4658
  var flushProfiles = sitepong.flushProfiles.bind(sitepong);
4659
- var index_default = sitepong;
4659
+ var src_default = sitepong;
4660
4660
 
4661
4661
  exports.TracePropagator = TracePropagator;
4662
4662
  exports.areFlagsReady = areFlagsReady;
@@ -4669,7 +4669,7 @@ exports.cronStart = cronStart;
4669
4669
  exports.cronWrap = cronWrap;
4670
4670
  exports.dbTrack = dbTrack;
4671
4671
  exports.dbTrackSync = dbTrackSync;
4672
- exports.default = index_default;
4672
+ exports.default = src_default;
4673
4673
  exports.endSpan = endSpan;
4674
4674
  exports.endTransaction = endTransaction;
4675
4675
  exports.extractTrace = extractTrace;