posthog-js 1.166.2 → 1.167.1

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/module.d.ts CHANGED
@@ -1354,7 +1354,7 @@ interface WebExperimentTransform {
1354
1354
  text?: string;
1355
1355
  html?: string;
1356
1356
  imgUrl?: string;
1357
- className?: string;
1357
+ css?: string;
1358
1358
  }
1359
1359
  type WebExperimentUrlMatchType = 'regex' | 'not_regex' | 'exact' | 'is_not' | 'icontains' | 'not_icontains';
1360
1360
  interface WebExperimentVariant {
@@ -1386,15 +1386,18 @@ declare class WebExperiments {
1386
1386
  constructor(instance: PostHog);
1387
1387
  applyFeatureFlagChanges(flags: string[]): void;
1388
1388
  afterDecideResponse(response: DecideResponse): void;
1389
+ previewWebExperiment(): void;
1389
1390
  loadIfEnabled(): void;
1390
1391
  getWebExperimentsAndEvaluateDisplayLogic: (forceReload?: boolean) => void;
1391
- getWebExperiments(callback: WebExperimentsCallback, forceReload: boolean): void;
1392
+ getWebExperiments(callback: WebExperimentsCallback, forceReload: boolean, previewing?: boolean): void;
1393
+ private showPreviewWebExperiment;
1392
1394
  private static matchesTestVariant;
1393
1395
  private static matchUrlConditions;
1394
1396
  static getWindowLocation(): Location | undefined;
1395
1397
  private static matchUTMConditions;
1396
1398
  private static logInfo;
1397
- private static applyTransforms;
1399
+ private applyTransforms;
1400
+ _is_bot(): boolean | undefined;
1398
1401
  }
1399
1402
 
1400
1403
  declare class PostHogExceptions {
@@ -828,7 +828,7 @@ interface WebExperimentTransform {
828
828
  text?: string;
829
829
  html?: string;
830
830
  imgUrl?: string;
831
- className?: string;
831
+ css?: string;
832
832
  }
833
833
  type WebExperimentUrlMatchType = 'regex' | 'not_regex' | 'exact' | 'is_not' | 'icontains' | 'not_icontains';
834
834
  interface WebExperimentVariant {
@@ -860,15 +860,18 @@ declare class WebExperiments {
860
860
  constructor(instance: PostHog);
861
861
  applyFeatureFlagChanges(flags: string[]): void;
862
862
  afterDecideResponse(response: DecideResponse): void;
863
+ previewWebExperiment(): void;
863
864
  loadIfEnabled(): void;
864
865
  getWebExperimentsAndEvaluateDisplayLogic: (forceReload?: boolean) => void;
865
- getWebExperiments(callback: WebExperimentsCallback, forceReload: boolean): void;
866
+ getWebExperiments(callback: WebExperimentsCallback, forceReload: boolean, previewing?: boolean): void;
867
+ private showPreviewWebExperiment;
866
868
  private static matchesTestVariant;
867
869
  private static matchUrlConditions;
868
870
  static getWindowLocation(): Location | undefined;
869
871
  private static matchUTMConditions;
870
872
  private static logInfo;
871
- private static applyTransforms;
873
+ private applyTransforms;
874
+ _is_bot(): boolean | undefined;
872
875
  }
873
876
 
874
877
  declare class PostHogExceptions {