posthog-js 1.166.2 → 1.167.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.
@@ -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 {