@sprig-technologies/sprig-browser 2.22.3 → 2.23.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/index.d.ts CHANGED
@@ -682,6 +682,7 @@ interface Config {
682
682
  interactiveEvents: InteractiveEvent[];
683
683
  interactiveEventsHandler?: (e: MouseEvent) => void;
684
684
  isPreview?: boolean;
685
+ launchDarklyEnabled?: boolean;
685
686
  locale: string;
686
687
  marketingUrl?: string;
687
688
  maxAttrNameLength: number;
@@ -692,7 +693,7 @@ interface Config {
692
693
  mobileSDKVersion: undefined;
693
694
  mode?: string;
694
695
  mute?: boolean;
695
- optimizelyEnabled: boolean;
696
+ optimizelyEnabled?: boolean;
696
697
  overlayStyle: "light";
697
698
  overlayStyleMobile: "none";
698
699
  pageUrlEvents: PageUrlEvent[];
@@ -855,6 +856,7 @@ declare namespace sprigConfig {
855
856
  userId?: string;
856
857
  }) => IdentifyResult;
857
858
  identifyAndTrack: (payload: TrackPayload) => IdentifyResult;
859
+ importLaunchDarklyData: (data: Record<string, number>) => void;
858
860
  integrateOptimizely: (strData: string) => void;
859
861
  logoutUser: () => void;
860
862
  mute: () => void;
@@ -926,7 +928,7 @@ declare namespace sprigConfig {
926
928
  nonce?: string;
927
929
  partnerAnonymousId: string | null;
928
930
  replayNonce?: string;
929
- reportError: (name: string, err: Error) => void;
931
+ reportError: (name: string, err: Error, extraInfo?: object) => void;
930
932
  sampleRate?: unknown; // TODO: determine type
931
933
  token: string | null;
932
934
  UPDATES: typeof EVENTS;