posthog-js 1.70.0 → 1.70.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/CHANGELOG.md +8 -0
- package/dist/array.full.js +2 -2
- package/dist/array.full.js.map +1 -1
- package/dist/array.js +2 -2
- package/dist/array.js.map +1 -1
- package/dist/es.js +2 -2
- package/dist/es.js.map +1 -1
- package/dist/module.d.ts +8 -2
- package/dist/module.js +2 -2
- package/dist/module.js.map +1 -1
- package/lib/package.json +1 -1
- package/package.json +1 -1
package/dist/module.d.ts
CHANGED
|
@@ -187,6 +187,7 @@ interface AutocaptureConfig {
|
|
|
187
187
|
*/
|
|
188
188
|
css_selector_allowlist?: string[];
|
|
189
189
|
}
|
|
190
|
+
declare type UUIDVersion = 'og' | 'v7';
|
|
190
191
|
interface PostHogConfig {
|
|
191
192
|
api_host: string;
|
|
192
193
|
api_method: string;
|
|
@@ -252,6 +253,7 @@ interface PostHogConfig {
|
|
|
252
253
|
featureFlagPayloads?: Record<string, JsonType>;
|
|
253
254
|
};
|
|
254
255
|
segment?: any;
|
|
256
|
+
uuid_version?: UUIDVersion;
|
|
255
257
|
}
|
|
256
258
|
interface OptInOutCapturingOptions {
|
|
257
259
|
capture: (event: string, properties: Properties, options: CaptureOptions) => void;
|
|
@@ -1040,6 +1042,7 @@ declare class RequestQueue extends RequestQueueScaffold {
|
|
|
1040
1042
|
}
|
|
1041
1043
|
|
|
1042
1044
|
declare class SessionIdManager {
|
|
1045
|
+
private uuidFn;
|
|
1043
1046
|
private config;
|
|
1044
1047
|
private persistence;
|
|
1045
1048
|
private _windowId;
|
|
@@ -1050,7 +1053,7 @@ declare class SessionIdManager {
|
|
|
1050
1053
|
private _sessionActivityTimestamp;
|
|
1051
1054
|
private _sessionTimeoutMs;
|
|
1052
1055
|
private _sessionIdChangedHandlers;
|
|
1053
|
-
constructor(config: Partial<PostHogConfig>, persistence: PostHogPersistence);
|
|
1056
|
+
constructor(config: Partial<PostHogConfig>, persistence: PostHogPersistence, uuidFn: () => string);
|
|
1054
1057
|
onSessionId(callback: SessionIdChangedCallback): () => void;
|
|
1055
1058
|
private _canUseSessionStorage;
|
|
1056
1059
|
private _setWindowId;
|
|
@@ -1097,8 +1100,10 @@ declare class SentryIntegration implements _SentryIntegration {
|
|
|
1097
1100
|
}
|
|
1098
1101
|
|
|
1099
1102
|
declare class PageViewIdManager {
|
|
1103
|
+
private uuidFn;
|
|
1100
1104
|
_pageViewId: string | undefined;
|
|
1101
1105
|
_seenFirstPageView: boolean;
|
|
1106
|
+
constructor(uuidFn: () => string);
|
|
1102
1107
|
onPageview(): void;
|
|
1103
1108
|
getPageViewId(): string;
|
|
1104
1109
|
}
|
|
@@ -1218,6 +1223,7 @@ declare class PostHog {
|
|
|
1218
1223
|
decideEndpointWasHit: boolean;
|
|
1219
1224
|
SentryIntegration: typeof SentryIntegration;
|
|
1220
1225
|
segmentIntegration: () => any;
|
|
1226
|
+
private uuidFn;
|
|
1221
1227
|
constructor();
|
|
1222
1228
|
/**
|
|
1223
1229
|
* This function initializes a new instance of the PostHog capturing object.
|
|
@@ -1863,4 +1869,4 @@ declare class PostHog {
|
|
|
1863
1869
|
|
|
1864
1870
|
declare const posthog: PostHog;
|
|
1865
1871
|
|
|
1866
|
-
export { AutoCaptureCustomProperty, AutocaptureCompatibleElement, AutocaptureConfig, Breaker, CaptureCallback, CaptureOptions, CaptureResult, Compression, CompressionData, DecideResponse, DomAutocaptureEvents, EarlyAccessFeature, EarlyAccessFeatureCallback, EarlyAccessFeatureResponse, EventHandler, FeatureFlagsCallback, GDPROptions, JSC, JsonType, NetworkRequest, OptInOutCapturingOptions, PersistentStore, PostData, PostHog, PostHogConfig, Properties, Property, QueuedRequestData, RequestCallback, RetryQueueElement, SessionIdChangedCallback, SessionRecordingOptions, SnippetArrayItem, ToolbarParams, ToolbarSource, ToolbarUserIntent, ToolbarVersion, XHROptions, XHRParams, posthog as default, isFeatureEnabledOptions, posthog };
|
|
1872
|
+
export { AutoCaptureCustomProperty, AutocaptureCompatibleElement, AutocaptureConfig, Breaker, CaptureCallback, CaptureOptions, CaptureResult, Compression, CompressionData, DecideResponse, DomAutocaptureEvents, EarlyAccessFeature, EarlyAccessFeatureCallback, EarlyAccessFeatureResponse, EventHandler, FeatureFlagsCallback, GDPROptions, JSC, JsonType, NetworkRequest, OptInOutCapturingOptions, PersistentStore, PostData, PostHog, PostHogConfig, Properties, Property, QueuedRequestData, RequestCallback, RetryQueueElement, SessionIdChangedCallback, SessionRecordingOptions, SnippetArrayItem, ToolbarParams, ToolbarSource, ToolbarUserIntent, ToolbarVersion, UUIDVersion, XHROptions, XHRParams, posthog as default, isFeatureEnabledOptions, posthog };
|