@sprig-technologies/sprig-browser 2.24.0 → 2.24.2

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
@@ -1034,7 +1034,7 @@ declare namespace sprigConfig {
1034
1034
  eventName?: string;
1035
1035
  properties?: SprigProperties;
1036
1036
  userId?: string;
1037
- showSurveyCallback?: (surveyId: number) => Promise<boolean>;
1037
+ showSurveyCallback?: (surveyId?: number) => Promise<boolean>;
1038
1038
  }
1039
1039
 
1040
1040
  interface SprigAPIActions {
@@ -1055,7 +1055,7 @@ declare namespace sprigConfig {
1055
1055
  userId?: string;
1056
1056
  }) => IdentifyResult;
1057
1057
  identifyAndTrack: (payload: TrackPayload) => IdentifyResult;
1058
- importLaunchDarklyData: (data: Record<string, number>) => void;
1058
+ importLaunchDarklyData: (data: Record<string, number | undefined>) => void;
1059
1059
  integrateOptimizely: (
1060
1060
  strData: string | { experiments: Experiment[] },
1061
1061
  isOverride?: boolean
@@ -1094,7 +1094,7 @@ declare namespace sprigConfig {
1094
1094
  eventName: string,
1095
1095
  properties?: TrackPayload["properties"],
1096
1096
  metadata?: SprigMetadata,
1097
- showSurveyCallback?: (surveyId: number) => Promise<boolean>
1097
+ showSurveyCallback?: (surveyId?: number) => Promise<boolean>
1098
1098
  ) => IdentifyResult;
1099
1099
  unmute: () => void;
1100
1100
  }
@@ -1152,6 +1152,7 @@ declare global {
1152
1152
  data: unknown
1153
1153
  ) => void);
1154
1154
  optimizely?: optimizely.Optimizely;
1155
+ optimizelyDatafile?: object;
1155
1156
  previewMode?: unknown;
1156
1157
  UpChunk: upchunk.UpChunkModule;
1157
1158
  _Sprig?: sprigConfig.WindowSprig;