posthog-js 1.210.2 → 1.211.0
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/all-external-dependencies.js.map +1 -1
- package/dist/array.full.es5.js +1 -1
- package/dist/array.full.es5.js.map +1 -1
- package/dist/array.full.js +1 -1
- package/dist/array.full.js.map +1 -1
- package/dist/array.full.no-external.js +1 -1
- package/dist/array.full.no-external.js.map +1 -1
- package/dist/array.js +1 -1
- package/dist/array.js.map +1 -1
- package/dist/array.no-external.js +1 -1
- package/dist/array.no-external.js.map +1 -1
- package/dist/customizations.full.js +1 -1
- package/dist/customizations.full.js.map +1 -1
- package/dist/dead-clicks-autocapture.js.map +1 -1
- package/dist/exception-autocapture.js.map +1 -1
- package/dist/external-scripts-loader.js.map +1 -1
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/module.d.ts +13 -10
- package/dist/module.full.d.ts +13 -10
- package/dist/module.full.js +1 -1
- package/dist/module.full.js.map +1 -1
- package/dist/module.full.no-external.d.ts +13 -10
- package/dist/module.full.no-external.js +1 -1
- package/dist/module.full.no-external.js.map +1 -1
- package/dist/module.js +1 -1
- package/dist/module.js.map +1 -1
- package/dist/module.no-external.d.ts +13 -10
- package/dist/module.no-external.js +1 -1
- package/dist/module.no-external.js.map +1 -1
- package/dist/recorder-v2.js.map +1 -1
- package/dist/recorder.js.map +1 -1
- package/dist/src/posthog-core.d.ts +4 -2
- package/dist/src/types.d.ts +9 -8
- package/dist/surveys-preview.js.map +1 -1
- package/dist/surveys.js.map +1 -1
- package/dist/tracing-headers.js.map +1 -1
- package/lib/package.json +1 -1
- package/lib/src/posthog-core.d.ts +4 -2
- package/lib/src/posthog-core.js +12 -15
- package/lib/src/posthog-core.js.map +1 -1
- package/lib/src/types.d.ts +9 -8
- package/lib/src/types.js.map +1 -1
- package/package.json +1 -1
|
@@ -340,13 +340,16 @@ interface PostHogConfig {
|
|
|
340
340
|
/** @deprecated - Use 'persistence_name' instead */
|
|
341
341
|
cookie_name?: string;
|
|
342
342
|
loaded: (posthog_instance: PostHog) => void;
|
|
343
|
-
|
|
343
|
+
/** @deprecated - Use `save_campaign_params` instead */
|
|
344
|
+
store_google?: boolean;
|
|
345
|
+
save_campaign_params: boolean;
|
|
344
346
|
custom_campaign_params: string[];
|
|
345
347
|
custom_blocked_useragents: string[];
|
|
346
348
|
save_referrer: boolean;
|
|
347
|
-
verbose: boolean;
|
|
348
349
|
capture_pageview: boolean;
|
|
349
350
|
capture_pageleave: boolean | 'if_capture_pageview';
|
|
351
|
+
/** @deprecated Use `debug` instead */
|
|
352
|
+
verbose?: boolean;
|
|
350
353
|
debug: boolean;
|
|
351
354
|
cookie_expiration: number;
|
|
352
355
|
upgrade: boolean;
|
|
@@ -385,8 +388,6 @@ interface PostHogConfig {
|
|
|
385
388
|
};
|
|
386
389
|
/** @deprecated - use `on_request_error` instead */
|
|
387
390
|
on_xhr_error?: (failedRequest: XMLHttpRequest) => void;
|
|
388
|
-
inapp_protocol: string;
|
|
389
|
-
inapp_link_new_window: boolean;
|
|
390
391
|
request_batching: boolean;
|
|
391
392
|
properties_string_max_length: number;
|
|
392
393
|
session_recording: SessionRecordingOptions;
|
|
@@ -424,7 +425,6 @@ interface PostHogConfig {
|
|
|
424
425
|
disable_compression: boolean;
|
|
425
426
|
bootstrap: BootstrapConfig;
|
|
426
427
|
segment?: SegmentAnalytics;
|
|
427
|
-
__preview_send_client_session_params?: boolean;
|
|
428
428
|
enable_heatmaps?: boolean;
|
|
429
429
|
capture_heatmaps?: boolean | HeatmapConfig;
|
|
430
430
|
capture_dead_clicks?: boolean | DeadClicksAutoCaptureConfig;
|
|
@@ -468,6 +468,10 @@ interface PostHogConfig {
|
|
|
468
468
|
* whether to send a sentinel value for distinct id, device id, and session id, which will be replaced server-side by a cookieless hash
|
|
469
469
|
* */
|
|
470
470
|
__preview_experimental_cookieless_mode?: boolean;
|
|
471
|
+
/** @deprecated - NOT USED ANYMORE, kept here for backwards compatibility reasons */
|
|
472
|
+
inapp_protocol?: string;
|
|
473
|
+
/** @deprecated - NOT USED ANYMORE, kept here for backwards compatibility reasons */
|
|
474
|
+
inapp_link_new_window?: boolean;
|
|
471
475
|
}
|
|
472
476
|
interface OptInOutCapturingOptions {
|
|
473
477
|
capture: (event: string, properties: Properties, options: CaptureOptions) => void;
|
|
@@ -481,9 +485,6 @@ interface OptInOutCapturingOptions {
|
|
|
481
485
|
cross_subdomain_cookie: boolean;
|
|
482
486
|
secure_cookie: boolean;
|
|
483
487
|
}
|
|
484
|
-
interface IsFeatureEnabledOptions {
|
|
485
|
-
send_event: boolean;
|
|
486
|
-
}
|
|
487
488
|
interface SessionRecordingOptions {
|
|
488
489
|
blockClass?: string | RegExp;
|
|
489
490
|
blockSelector?: string | null;
|
|
@@ -1864,7 +1865,9 @@ declare class PostHog {
|
|
|
1864
1865
|
send_event?: boolean;
|
|
1865
1866
|
}): boolean | string | undefined;
|
|
1866
1867
|
getFeatureFlagPayload(key: string): JsonType;
|
|
1867
|
-
isFeatureEnabled(key: string, options?:
|
|
1868
|
+
isFeatureEnabled(key: string, options?: {
|
|
1869
|
+
send_event: boolean;
|
|
1870
|
+
}): boolean | undefined;
|
|
1868
1871
|
reloadFeatureFlags(): void;
|
|
1869
1872
|
/** Opt the user in or out of an early access feature. */
|
|
1870
1873
|
updateEarlyAccessFeatureEnrollment(key: string, isEnrolled: boolean): void;
|
|
@@ -2349,4 +2352,4 @@ declare class PostHog {
|
|
|
2349
2352
|
|
|
2350
2353
|
declare const posthog: PostHog;
|
|
2351
2354
|
|
|
2352
|
-
export { type ActionStepStringMatching, type ActionStepType, type AutocaptureCompatibleElement, type AutocaptureConfig, type BasicSurveyQuestion, type BeforeSendFn, type BootstrapConfig, type Breaker, COPY_AUTOCAPTURE_EVENT, type CaptureOptions, type CaptureResult, type CapturedNetworkRequest, Compression, type DeadClickCandidate, type DeadClicksAutoCaptureConfig, type DecideResponse, type DomAutocaptureEvents, type EarlyAccessFeature, type EarlyAccessFeatureCallback, type EarlyAccessFeatureResponse, type ErrorConversions, type ErrorEventArgs, type ErrorMetadata, type ErrorProperties, type EventHandler, type EventName, type FeatureFlagsCallback, type FlagVariant, type Headers, type HeatmapConfig, type InitiatorType, type
|
|
2355
|
+
export { type ActionStepStringMatching, type ActionStepType, type AutocaptureCompatibleElement, type AutocaptureConfig, type BasicSurveyQuestion, type BeforeSendFn, type BootstrapConfig, type Breaker, COPY_AUTOCAPTURE_EVENT, type CaptureOptions, type CaptureResult, type CapturedNetworkRequest, Compression, type DeadClickCandidate, type DeadClicksAutoCaptureConfig, type DecideResponse, type DomAutocaptureEvents, type EarlyAccessFeature, type EarlyAccessFeatureCallback, type EarlyAccessFeatureResponse, type ErrorConversions, type ErrorEventArgs, type ErrorMetadata, type ErrorProperties, type EventHandler, type EventName, type FeatureFlagsCallback, type FlagVariant, type Headers, type HeatmapConfig, type InitiatorType, type JsonRecord, type JsonType, type KnownEventName, type KnownUnsafeEditableEvent, type LinkSurveyQuestion, type MultipleSurveyQuestion, type NetworkRecordOptions, type NetworkRequest, type OptInOutCapturingOptions, type PerformanceCaptureConfig, type PersistentStore, PostHog, type PostHogConfig, type Properties, type Property, type QueuedRequestOptions, type RatingSurveyQuestion, type RemoteConfig, type RequestCallback, type RequestOptions, type RequestResponse, type RetriableRequestOptions, type SessionIdChangedCallback, type SessionRecordingCanvasOptions, type SessionRecordingOptions, type SessionRecordingUrlTrigger, type SeverityLevel, type SiteApp, type SiteAppGlobals, type SiteAppLoader, type SnippetArrayItem, type SupportedWebVitalsMetrics, type Survey, type SurveyActionType, type SurveyAppearance, type SurveyCallback, type SurveyElement, type SurveyQuestion, SurveyQuestionBranchingType, type SurveyQuestionDescriptionContentType, SurveyQuestionType, type SurveyRenderReason, type SurveyResponse, SurveyType, type SurveyUrlMatchType, type ToolbarParams, type ToolbarSource, type ToolbarUserIntent, type ToolbarVersion, posthog as default, knownUnsafeEditableEvent, posthog, severityLevels };
|