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.
@@ -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 {