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
|
@@ -1179,7 +1179,9 @@ declare class PostHog {
|
|
|
1179
1179
|
send_event?: boolean;
|
|
1180
1180
|
}): boolean | string | undefined;
|
|
1181
1181
|
getFeatureFlagPayload(key: string): JsonType;
|
|
1182
|
-
isFeatureEnabled(key: string, options?:
|
|
1182
|
+
isFeatureEnabled(key: string, options?: {
|
|
1183
|
+
send_event: boolean;
|
|
1184
|
+
}): boolean | undefined;
|
|
1183
1185
|
reloadFeatureFlags(): void;
|
|
1184
1186
|
/** Opt the user in or out of an early access feature. */
|
|
1185
1187
|
updateEarlyAccessFeatureEnrollment(key: string, isEnrolled: boolean): void;
|
|
@@ -1881,13 +1883,16 @@ interface PostHogConfig {
|
|
|
1881
1883
|
/** @deprecated - Use 'persistence_name' instead */
|
|
1882
1884
|
cookie_name?: string;
|
|
1883
1885
|
loaded: (posthog_instance: PostHog) => void;
|
|
1884
|
-
|
|
1886
|
+
/** @deprecated - Use `save_campaign_params` instead */
|
|
1887
|
+
store_google?: boolean;
|
|
1888
|
+
save_campaign_params: boolean;
|
|
1885
1889
|
custom_campaign_params: string[];
|
|
1886
1890
|
custom_blocked_useragents: string[];
|
|
1887
1891
|
save_referrer: boolean;
|
|
1888
|
-
verbose: boolean;
|
|
1889
1892
|
capture_pageview: boolean;
|
|
1890
1893
|
capture_pageleave: boolean | 'if_capture_pageview';
|
|
1894
|
+
/** @deprecated Use `debug` instead */
|
|
1895
|
+
verbose?: boolean;
|
|
1891
1896
|
debug: boolean;
|
|
1892
1897
|
cookie_expiration: number;
|
|
1893
1898
|
upgrade: boolean;
|
|
@@ -1926,8 +1931,6 @@ interface PostHogConfig {
|
|
|
1926
1931
|
};
|
|
1927
1932
|
/** @deprecated - use `on_request_error` instead */
|
|
1928
1933
|
on_xhr_error?: (failedRequest: XMLHttpRequest) => void;
|
|
1929
|
-
inapp_protocol: string;
|
|
1930
|
-
inapp_link_new_window: boolean;
|
|
1931
1934
|
request_batching: boolean;
|
|
1932
1935
|
properties_string_max_length: number;
|
|
1933
1936
|
session_recording: SessionRecordingOptions;
|
|
@@ -1965,7 +1968,6 @@ interface PostHogConfig {
|
|
|
1965
1968
|
disable_compression: boolean;
|
|
1966
1969
|
bootstrap: BootstrapConfig;
|
|
1967
1970
|
segment?: SegmentAnalytics;
|
|
1968
|
-
__preview_send_client_session_params?: boolean;
|
|
1969
1971
|
enable_heatmaps?: boolean;
|
|
1970
1972
|
capture_heatmaps?: boolean | HeatmapConfig;
|
|
1971
1973
|
capture_dead_clicks?: boolean | DeadClicksAutoCaptureConfig;
|
|
@@ -2009,6 +2011,10 @@ interface PostHogConfig {
|
|
|
2009
2011
|
* whether to send a sentinel value for distinct id, device id, and session id, which will be replaced server-side by a cookieless hash
|
|
2010
2012
|
* */
|
|
2011
2013
|
__preview_experimental_cookieless_mode?: boolean;
|
|
2014
|
+
/** @deprecated - NOT USED ANYMORE, kept here for backwards compatibility reasons */
|
|
2015
|
+
inapp_protocol?: string;
|
|
2016
|
+
/** @deprecated - NOT USED ANYMORE, kept here for backwards compatibility reasons */
|
|
2017
|
+
inapp_link_new_window?: boolean;
|
|
2012
2018
|
}
|
|
2013
2019
|
interface OptInOutCapturingOptions {
|
|
2014
2020
|
capture: (event: string, properties: Properties, options: CaptureOptions) => void;
|
|
@@ -2022,9 +2028,6 @@ interface OptInOutCapturingOptions {
|
|
|
2022
2028
|
cross_subdomain_cookie: boolean;
|
|
2023
2029
|
secure_cookie: boolean;
|
|
2024
2030
|
}
|
|
2025
|
-
interface IsFeatureEnabledOptions {
|
|
2026
|
-
send_event: boolean;
|
|
2027
|
-
}
|
|
2028
2031
|
interface SessionRecordingOptions {
|
|
2029
2032
|
blockClass?: string | RegExp;
|
|
2030
2033
|
blockSelector?: string | null;
|
|
@@ -2349,4 +2352,4 @@ interface SessionRecordingUrlTrigger {
|
|
|
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 };
|