sitepong 0.0.8 → 0.0.10
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 +7 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -1
- package/dist/index.mjs.map +1 -1
- package/dist/react/index.d.mts +8 -12
- package/dist/react/index.d.ts +8 -12
- package/dist/react/index.js +2705 -2700
- package/dist/react/index.js.map +1 -1
- package/dist/react/index.mjs +2698 -2695
- package/dist/react/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/react/index.d.mts
CHANGED
|
@@ -1,19 +1,15 @@
|
|
|
1
1
|
import React, { Component, ReactNode, ErrorInfo } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { SitePongInitConfig, DeviceSignals, WebVitals } from '../index.mjs';
|
|
3
|
+
export { CapturedError, CronCheckinOptions, CronHandle, DatabaseQueryEvent, DatabaseTrackerConfig, ErrorContext, FraudCheckResult, MetricOptions, PerformanceConfig, PerformanceSpan, PerformanceTransaction, ProfileData, ProfileFrame, ProfilerConfig, SitePongConfig, TraceContext, TracePropagator, VisitorIdResult, areFlagsReady, captureError, captureMessage, clearAnonymousId, client, createTraceContext, cronCheckin, cronStart, cronWrap, dbTrack, dbTrackSync, 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, isInitialized, isReplayRecording, metricDistribution, metricGauge, metricHistogram, metricIncrement, metricStartTimer, metricTime, profile, propagateTrace, refreshFlags, resetAnalytics, resetDbQueryCount, setAnonymousId, setContext, setTags, setUser, startProfileSpan, startReplay, startSpan, startTransaction, stopReplay, track, trackPageView, waitForFlags } from '../index.mjs';
|
|
3
4
|
import { T as TrackProperties, U as UserTraits, G as GroupTraits } from '../types-CLEYbaV8.mjs';
|
|
4
5
|
export { R as ReplayConfig, a as ReplayEvent } from '../types-CLEYbaV8.mjs';
|
|
5
|
-
import {
|
|
6
|
-
export { CapturedError, CronCheckinOptions, CronHandle, DatabaseQueryEvent, DatabaseTrackerConfig, ErrorContext, FraudCheckResult, MetricOptions, PerformanceConfig, PerformanceSpan, PerformanceTransaction, ProfileData, ProfileFrame, ProfilerConfig, SitePongConfig, SitePongInitConfig, TraceContext, TracePropagator, VisitorIdResult, areFlagsReady, captureError, captureMessage, clearAnonymousId, createTraceContext, cronCheckin, cronStart, cronWrap, dbTrack, dbTrackSync, 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 } from '../index.mjs';
|
|
6
|
+
import { C as CaptureContext, L as LogLevel, U as User, a as addBreadcrumb, S as SitePongConfig } from '../breadcrumbs-Cydh62b1.mjs';
|
|
7
7
|
|
|
8
8
|
interface SitePongContextValue {
|
|
9
9
|
isInitialized: boolean;
|
|
10
10
|
}
|
|
11
11
|
declare const SitePongContext: React.Context<SitePongContextValue>;
|
|
12
12
|
interface SitePongProviderProps {
|
|
13
|
-
/**
|
|
14
|
-
* DSN in format: https://<public_key>@ingest.sitepong.com/<project_id>
|
|
15
|
-
*/
|
|
16
|
-
dsn?: string;
|
|
17
13
|
/**
|
|
18
14
|
* API key in format: sp_live_xxx or sp_test_xxx
|
|
19
15
|
*/
|
|
@@ -21,7 +17,7 @@ interface SitePongProviderProps {
|
|
|
21
17
|
/**
|
|
22
18
|
* Additional configuration options
|
|
23
19
|
*/
|
|
24
|
-
config?: Omit<
|
|
20
|
+
config?: Omit<SitePongInitConfig, "apiKey">;
|
|
25
21
|
/**
|
|
26
22
|
* Children to render
|
|
27
23
|
*/
|
|
@@ -34,18 +30,18 @@ interface SitePongProviderProps {
|
|
|
34
30
|
*
|
|
35
31
|
* @example
|
|
36
32
|
* ```tsx
|
|
37
|
-
* import { SitePongProvider } from '
|
|
33
|
+
* import { SitePongProvider } from 'sitepong/react';
|
|
38
34
|
*
|
|
39
35
|
* function App() {
|
|
40
36
|
* return (
|
|
41
|
-
* <SitePongProvider
|
|
37
|
+
* <SitePongProvider apiKey={process.env.NEXT_PUBLIC_SITEPONG_KEY}>
|
|
42
38
|
* <MyApp />
|
|
43
39
|
* </SitePongProvider>
|
|
44
40
|
* );
|
|
45
41
|
* }
|
|
46
42
|
* ```
|
|
47
43
|
*/
|
|
48
|
-
declare function SitePongProvider({
|
|
44
|
+
declare function SitePongProvider({ apiKey, config, children, }: SitePongProviderProps): React.ReactElement;
|
|
49
45
|
|
|
50
46
|
interface SitePongErrorBoundaryProps {
|
|
51
47
|
/**
|
|
@@ -299,4 +295,4 @@ declare function useReplay(): {
|
|
|
299
295
|
stop: () => void;
|
|
300
296
|
};
|
|
301
297
|
|
|
302
|
-
export { DeviceSignals, GroupTraits, SitePongContext, SitePongErrorBoundary, type SitePongErrorBoundaryProps, SitePongProvider, type SitePongProviderProps, TrackProperties, UserTraits, WebVitals, useAddBreadcrumb, useAllFlags, useCaptureException, useCaptureMessage, useErrorCapture, useExperiment, useFeatureFlag, useFeatureFlagPayload, useFraudCheck, useGroup, useIdentify, usePerformanceTransaction, useReplay, useSetUser, useSitePong, useTrack, useTrackPageView, useVisitorId, useWebVitals };
|
|
298
|
+
export { DeviceSignals, GroupTraits, SitePongContext, SitePongErrorBoundary, type SitePongErrorBoundaryProps, SitePongInitConfig, SitePongProvider, type SitePongProviderProps, TrackProperties, UserTraits, WebVitals, useAddBreadcrumb, useAllFlags, useCaptureException, useCaptureMessage, useErrorCapture, useExperiment, useFeatureFlag, useFeatureFlagPayload, useFraudCheck, useGroup, useIdentify, usePerformanceTransaction, useReplay, useSetUser, useSitePong, useTrack, useTrackPageView, useVisitorId, useWebVitals };
|
package/dist/react/index.d.ts
CHANGED
|
@@ -1,19 +1,15 @@
|
|
|
1
1
|
import React, { Component, ReactNode, ErrorInfo } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { SitePongInitConfig, DeviceSignals, WebVitals } from '../index.js';
|
|
3
|
+
export { CapturedError, CronCheckinOptions, CronHandle, DatabaseQueryEvent, DatabaseTrackerConfig, ErrorContext, FraudCheckResult, MetricOptions, PerformanceConfig, PerformanceSpan, PerformanceTransaction, ProfileData, ProfileFrame, ProfilerConfig, SitePongConfig, TraceContext, TracePropagator, VisitorIdResult, areFlagsReady, captureError, captureMessage, clearAnonymousId, client, createTraceContext, cronCheckin, cronStart, cronWrap, dbTrack, dbTrackSync, 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, isInitialized, isReplayRecording, metricDistribution, metricGauge, metricHistogram, metricIncrement, metricStartTimer, metricTime, profile, propagateTrace, refreshFlags, resetAnalytics, resetDbQueryCount, setAnonymousId, setContext, setTags, setUser, startProfileSpan, startReplay, startSpan, startTransaction, stopReplay, track, trackPageView, waitForFlags } from '../index.js';
|
|
3
4
|
import { T as TrackProperties, U as UserTraits, G as GroupTraits } from '../types-CLEYbaV8.js';
|
|
4
5
|
export { R as ReplayConfig, a as ReplayEvent } from '../types-CLEYbaV8.js';
|
|
5
|
-
import {
|
|
6
|
-
export { CapturedError, CronCheckinOptions, CronHandle, DatabaseQueryEvent, DatabaseTrackerConfig, ErrorContext, FraudCheckResult, MetricOptions, PerformanceConfig, PerformanceSpan, PerformanceTransaction, ProfileData, ProfileFrame, ProfilerConfig, SitePongConfig, SitePongInitConfig, TraceContext, TracePropagator, VisitorIdResult, areFlagsReady, captureError, captureMessage, clearAnonymousId, createTraceContext, cronCheckin, cronStart, cronWrap, dbTrack, dbTrackSync, 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 } from '../index.js';
|
|
6
|
+
import { C as CaptureContext, L as LogLevel, U as User, a as addBreadcrumb, S as SitePongConfig } from '../breadcrumbs-DRlJ9h_B.js';
|
|
7
7
|
|
|
8
8
|
interface SitePongContextValue {
|
|
9
9
|
isInitialized: boolean;
|
|
10
10
|
}
|
|
11
11
|
declare const SitePongContext: React.Context<SitePongContextValue>;
|
|
12
12
|
interface SitePongProviderProps {
|
|
13
|
-
/**
|
|
14
|
-
* DSN in format: https://<public_key>@ingest.sitepong.com/<project_id>
|
|
15
|
-
*/
|
|
16
|
-
dsn?: string;
|
|
17
13
|
/**
|
|
18
14
|
* API key in format: sp_live_xxx or sp_test_xxx
|
|
19
15
|
*/
|
|
@@ -21,7 +17,7 @@ interface SitePongProviderProps {
|
|
|
21
17
|
/**
|
|
22
18
|
* Additional configuration options
|
|
23
19
|
*/
|
|
24
|
-
config?: Omit<
|
|
20
|
+
config?: Omit<SitePongInitConfig, "apiKey">;
|
|
25
21
|
/**
|
|
26
22
|
* Children to render
|
|
27
23
|
*/
|
|
@@ -34,18 +30,18 @@ interface SitePongProviderProps {
|
|
|
34
30
|
*
|
|
35
31
|
* @example
|
|
36
32
|
* ```tsx
|
|
37
|
-
* import { SitePongProvider } from '
|
|
33
|
+
* import { SitePongProvider } from 'sitepong/react';
|
|
38
34
|
*
|
|
39
35
|
* function App() {
|
|
40
36
|
* return (
|
|
41
|
-
* <SitePongProvider
|
|
37
|
+
* <SitePongProvider apiKey={process.env.NEXT_PUBLIC_SITEPONG_KEY}>
|
|
42
38
|
* <MyApp />
|
|
43
39
|
* </SitePongProvider>
|
|
44
40
|
* );
|
|
45
41
|
* }
|
|
46
42
|
* ```
|
|
47
43
|
*/
|
|
48
|
-
declare function SitePongProvider({
|
|
44
|
+
declare function SitePongProvider({ apiKey, config, children, }: SitePongProviderProps): React.ReactElement;
|
|
49
45
|
|
|
50
46
|
interface SitePongErrorBoundaryProps {
|
|
51
47
|
/**
|
|
@@ -299,4 +295,4 @@ declare function useReplay(): {
|
|
|
299
295
|
stop: () => void;
|
|
300
296
|
};
|
|
301
297
|
|
|
302
|
-
export { DeviceSignals, GroupTraits, SitePongContext, SitePongErrorBoundary, type SitePongErrorBoundaryProps, SitePongProvider, type SitePongProviderProps, TrackProperties, UserTraits, WebVitals, useAddBreadcrumb, useAllFlags, useCaptureException, useCaptureMessage, useErrorCapture, useExperiment, useFeatureFlag, useFeatureFlagPayload, useFraudCheck, useGroup, useIdentify, usePerformanceTransaction, useReplay, useSetUser, useSitePong, useTrack, useTrackPageView, useVisitorId, useWebVitals };
|
|
298
|
+
export { DeviceSignals, GroupTraits, SitePongContext, SitePongErrorBoundary, type SitePongErrorBoundaryProps, SitePongInitConfig, SitePongProvider, type SitePongProviderProps, TrackProperties, UserTraits, WebVitals, useAddBreadcrumb, useAllFlags, useCaptureException, useCaptureMessage, useErrorCapture, useExperiment, useFeatureFlag, useFeatureFlagPayload, useFraudCheck, useGroup, useIdentify, usePerformanceTransaction, useReplay, useSetUser, useSitePong, useTrack, useTrackPageView, useVisitorId, useWebVitals };
|